benwiggy / pdfsuite Goto Github PK
View Code? Open in Web Editor NEWPython scripts, Automator Services and Quartz Filters for MacOS (OS X) that create, manipulate, and query PDF files
Python scripts, Automator Services and Quartz Filters for MacOS (OS X) that create, manipulate, and query PDF files
I am using BigSur. I see the same problem with python 2 and python 3:
python quartzfilter.py /home/johnweissberg/Desktop/wp2print-flyer-a4-with-bleed.pdf '/System/Library/Filters/Gray Tone.qfilter' /home/johnweissberg/Desktop/wp2print-flyer-a4-with-bleed-gray-quartzfilter.pdf
Traceback (most recent call last):
File "quartzfilter.py", line 69, in main
pdfDoc.writeToFile_withOptions_(outputfile, dict)
AttributeError: 'NoneType' object has no attribute 'writeToFile_withOptions_'
Most printers assume long-edge binding when printing two-sided. Finding the printer option for short-edge binding can be awkward to find, especially when sharing a printable PDF booklet to most average Joes.
I usually dodge this by rotating every other page in a booklet by 180°. Be nice to get a pointer of where and how to hack booklet.py to do this. Somewhere around line 158 I guess...
Any kind souls fancy giving me a pointer please?
EDIT: Last time I looked at this, I turned up some Stack overflow ideas, but failed to see how to integrate them.
You mention in the readme "Add page numbers, watermarks, tints or other text and graphics to PDFs", but I don't see any further mention of adding images to a PDF.
I'm trying to replace an existing image with another in a PDF via the command line (even if that means placing the new image on top of the old one), but not sure if this is possible with PDFsuite?
Hi, I'm trying to join these two pdfs (the pdf with parts 1-4 comes first, naturally), but when I use your pdf joining tool, I cannot see the table of contents of the second pdf in the resulting Combined.pdf:
https://drive.google.com/open?id=1HMpDMmmepI870FqCaMgUmaKHNB2_22ts
https://drive.google.com/open?id=1juTWny43Ld1QFq6I-2h9FQzwdQUgQHpZ
I encounter some pdfs that cause trouble. I'm attaching one such. Using pdf2png.py I get the error CoreGraphics PDF has logged an error. Set environment variable "CG_PDF_VERBOSE" to learn more.
The cover page is not exported.
I'm using Python 3.10.6, pyobjc 9.0.1, macOS Ventura 13.2.
I'm trying quartzfilter.py, from the Terminal, without success. Getting the above error.
Hi,
Am unable to use this one
Traceback (most recent call last): File "quartzfilter.py", line 51, in <module> main(sys.argv[1:]) File "quartzfilter.py", line 25, in main usage () NameError: global name 'usage' is not defined
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.