You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "aidan (JIRA)" <ji...@apache.org> on 2019/01/09 12:40:00 UTC

[jira] [Created] (PDFBOX-4427) Can't pass parameters to pdfbox-app-2.0.13.jar using DITA OT 2.5.4 and Ant version 1.10.1

aidan created PDFBOX-4427:
-----------------------------

             Summary: Can't pass parameters to pdfbox-app-2.0.13.jar using DITA OT 2.5.4 and Ant version 1.10.1
                 Key: PDFBOX-4427
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4427
             Project: PDFBox
          Issue Type: Bug
          Components: Rendering
    Affects Versions: 2.0.13
         Environment: Windows
            Reporter: aidan


I am trying to incorporate pdfbox PDFToImage into a DITA OT plugin that converts pdf format images into png. it seems that pdfbox-app-2.0.13.jar doesn't accept parameters from ant when i pass them in the build file.

running the following at the command line works fine: 

{{java -jar C:\dita-ot-2.5.4-ixiasoft\plugins\org.dita-semia.image-convert\lib\pdfbox-app-2.0.13.jar PDFToImage C:\dita-ot-2.5.4-ixiasoft\plugins\org.dita-semia.image-convert\test\figure-4.pdf -page 1 -dpi 96 -imageType png}}

Running this in the ant build and the params are ignored, and a jpg is output: 

{{ <java classname="org.apache.pdfbox.tools.PDFToImage" fork="true" failonerror="true">}}
{{ <classpath>}}
{{ <pathelement location="lib/pdfbox-app-2.0.13.jar"/>}}
{{ </classpath>}}
{{ <arg value="${output.dir}/@\{src-filename}"/>}}
{{ <arg value="-outputPrefix @\{dst-filename}"/>}}
{{ <arg value="-imageType ${dita-semia.image-convert.dest-format}"/>}}
{{ <arg value="-dpi ${dita-semia.image-convert.dpi}"/>}}
{{ <arg value="-page 1"/>}}
{{ </java>}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org