dpi and pdfa convertion do not reflect #98
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi there,
I am using a list in a python script to create multiple pdfs
changing the dpi does not reflect any changes in the output and using pdfa also does not convert it to a pdfa format.
I am not sure if this is not supported to use like this or if it is not working.
The scripts otherwise works fine and does what is should do convert multiple picture files tiff & jpgs to pdf.
This should indeed be fixed in the docs. Until it is the solution to setting the dpi is to pass a different layout function. Since changing the dpi is a common task, img2pdf brings a handy wrapper that you can use like this:
The pdfa argument expects the path to an icc profile. So you have to call
convert
like this:Thanks a lot for the fast response. I just tried to set the dpi as suggested. Script still working but the size of the pdf does not change.
I'm pretty new to converting files but shouldn't it lower the quality with lower dpi and the file should become smaller? (tried 50,50 150,150 300,300 600,600)
About the pdfa, thanks I will look into that.
Consult the README. img2pdf is always lossless and refuses to work if it cannot do its job without loss of information. This means that the size is the same independent of the dpi. The dpi value only influences the page size (as in cm).
ah okay, very nice.
PDFA is working too with providing an icc profile.
Thanks, solved for me then.