PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

How to edit PDFs with owner password set?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3352
Page 1 of 1

Author:  adabada [ Fri May 06, 2016 7:57 pm ]
Post subject:  How to edit PDFs with owner password set?

Howdy,

I have a fillable, editable PDF that has an owner password. I can fill it in Adobe Reader and export it, and I can also use iTextSharp with unethicalReading set to true and then fill the PDF just fine, but with PDFsharp I always get the "we don't support this encryption" message.

Is there a way to edit/fill PDFs that have the owner's password set?

Thanks.

Author:  TH-Soft [ Sat May 07, 2016 7:28 am ]
Post subject:  Re: How to edit PDFs with owner password set?

Hi!
adabada wrote:
Is there a way to edit/fill PDFs that have the owner's password set?
Yes - if the encryption scheme is supported.

Author:  kevin.gregg [ Tue Jan 10, 2017 7:48 pm ]
Post subject:  Re: How to edit PDFs with owner password set?

I get a different error in this same use case. I get "Header checksum illegal".

I don't want to edit the document, just fill the form via our application. The document does not have a user password, just an owner password. This prevents PdfSharp from even opening the document so I cannot fill the form.

I have tried all the PdfDocumentOpenModes and get the same error on the line executing PdfReader.Open.

Author:  Thomas Hoevel [ Wed Jan 11, 2017 8:59 am ]
Post subject:  Re: How to edit PDFs with owner password set?

kevin.gregg wrote:
I get a different error in this same use case. I get "Header checksum illegal".
Different error, different problem.
No simple solution yet, but maybe a workaround.
See also:
viewtopic.php?f=3&t=3276&hilit=header+checksum#p9700

Author:  rogdo [ Sat Apr 14, 2018 8:52 am ]
Post subject:  Re: How to edit PDFs with owner password set?

Hi, I believe I have a similar issue. I cannot read a PDF (PDFREADER returns blank pages), nor to draw on it.

the URL to the PDF: http://mayafiles.tase.co.il/RPdf/556001 ... 907-00.pdf

when trying to draw i get - PdfSharp.SharpZipLib.SharpZipBaseException: 'Header checksum illegal'
when trying to save, i get - cannot save a pdf with no pages, although the pagecount is 2.

will glad to know if there is a solution.

many thanks in advance.

Author:  () => true [ Sat Apr 14, 2018 9:36 am ]
Post subject:  Re: How to edit PDFs with owner password set?

rogdo wrote:
Hi, I believe I have a similar issue. I cannot read a PDF (PDFREADER returns blank pages), nor to draw on it.
Different error, different problem.
No simple solution yet, but maybe a workaround.
See also:
viewtopic.php?f=3&t=3276&hilit=header+checksum#p9700
viewtopic.php?f=2&t=832

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/