Open cassiuscai opened 3 months ago
Can you explain more about what this does? The existing -scale-to-fit
does "automatic calculation of the scale ratio based on the PDF's width and height" so I'm not sure what is different here... Can you give an example?
cpdf --scale-to-fit '820 1180'
led to unintended results. The content was resized to fit within an 820x1180 bounding box; however, this introduced additional blank spaces above and below the original image, which was not the desired outcome:Got it. Thanks.
Attached is an example of terminology used in Affinity Publisher. Perhaps this may be helpful:
It would be great to have a built-in option in your PDF scaling tool that combines the
--scale-page
and--scale-to-fit
options with automatic calculation of the scale ratio based on the PDF's width and height. This new feature could be invoked using the following command:Below is a Fish shell script I've created that performs the same task; however, it relies on multiple dependencies, which can be cumbersome. I utilize this script to scale or adjust the zoom level of my PDF files, ensuring they perfectly fit the dimensions of my iPad's screen and eliminating any unsightly black borders.