PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Jan 20, 2022 9:12 pm

All times are UTC

Forum rules

Please read this before posting on this forum: Forum Rules

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Wed Jan 19, 2022 7:28 am 

Joined: Wed Jan 19, 2022 6:58 am
Posts: 1
Good morning,

My name is Sandro Knapp and this is my first post in the forum :)

we are using the pdfsharp library on C# projects to adapt PDF files.
In some cases we run into errors.

May a short summary, what the programm is doing:
a PDF document is sent by mail to specific address. The programm takes the attachment from the mail.
A header page is added to the document and further saved to specific path.

In some cases we receive following error messages:
PdfSharp.Pdf.IO.PdfReaderException: Das PDF-Dokument ist mit einer von PDFsharp nicht unterstützten Verschlüsselung geschützt.
bei PdfSharp.Pdf.Security.PdfStandardSecurityHandler.ValidatePassword(String inputPassword)
bei PdfSharp.Pdf.IO.PdfReader.Open(Stream stream, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider passwordProvider)
bei PdfSharp.Pdf.IO.PdfReader.Open(String path, String password, PdfDocumentOpenMode openmode, PdfPasswordProvider provider)
bei PdfSharp.Pdf.IO.PdfReader.Open(String path, PdfDocumentOpenMode openmode)
bei SRDII.doc.merge_pdfs_isharp(String targetPath, String pdf_one, String pdf_two) in C:\Program Files (x86)\Rethink Fintech\SRDII\SRDII\doc.cs:Zeile 110.

It seems that those documents have an unsupoorted encryption.
Those documents are sent by several external partners.

Unfortunately I am not able to attach an example, as the size of the document is too big (700 KB, max size 256 KB).
Compression an zipping even not big.

Do you have any ideas, how we are able to solve our issue?

If you need further information, please don't hesitate to ask.

Thank you for your assistance


Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: Google [Bot] and 18 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group