I am using Spire.Office 7.11.0.
When i try to load .pdf file from stream, or even from file i get an error "Invalid/Unknown/Unsupported format".
I only get that error when i try to load that one file that has layers. Can send it privately if needed.
Code i use is:
- Code: Select all
Spire.Pdf.PdfDocument pdfDocument = new PdfDocument();
pdfDocument.LoadFromFile("pathToFile");
or
- Code: Select all
Spire.Pdf.PdfDocument pdfDocument = new PdfDocument();
pdfDocument.LoadFromBytes(byteArray);
Is there a workaround for this?
Best regards