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 Jan 25, 2018 5:15 pm

When I want to print a pdf I get the error:

Invalid / Unknown / Unsupported format

The document does not have a password and is not protected either, what can the solution be?

Code: Select all
 string pdflocal = (@"C:\Total\EX–2017.pdf");

            PdfDocument pdf = new PdfDocument();
            pdf.LoadFromFile(pdflocal);
           
            pdf.PrintSettings.PrinterName = "Microsoft Print to PDF";
            pdf.PrintSettings.PrintToFile(@"C:\Total\DocumentNEW.pdf");

            pdf.Print();

ssalvadeo
 
Posts: 1
Joined: Thu Dec 28, 2017 12:55 pm

Fri Jan 26, 2018 3:00 am

Hello,

Thanks for your post. To help us investigate the issue, please share us with your PDF file. We promise to keep it confidential and won't use it for any other purpose.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Mon Jan 29, 2018 9:18 am

Hello,

Greeting from E-iceblue.
How is the issue going?
Your feedback will be greatly appreciated.

Best regards,
Simon
E-iceblue support team
User avatar

Simon.yang
 
Posts: 620
Joined: Wed Jan 11, 2017 2:03 am

Return to Spire.PDF