Create PDF file with bookmarks using convert?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
rhubarbpie
Posts: 3
Joined: 2014-10-02T05:58:21-07:00
Authentication code: 6789

Create PDF file with bookmarks using convert?

Post by rhubarbpie »

Can a PDF file containing bookmarks be created using convert? I know how to create a PDF with "convert *jpg file.pdf" but that doesn't include bookmarks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Create PDF file with bookmarks using convert?

Post by fmw42 »

Not that I know.
JulietLindl
Posts: 3
Joined: 2014-10-03T13:38:58-07:00
Authentication code: 6789

Re: Create PDF file with bookmarks using convert?

Post by JulietLindl »

rhubarbpie wrote:Can a PDF file containing bookmarks be created using convert? I know how to create a PDF with "convert *jpg file.pdf" but that doesn't include bookmarks.
I'd like to know if this is possible, anyone have a way of doing this? Thanks Juli
Juliet
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Create PDF file with bookmarks using convert?

Post by fmw42 »

IM can convert most image formats to PDF, but they will just be rasterized and put into a PDF vector shell. IM is not a good processor to create vector PDF files. See http://www.imagemagick.org/Usage/formats/#vector

What are you expecting to start with? Is it an image or another PDF? Where are the bookmarks coming from?

IM cannot add bookmarks to a PDF. Even if you have another PDF with bookmarks and convert that to another PDF, the bookmarks will be lost except possibly for the underlines. The links will be gone.

Please clarify your situation in more detail about your source data.
rhubarbpie
Posts: 3
Joined: 2014-10-02T05:58:21-07:00
Authentication code: 6789

Re: Create PDF file with bookmarks using convert?

Post by rhubarbpie »

I have only jpg files. I could live with a bookmark the same as the file name.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Create PDF file with bookmarks using convert?

Post by fmw42 »

rhubarbpie wrote:I have only jpg files. I could live with a bookmark the same as the file name.
We do not know what you mean by a bookmark? Please clarify? If this is a link in an output PDF file, I do not believe that IM can do that.
rich2005
Posts: 32
Joined: 2012-04-09T11:07:36-07:00
Authentication code: 8675308

Re: Create PDF file with bookmarks using convert?

Post by rich2005 »

I do not think IM can do this either.

For simplicity, you might get a result with LibreOffice, a quick test using LO Draw, LO Writer probably the same.

You can add hyperlinks in the document like this: http://i.imgur.com/STDB5fR.jpg

Export as a pdf & looks like this. http://i.imgur.com/mXU826F.jpg

Using PClinuxOS KDE and LO 4.3.2.2 Have not tried the Win version of LO.
rhubarbpie
Posts: 3
Joined: 2014-10-02T05:58:21-07:00
Authentication code: 6789

Re: Create PDF file with bookmarks using convert?

Post by rhubarbpie »

Thank you, I use OpenOffice now. However, that's a rather slow process for a large number of images. The convert command is quite simple and very fast. If is only created bookmarks.
Post Reply