Download Bookmark Html File

0 views
Skip to first unread message

Fusberta Loparo

unread,
Jul 22, 2024, 6:42:42 AM7/22/24
to storiccama

Below is a minimal example of the code that I am using for my website's favicon. It is showing up as a favicon in Safari 8.0's address bar, but it is not showing up in the favorites dropdown box that appears when you click on the address bar when it is added as a bookmark. Instead, the default compass icon appears. What do I need to add to or change in my HTML5 to make my icon show in the dropdown box?

download bookmark html file


Downloadhttps://urlgoal.com/2zCypo



First up: HTML conversion to PDF isn't really up to the HTML itself - it's up to whatever the conversion engine decides to do with your HTML. So for instance, if your approach is: Open it in IE/Chrome/Firefox/whatever > File > Print > Microsoft Print to PDF - well, your conversion engine is 'Microsoft Print to PDF'. Doesn't matter what browser you were using at that point - all its doing is creating a print stream to send to a printer. So if Microsoft Print to PDF isn't going to make bookmarks for you (which it doesn't) then it doesn't matter which web browser you use to open the PDF.

And this is the critical problem with any Ctrl-P / Print avenues. The web browser is ultimately creating a print stream, which the conversion library simply streams into a PDF. And all the web browsers I looked at do not have native support built in to convert to PDF (why would they? 99% of the use cases are covered with a 'Print to PDF' functionality.) And the print drivers I tried (Microsoft Print to PDF, Adobe PDF Print) didn't manage to suss out bookmarks from the raw print stream. Which makes sense.

So, at this point, what you're looking for is a standalone PDF Conversion engine - something that can actively open the HTML file and convert from there, instead of going through a web browser. Are there PDF Conversion engines that do this and add Header-Tag based bookmarks? Possibly. The ones we had at our disposal (ABCPdf, Neevia) weren't able to do it, but it's certainly possible there's one out there.

Adobe Acrobat (non-viewer version), when it's the conversion engine, will automatically add bookmarks for each file it converts. So you can submit the HTML contents, not as a single HTML file, but as HTML files for each section you want a bookmark over.

The first 'downside' of Option #1 might not be a problem. But the second is pretty ugly. And other libraries definitely can create the bookmarks without creating 3-per-file. The main obstacle here is: the library has to be smart enough to resolve those 'external' hyperlinks to within the PDF that's created. One thing that often hurts is that those conversion libraries often want to convert each separate file to a PDF internally first and then merge the PDFs together... but that means that it won't handle the cross-file hyperlinks correctly. I wasn't able to find a way to make this work with our existing PDF conversion libraries.

Instead of having a 'Help.html', which is then converted to PDF somehow, start with a format other than HTML. And the easiest source to get into PDF+Bookmarks is MSWord+Headers. Generally, for each PDF help file you want, you can have a master .DOCX sitting somewhere behind the scenes. We've used this approach before, and while it's not the most elegant, it at least works pretty well.

This might not be applicable for the OP's use case... but if you're generating the help, there's nothing to say you can't use the PDF Conversion library programatically to add whatever bookmarks you want. Pretty much every PDF engine I've seen allows API access to bookmarks, so if this avenue is open to you, it's almost certainly the cleanest solution-wise.

Like I mentioned, it's possible there's a PDF conversion engine out there that has a good HTML parsing engine and can handle bookmarks from various HTML tags (like H1, H2, etc.) However, it's probably going to take a bit to find it, because it's so much easier for a potential engine-writer to allow the file to be rendered with a native viewer. Think about it. If you were writing a PDF Conversion Service, which would you rather do:

Don't use chrome, although it is simple to convert a web page to a PDF file. If you want pdf bookmarks, you can try microsoft word (2010). Just save the web pages to local, and open it with MS word 2010, then save it as pdf. The bookmark is there. see also: -TECHS/PDF2.html

I would like to add that the behavior described above is the most common. However, I have tried to work around the problem by putting my bookmarks (in the form of id= added to tags) some number of lines higher in the document and I have found the results to be different than expected. Several times, after putting the bookmark higher, I have followed the bookmark only to end up lower instead.

I had a MAJOR crash of my computer caused by a Windows Update. When I got the machine back, my bookmarks were gone. I tried to import them from an HTML file that was created just prior to the crash, but Firefox is not importing the bookmark file. I select the file, and nothing happens.

If "Verify Integrity" on the "Help -> Troubleshooting Information" (about:support) page cannot repair places.sqlite then remove all places.sqlite files in the Firefox profile folder.Firefox will rebuild places.sqlite and restore the bookmarks from a recent JSON backup in the bookmarkbackups folder.

Hey @MusicalSpace,
welcome to the forum.
I guess you were the one asking for an HTML import function in the Discord?
As you wiped the template for feature requests, there is crucial information missing in here.
What is in your html? (Bookmarks I guess from the Discord)
What do you would like to happen with them?

Developers use HTML bookmarks to control the flow of their web pages and direct the traffic on their web pages to relevant sections by linking them together or to other relevant web pages. They are helpful when the websites have a lot of content. This ensures a better user experience.

I have been looking into this myself as the indenting has become tiring - although as I know my bookmarks folder and sub-folder structure I have been able to speed up the process my multi-selecting and batch indenting.

I tried what you said with my previous bookmarks of chrome and it works. But I have another problem the list of bookmarks is so big that the Obsidian app crash with enhancing mindmap and with mindmap is very slowly the zoom and not efficient.
image364877 61.4 KB

This inserts the html after the bookmark. I would like to enclose the HTML in the bookmark:
ex: [HTML here]
With the code above, the text is added like this: ][HTML Here
[=Bookmark start
]=Bookmark end

Thanks for your inquiry. The bookmark is in your output html, because you did not remove it from your document before saving to HTML. In your code you clone the original document and then remove content before bookmark and content after bookmark, but the bookmarks is still there. If you need also remove the bookmark, you can use code like the following:

Hi everyone,

I use the following suffix on an html link in order to link to a specific page within a pdf file:

#page=15

This works but I need to know go one step further and link to a specific bookmark within the pdf. I use the following suffix to try to do this:

#bookmark name

The above syntax doesn't work because the bookmarks all have spaces in their names. Apparently it's supposed to work if I remove the spaces from the bookmark names but this isn't practical because I'm generating the pdf out of Indesign and the bookmarks in the resulting pdf are just a reflection of the table of contents in Indesign. I can't remove the spaces from the TOC entries just so that there's no spaces in the bookmarks in the pdf.

So I need some sort of workaround and wondered if anyone would have any suggestions. Is there some acrobat script or any other solution to this problem?

Really appreciate any help.

Is there a way to export Chrome bookmarks in HTML format using PowerShell? I know I can just grab the bookmarks file from "C:\Users\\AppData\Local\Google\Chrome\User Data\Default" if I want to backup the bookmarks but it's not in HTML format. I specifically want to export the bookmarks in HTML format so they can be imported into different browsers on different computers.

JitenSh As I mentioned in the post, I'm trying to export to HTML format so it can be imported into different browsers. Just copying the bookmarks file will work only for importing into Chrome again.

I was hoping there would be something else I could do. I researched the API Google provides for Chrome but looks like they don't support anything to do with exporting bookmarks so I'm out of luck there too.

The WebExtensions bookmarks API lets an extension interact with and manipulate the browser's bookmarking system. You can use it to bookmark pages, retrieve existing bookmarks, and edit, remove, and organize bookmarks.

Fired when a bookmark import session is begun. Expensive observers should ignore bookmarks.onCreated updates until bookmarks.onImportEnded is fired. Observers should still handle other notifications immediately.

Also why is the menu item of "showing" bookmarks in a new window not called "Show Bookmarks" or "Show Bookmarks Window"? The current "Show Bookmarks" should be renamed to "(Show) Bookmarks Sidebar" instead.

760c119bf3
Reply all
Reply to author
Forward
0 new messages