Comments (1)
Hi!
The way you do it you are creating a blank PDF document and adding pages to it. However, if you want to edit an existing document a much simpler way would be to omit the call to addPage altogether, edit the pages in pdf in-place, just as your code does, and in the end simply write the result out using:
PdfWriter('output.pdf', trailer=pdf).write()
from pdfrw.
Related Issues (20)
- Getting RecursionError while trying to compare 2 PDFs parsed with PdfReader
- PDF form filled with pdfrw can't be opened in adobe reader? HOT 3
- copy.py -- "dictionary changed size during iteration" and other issues.
- Bug: RectXObj().w = 1 sets .h instead
- PDF Form - Break Line
- Can't use preexisting streams like pyPdf while initializing PdfReader
- means to determine that a file is encrypted
- Incorrect reportlab link in README
- NameError: name 'name' is not defined
- please use logging.NullHandler
- [Discussion] PyPDF2 ❤️ pdfrw HOT 2
- Hi! I was wondering if pdfrw is capable of making a new PDF based off of the PDF form
- How to change the font? HOT 1
- How to create a new PDF, add new pages with some text? HOT 1
- PdfReader only reads 11 pages of a certain file but there is no error
- PageMerge with canvas :: Links are not working
- invisible text layer HOT 1
- pdfrwx: a pre-preliminary announcement
- reader.Info is None. How to set attribute in this case? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdfrw.