[solved] Convert to PDF version 1.4, exactly (need 1.4 as hard coded arg)

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
mhulse
Posts: 61
Joined: 2016-03-17T18:46:22-07:00
Authentication code: 1151

[solved] Convert to PDF version 1.4, exactly (need 1.4 as hard coded arg)

Post by mhulse »

Hello,

Out of the box, from what I can tell, on my macOS system, ImageMagick creates a PDF using 1.4.

But when I use:

Code: Select all

convert inputfiles pdfa:outputfile.pdf
The pdf is version 1.6.

Is there any way for me to specify the exact version? I think, optimally, I want PDFA 1.4.

Basically, I need to make sure my PDFs are 1.4; I would like to be explicit about this, rather than let the default PDF conversion handle it implicitly.

Thanks so much in advance!

Code: Select all

Version: ImageMagick 6.9.5-10 Q16 x86_64 2016-09-21 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2016 ImageMagick Studio LLC
License: http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules
Delegates (built-in): bzlib freetype jng jpeg ltdl lzma png tiff xml zlib
Last edited by mhulse on 2016-10-16T20:11:46-07:00, edited 1 time in total.
Homebrew-installed ImageMagick 7.0.8-27 Q16 x86_64 2019-02-12 | macOS Mojave | MacBook Pro
mhulse
Posts: 61
Joined: 2016-03-17T18:46:22-07:00
Authentication code: 1151

Re: Convert to PDF version 1.4, exactly (need 1.4 as hard coded arg)

Post by mhulse »

Just as an update, I think I will use GhostScript to do the PDF conversion for my project. I just found out that it has an option for PDF version:

Code: Select all

-dCompatibilityLevel=1.4
Homebrew-installed ImageMagick 7.0.8-27 Q16 x86_64 2019-02-12 | macOS Mojave | MacBook Pro
Post Reply