13–26 -imageToPdf: Converting Images to PDF

13–26–1 Processing

Converts an image file to a PDF file and outputs it.

Note:
When using the -imageToPDF command, note that the -d parameter specifies the file path of the source image, not the PDF file.

13–26–2 Example of commands

[Executing example commands]

Converts test.jpg to out.pdf and output it.

[Windows]

AHPDFToolCmd80.exe -imageToPdf -dpi 300 -rotateAngle 90 -d C:\test\test.jpg -o C:\sav\out.pdf

[Linux]

AHPDFToolCmd80 -imageToPdf -dpi 300 -rotateAngle 90 -d /home/antenna/test/test.jpg -o /home/antenna/sav/out.pdf

13–26–3 Folder settings: applied

You can perform batch processing by specifying the input folder to the -d parameter and the output folder to the -o parameter. If a folder is specified, all image files in the input folder will be converted to PDF.

The output file will be output to the specified folder using the file name with ".pdf" appended to "input file name.extension."

13–26–4 Parameters

Parameter
Content
-d
[required]
Sets the file path of the original image to be converted to PDF. Supported formats: bitmap/jpeg/png/tiff/gif
-o
[required]
Sets the PDF output file path.
-dpi
Sets the resolution as an integer value. Can be omitted.
If not specified, the resolution of the image will be used.
-rotateAngle
Sets the rotation angle. Can be omitted.
Setting values: Rotate clockwise at 0/90/180/270 (degrees).
If not specified, "0" (degrees) is applied,