what tools to use?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
krhicks
Posts: 1
Joined: 2011-03-10T10:22:01-07:00
Authentication code: 8675308

what tools to use?

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: what tools to use?

Post 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/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Tom066
Posts: 2
Joined: 2013-07-18T12:18:28-07:00
Authentication code: 6789

Re: what tools to use?

Post 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?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: what tools to use?

Post 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?
Tom066
Posts: 2
Joined: 2013-07-18T12:18:28-07:00
Authentication code: 6789

Re: what tools to use?

Post 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)
Post Reply