Page 1 of 1

what tools to use?

Posted: 2011-03-10T10:26:12-07:00
by krhicks
I am writing a vb.net tool to convert a batch of TIFF files to a single PDF. I need a component that I can include that will do that. But at the same time I need to be able to add some text to the header at the top of each page and also to create bookmarks. I did a search on "convert TIFF to PDF" and one of the hits was for ImageMagick. I know next to nothing about ImageMagick but what I did read indicates I can do the conversion with it. Will any of the ImageMagick tools accomplish what I need to do? If so, which one(s)? The biggest issues are the ability to add text to pages and create bookmarks.

Thanks,

Keith

Re: what tools to use?

Posted: 2011-03-12T20:09:05-07:00
by anthony
See IM Examples
http://www.imagemagick.org/Usage/

Start with basics. And especially the "convert" command.
http://www.imagemagick.org/Usage/basics/#convert

Writing Text and bookmarks see "Annotating Images"
http://www.imagemagick.org/Usage/annotating/

For VB specifics see IM under Windows
http://www.imagemagick.org/Usage/windows/

Re: what tools to use?

Posted: 2013-07-18T12:31:23-07:00
by Tom066
I have a very similar task:

I would like to merge several images into one pdf file which works fine. But I would like to add automatically pdf-bookmarks for specific pages (pictures) during this converting.

I tried
convert pic_01.jpg pic_02.jpg -caption "my pic 02" pic_03.jpg mypics.pdf
convert pic_01.jpg pic_02.jpg -label "my pic 02" pic_03.jpg mypics.pdf
and also
convert pic_01.jpg pic_02.jpg -set bookmark "my pic 02" pic_03.jpg mypics.pdf
but nothing generates the bookmarks in the pdf file.

What do I wrong here?

Re: what tools to use?

Posted: 2013-07-18T14:09:29-07:00
by fmw42
I am unaware that IM can add bookmarks links. You probably need to use Adobe Acrobat for that. I will defer to anyone who knows otherwise.

Perhaps I misunderstand by what you mean by "bookmarks". Can you explain a bit more about what functionality you desire?

Re: what tools to use?

Posted: 2013-07-18T15:27:14-07:00
by Tom066
Thanks for that quick response.
Yes, I meant these bookmark links.
I can manually add such bookmarks to an existing pdf for example with Foxit Reader. But I thought that I could somehow automate it in a script during creation of the pdf with IM.

I think I have found a solution for my "problem": With MarkdownPad it is possible to generate a pdf and it automatically creates the bookmark links out of the headers. It also support nested bookmarks. The source code looks like this:

# Header 1
![](./pic1.jpg)
# Header 2
![](./pic2.jpg)
![](./pic3.jpg)
## Sub header 2.1
![](./pic4.jpg)