Batch Convert Image to PDF with VeryPDF OCR Converter Command Line

Hello

I'm testing the trial version of Image to PDF Converter.

Image to PDF Converter v2.1
Web: http://www.imagepdf.com
Email: support@imagepdf.com
Release Date: Dec 16 2007​

img2pdf.exe -width 596 -height 842 -margin 30x30x30x30 -dpi 300 input.jpg output.pdf

1. I'm expecting the jpg to be centered with 30 margin around and keeping the aspect ratio​, so as the jpg is not A4 format ratio, the margin would be different top/bottom to left/right as it cannot be 30 all around.

2. I'm expecting the dpi parameter change the image resolution within the pdf, but I get the same pdf-size dpi 100 and dpi 300 with a hight resolution jpg as input...

3. I'm expecting a compression level for the image within the pdf, but I cannot find one.

4. I need A4 as output format, but with width 596 and height 842 I cannot make it perfect 210x297mm, is there a hidden format switch?

See attachment for expected result.

Many thanks in advance
Kind regards,
Customer
----------------------------------

image
Dear Customer,

Thanks for your sample file.

All of these problems have been fixed in the "VeryPDF Image to PDF OCR Converter Command Line" software, you may download "VeryPDF Image to PDF OCR Converter Command Line" software from following web page to try,

https://www.verypdf.com/app/image-to-pdf-ocr-converter/try-and-buy.html
https://www.verypdf.com/dl2.php/image2pdf_cmd_ocr_trial.zip

after you download it, you can run following command line to convert your JPEG image file to PDF file properly,

img2pdfnew.exe -quick -width 596 -height 842 -margin 30x0x30x0 D:\Downloads\test.jpg D:\Downloads\out.pdf

>>I'm expecting the jpg to be centered with 30 margin around and keeping the aspect ratio​, so as the jpg is not A4 format ratio, the margin would be different top/bottom to left/right as it cannot be 30 all around.

Yes, this problem has been fixed in "VeryPDF Image to PDF OCR Converter Command Line" software, please find the answer at above.

>>I'm expecting the dpi parameter change the image resolution within the pdf, but I get the same pdf-size dpi 100 and dpi 300 with a hight resolution jpg as input...

If you specify "-width 596 -height 842" options, the "-dpi" option will be ignored automatically.

>>I'm expecting a compression level for the image within the pdf, but I cannot find one.

"VeryPDF Image to PDF OCR Converter Command Line" software contains following compression levels and compression filters, you may use them to try,

  -quality <int>               : set quality for JPEG, JPEG2000 compression
   -compressfilter <int>        : Set the compression filter which is used to compress images
        -compressfilter 0: Flate Compression
        -compressfilter 1: JPEG Compression
        -compressfilter 2: CCITT3 Compression, PDF or TIFF output
        -compressfilter 3: CCITT4 Compression, PDF or TIFF output
        -compressfilter 4: LZW Compression, TIFF or GIF output
        -compressfilter 6: FlateBW Compression, TIFF, PNG, or BMP output
        -compressfilter 7: JP2K Compression, PDF or JPEG2000 output
   -lossless                    : lossless compression for JBIG2 and JPEG2000
   -colorimg <int>              : set compression method for color image
        -colorimg 0: no change compression for color image file
        -colorimg 1: compress color image file with JPEG arithmetic
        -colorimg 2: compress color image file with JPEG2000 arithmetic
   -bwimg <int>                 : set compression method for black and white image
        -bwimg 0: no change compression for black and white image file
        -bwimg 1: compress black and white image file with CCITT G4 arithmetic
        -bwimg 2: compress black and white image file with JBIG2 arithmetic

>>I need A4 as output format, but with width 596 and height 842 I cannot make it perfect 210x297mm, is there a hidden format switch?

A4 paper size is "-width 595 -height 842" options, "-width 595 -height 842" is equal to 210x297mm, you may give it a try.

VeryPDF

VN:F [1.9.20_1166]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.20_1166]
Rating: 0 (from 0 votes)

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *


Verify Code   If you cannot see the CheckCode image,please refresh the page again!