We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
When opening and saving a PDF the resulting PDF is corrupt and cannot be opened by lopdf with release 0.34.
lopdf
fn main() -> Result<(), Box<dyn std::error::Error>> { let mut pdf = lopdf::Document::load("doc.pdf")?; pdf.save("/tmp/test.pdf")?; lopdf::Document::load("/tmp/test.pdf")?; Ok(()) } // Error: Trailer
The problem was fixed by 443ab33
Can you please make a new release?
A workaround is to remove the "Prev" entry from the trailer before save.
pdf.trailer.remove(b"Prev");
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi,
When opening and saving a PDF the resulting PDF is corrupt and cannot be opened by
lopdf
with release 0.34.The problem was fixed by 443ab33
Can you please make a new release?
A workaround is to remove the "Prev" entry from the trailer before save.
The text was updated successfully, but these errors were encountered: