Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PdfFileWriter.write() won't return #44

Closed
lqhl opened this issue Oct 17, 2012 · 1 comment
Closed

PdfFileWriter.write() won't return #44

lqhl opened this issue Oct 17, 2012 · 1 comment

Comments

@lqhl
Copy link

lqhl commented Oct 17, 2012

Example code:

from pyPdf import PdfFileWriter, PdfFileReader

output = PdfFileWriter()
input1 = PdfFileReader(file("1.pdf", "rb"))

for i in range(input1.getNumPages()):
    output.addPage(input1.getPage(1))

outputStream = file("document-output.pdf", "wb")
output.write(outputStream)
outputStream.close()

Example pdf file can be found here (it's a paper named Sequential hashing: A flexible approach for unveiling significant patterns in high speed networks).

@mfenniak
Copy link
Owner

I'm no longer maintaining pyPdf, but the project has been forked as pyPdf2 and is being maintained under that new name. (https://github.com/knowah/PyPDF2/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants