Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Jun 13, 2024 4:21 pm

Good Day,

Getting this "error: Invalid/Unknown/Unsupported format" while using LoadFromFile method in Ubuntu but same works in windows

PdfDocument Document = new PdfDocument();
Document.LoadFromFile(Path.Combine(downloadLocation, fileName), FileFormat.PDF);

Am using Spire.PDF - Version 9.2.6 and even tried with 10.1.1

Please let me know if any workaround. Thanks in Advance

NirmalTest
 
Posts: 1
Joined: Thu Jun 13, 2024 4:05 pm

Fri Jun 14, 2024 2:06 am

Hello,

Thanks for your inquiry.
We speculate that this issue is related to your file. To help us investigate more accurately, please provide us with your pdf file. You can upload it to the attachment here or send it to this email [email protected]. Thanks in advance.

Sincerely,
William
E-iceblue support team
User avatar

William.Zhang
 
Posts: 757
Joined: Mon Dec 27, 2021 2:23 am

Return to Spire.PDF