Best practices for good performance copies?: Things are different now with respect to PDF files and paper size
Posted: Fri May 17, 2019 8:32 pm
Let me describe some recent adventures I've had trying to produce good performing copies. (From these files FWIW: IMSLP147747-SIBLEY1802.17248.8143-39087012930998septet_vol._1.pdf and IMSLP147748-SIBLEY1802.17248.9897-39087012930980septet_vol._2.pdf)
These files are typical in that they have a series of embedded raster graphics, one for each page. It appears to me that PDF standard allows for specifying that the page is only a window cut from the graphic. This seems to have caused endless grief for the standard Linux tools for cropping. I had to go through many steps to get decent results:
strip the embedded graphics into individual files
deskew them although I could have skipped this
crop margins
reassemble into PDF files
The aggravation of it all led me here to this forum and I was surprised that there seems to be a lot of stuff about PDF that is not current and very little stuff that can help make many things better.
A true statement, yes?: Every single page of a PDF file has its own resolution and virtual page size. The whole focus on Letter, A3, A4, etc., traces back to old versions of ghostscript that needed it.
If you allow the format to do what it does well, then each page can have a different virtual size but will be rendered pretty much as effectively as possible when the setting for print in Adobe Reader or Foxit is set to "Fit page."
Where am I going with this? I'm looking for the best, reliable tools, to margin pages down to minimums. The nicest one I have seen in terms of interface is called krop by Dr. Armin Straub, but it chokes dramatically on the files above. (If you are interested, you can see the input and the failures here: https://drive.google.com/drive/folders/ ... sp=sharing) Linux command pdfcrop is another tool that ought to work but fails. If there are alternatives that work or updates to these that have bugs fixed, that's a great step forward. The conclusion I reach is that the kinds of PDF files we care about on IMSLP have contents that don't play nice with otherwise helpful tools people have written.
While I am on the general topic, there is a feature that I am looking for in some program that prints PDF files. To wit: an exact magnification option but with a specified offset or a specified center point (the same thing, just the way to look at it). Printing at xxx percent will position the lower-left corner of the document at lower-left corner of the paper and may overflow the other 3 margins. What if you could specify the point in the document to match to the lower-left corner of the print? By setting the percent appropriately you could margin all four sides at once to your liking. For someone wanting a lot of scores printed that come out better than the downloaded version, this would be a really quick way there.
These files are typical in that they have a series of embedded raster graphics, one for each page. It appears to me that PDF standard allows for specifying that the page is only a window cut from the graphic. This seems to have caused endless grief for the standard Linux tools for cropping. I had to go through many steps to get decent results:
strip the embedded graphics into individual files
deskew them although I could have skipped this
crop margins
reassemble into PDF files
The aggravation of it all led me here to this forum and I was surprised that there seems to be a lot of stuff about PDF that is not current and very little stuff that can help make many things better.
A true statement, yes?: Every single page of a PDF file has its own resolution and virtual page size. The whole focus on Letter, A3, A4, etc., traces back to old versions of ghostscript that needed it.
If you allow the format to do what it does well, then each page can have a different virtual size but will be rendered pretty much as effectively as possible when the setting for print in Adobe Reader or Foxit is set to "Fit page."
Where am I going with this? I'm looking for the best, reliable tools, to margin pages down to minimums. The nicest one I have seen in terms of interface is called krop by Dr. Armin Straub, but it chokes dramatically on the files above. (If you are interested, you can see the input and the failures here: https://drive.google.com/drive/folders/ ... sp=sharing) Linux command pdfcrop is another tool that ought to work but fails. If there are alternatives that work or updates to these that have bugs fixed, that's a great step forward. The conclusion I reach is that the kinds of PDF files we care about on IMSLP have contents that don't play nice with otherwise helpful tools people have written.
While I am on the general topic, there is a feature that I am looking for in some program that prints PDF files. To wit: an exact magnification option but with a specified offset or a specified center point (the same thing, just the way to look at it). Printing at xxx percent will position the lower-left corner of the document at lower-left corner of the paper and may overflow the other 3 margins. What if you could specify the point in the document to match to the lower-left corner of the print? By setting the percent appropriately you could margin all four sides at once to your liking. For someone wanting a lot of scores printed that come out better than the downloaded version, this would be a really quick way there.