I am copying the pages of a 81284 page pdf file, and saving to a new file with linearization. However, the save call came back with an exception during execution:
Exception: An error occurred during linearization: Operation file seek failed
What possible causes are there for the save command to fail with this error? I’ve attached my python code below.
new_doc = PDFDoc()
doc = PDFDoc("./test.pdf")
copy_pages = VectorPage()
itr = doc.GetPageIterator()
page = itr.Current()
imported_pages = new_doc.ImportPages(copy_pages)
i = iter(imported_pages)
for x in i:
I know that it may be difficult to debug this without the original pdf, so just pointing me at possible causes of this error message would be great. I cannot provide the pdf itself without approval from management, as it has confidential information in it.
Thanks for building an excellent product!
L & D Mail Masters, Inc.
110 Security Pkwy
New Albany, IN 47150