Comments (2)
I also wanted to note that I tried the code suggestions that I saw in Issue 8.
Adding the checks to determine if page.Contents was already a PdfArray seems to
prevent the error message, but converting this PDF to a Stream and using it as
an Overlay does not produce the expected results - the output document does not
contain the watermark.
Original comment by [email protected]
on 4 Nov 2013 at 5:38
from pdfrw.
This is actually two issues. The first has been fixed by code on the master branch. The second is that the watermark file contains compression that is currently unsupported by pdfrw. (This is part of issue #5 )
You can use pdftk to uncompress the file:
pdftk sourcefile.pdf output destfile.pdf uncompress
and then the uncompressed watermark file will work.
from pdfrw.
Related Issues (20)
- means to determine that a file is encrypted
- Incorrect reportlab link in README
- Preserve table of contents when editing PDF HOT 1
- 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
- Expected dict type of /XRef HOT 1
- Form push button widget creation does not work HOT 2
- Get Layered PDF using pdfrw HOT 1
- Fill PDF from Excel sheet HOT 1
- Filled PDF form fields not visible in Windows preview
- How do I load an existing pdf implementation and replace strings in the document without changing the original layout 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.