Welcome Guest Search | Active Topics | Sign In | Register

The archive entry was compressed using an unsupported compression method. Options
Nathan Smith
Posted: Friday, March 3, 2023 5:36:52 PM
Rank: Member
Groups: Member

Joined: 7/31/2012
Posts: 10
This is not super important for me but would be a nice to have.

In chrome there is an option to fill out a pdf then the download button has (With your changes)
When I try to load one of these documents I receive the error.

Quote:
System.IO.InvalidDataException: The archive entry was compressed using an unsupported compression method.
at EO.Internal.pnoq.odkd(PdfDocumentSecurity cyd)
at EO.Internal.pnoq.nwbe(Boolean cya, Boolean cyb, PdfDocumentSecurity cyc)
at EO.Internal.pnof.dybr(Stream ctn, Boolean cto, Boolean ctp)
at EO.Internal.pnof.dybr(String ctq)
at EO.Internal.pnof..ctor(String ctg, PdfDocumentSecurity cth)
at EO.Pdf.PdfDocument..ctor(String fileName)


This would be useful to collect data from users also but i mostly use it to identify/find poorly named fields in the document sometimes.
I put unique values in each filed save it then I have a helper methods that walk the control tree and dump's the control's full path and value. This makes it super easy to identify those fields
eo_support
Posted: Monday, March 6, 2023 11:31:48 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

Can you provide a test file to us? If you can not post the file publically in the forum you can email it to us. See here for more details:

https://www.essentialobjects.com/forum/test_project.aspx

Thanks
Nathan Smith
Posted: Wednesday, March 8, 2023 1:52:26 PM
Rank: Member
Groups: Member

Joined: 7/31/2012
Posts: 10
I'll try to attach one in a few minutes or here is the process to create one.

Start with any fillable pdf and open in chrome.
https://www.tdi.texas.gov/forms/dwc/dwc073wkstat.pdf

Then type into 1+ fields. Then click the download icon and two options will be shown.
1. With your changes
2. Without your changes.

Select option 1 and Chrome will save the pdf with the form fields filled in.
If I try to read the filled pdf chrome created using this method it seems the Chome save with changes is compressing the pdf with a format that is not supported by EO.PDF.
Nathan Smith
Posted: Wednesday, March 8, 2023 1:56:32 PM
Rank: Member
Groups: Member

Joined: 7/31/2012
Posts: 10
I emailed a copy of the pdf to support.
eo_support
Posted: Wednesday, March 8, 2023 1:59:27 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Thank you very much for the additional information. We are able to reproduce the problem. We will look into this and reply here again once we have an update.
eo_support
Posted: Thursday, March 9, 2023 3:54:11 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

We have looked into this issue. The root of the issue is Chrome incorrectly encrypted some data that it should have not encrypted when saving an encrypted PDF file (certain data inside an encrypted PDF file should not be encrypted). This resulted in the file produced by "Save with Changes" being partially corrupted. One sign of such corruption is if you try to load it in Adobe Reader, many of the input fields are now gone.

We have changed our code to be more tolerate to such corruption so we will be able to load such file in our next build. However because the file itself is already corrupted, if you try to manipulate/resave it, you can run into other problems as well. Hopefully Chrome will fix this issue soon on their side.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.