Hello,
Sorry for my english but I am french.
I want to create a pdf with layers from tiffs files.
For example, I have 3 tiffs files and I would like to have a pdf file with 3 layers.
Is it possible?
Thanks.
Create a pdf with layers from several tiffs files
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Create a pdf with layers from several tiffs files
IM can create a PDF with one image per page, like this:
Code: Select all
magick in1.tiff in2.tiff in3.tiff out.pdf
snibgo's IM pages: im.snibgo.com
Re: Create a pdf with layers from several tiffs files
Thank you for your reply.
But I want to have a pdf with layers and not pages.
But I want to have a pdf with layers and not pages.
Re: Create a pdf with layers from several tiffs files
PDF can include layer, Optional Content Groups, since version 1.5. The pdf imagemagick generates have a header of 1.3, so it's easy to guess imagemagick has no feature to create it.
Many PDF product claims that can do, but I only found few open source that can create PDF layer.
If you are willing to program it in Java, Apache PDFBox would do it using appendFormAsLayer and importPageAsForm method in LayerUtility class. https://pdfbox.apache.org/docs/2.0.13/j ... ility.html
Many PDF product claims that can do, but I only found few open source that can create PDF layer.
If you are willing to program it in Java, Apache PDFBox would do it using appendFormAsLayer and importPageAsForm method in LayerUtility class. https://pdfbox.apache.org/docs/2.0.13/j ... ility.html
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Create a pdf with layers from several tiffs files
Imagemagick can not currently create layered PDFs to my knowledge. Imagemagick is coded in C, only as far as I know. If you want an enhancement, you can request it on the Developers forum and it will be put into the queue
Re: Create a pdf with layers from several tiffs files
Thank you for your answers.
I am not an expert java but I will still inform me.
What is the generated version of the pdf in imagemagick 7?
I am not an expert java but I will still inform me.
What is the generated version of the pdf in imagemagick 7?
Re: Create a pdf with layers from several tiffs files
My previous answer for version is wrong. It seems it depends on input:
Code: Select all
$ magick wizard: tiff:- | magick - PDF:- | head -1
%PDF-1.7
$ magick wizard: png:- | magick - PDF:- | head -1
%PDF-1.3
If you need Java sample code using PDFBox, I will send the simple sample code.
Re: Create a pdf with layers from several tiffs files
Okay.
Yes I want if you do not mind.
Thank you.
Yes I want if you do not mind.
Thank you.