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.

Mon Nov 13, 2017 8:05 am

The following code is used:
using (var docInput = new PdfDocument(fileToConvert))
{
using (var docOutput = new PdfDocument(PdfConformanceLevel.Pdf_A1B))
{
docOutput.InsertPageRange(docInput, 0, docInput.Pages.Count - 1);
docOutput.SaveToFile(destination, FileFormat.PDF);
docOutput.Close();
}
docInput.Close();
}

When I use this code with the following file:
https://pivit.com.au/images/files/pdf/5 ... t-file.pdf

It gets stuck on the line "docOutput.InsertPageRange(docInput, 0, docInput.Pages.Count - 1);".

Any suggestions on how to fix this? Or is this a bug?

mga
 
Posts: 2
Joined: Mon Apr 11, 2016 8:45 am

Mon Nov 13, 2017 9:04 am

Hi,

Thanks for your inquiry.
I have reproduced the issue and referred it to our dev team for a further investigation. Generally speaking, it should be a bug.
Once there's any update, I will let you know.

Sincerely,
Jane
E-iceblue support team
User avatar

Jane.Bai
 
Posts: 1156
Joined: Tue Nov 29, 2016 1:47 am

Wed Jan 20, 2021 10:09 am

Dear mga,

Sorry for the long silence.

Glad to inform that your issue has been solved and kindly note that because the file is too large, it needs a long time to be converted to Pdf_A1B.

Welcome to download the latest Spire.Pdf v7.1 from the following links and refer to the following code to make a test.

Website link:https://www.e-iceblue.com/Download/download-pdf-for-net-now.html
Nuget link: https://www.nuget.org/packages/Spire.PDF/7.1.10

Code: Select all
            PdfStandardsConverter convert = new PdfStandardsConverter(@"E:\testdoc\50mb-test-file.pdf");
            convert.ToPdfA1B("result.pdf");


If you encounter any issues related to our product in the future, just feel free to contact us.

Sincerely,
Marcia
E-iceblue support team
User avatar

Marcia.Zhou
 
Posts: 858
Joined: Wed Nov 04, 2020 2:29 am

Return to Spire.PDF