| <<<Back 1 day (to 2018/08/26) | 20180827 |
n0b3 | I've been writing a python script to bookmark PDFs and recently added a function that uses Ghostscript to compress the file (PyPDF2 apparently doesn't do compression and balloons the file size). I got it to work on the first PDF file it handles but then it throws an error once it gets to the next one. I don't know if this is an issue with the way I'm using Ghostscript or if it's an issue with my Python code (I'm not a programmer | 18:37.00 |
| and don't know a ton about Python). Anyone willing to look at my code? | 18:37.00 |
| The main script is @: https://thepasteb.in/p/g5hxc3gX7GAwRC6 and the pdf_utilities.py script is uses is @: https://thepasteb.in/p/DRhKcZG4kmO1zUx | if anyone can offer suggestions or input it'd be much appreciated | 18:39.50 |
| Thx | 18:40.01 |
| I'm also getting this error: GPL Ghostscript 9.23: Missing glyph CID=0, glyph=007e in the font HiddenHorzOCR . The output PDF may fail with some viewers. | 18:41.55 |
| Is this something to be worried about or does it even matter if I'm just using gs to compress the file? | 18:43.03 |
| The file that it did compress seems to look okay. | 18:46.09 |
| Forward 1 day (to 2018/08/28)>>> | |