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.

Wed Dec 07, 2016 4:13 pm

I am trying to convert a PDF document to PDF/A-1B format with the following code:

Code: Select all
using (var inputStream = new MemoryStream(_fileData))
using (var outputStream = new MemoryStream())
using (var originalDoc = new PdfDocument(inputStream))
using (var archiveableDoc = new PdfNewDocument { Conformance = PdfConformanceLevel.Pdf_A1B })
{
    foreach (PdfPageBase page in originalDoc.Pages)
    {
        SizeF size = page.Size;
        PdfPageBase p = archiveableDoc.Pages.Add(size, new PdfMargins(0));
        page.CreateTemplate().Draw(p, 0, 0);
    }
    archiveableDoc.Save(outputStream);
    return outputStream.ToArray();
}


But when I validate the converted file using the pdf-tools.com-form I get warnings about that the fonts are not embedded.

I've tried to follow your example in the Program Guide. What am I missing here? Is there an alternate way to invoke the conversion?

I'm using Spire.Office 2.15.1 with Spire.Pdf.dll version 3.8.67.4020.

johanclasson
 
Posts: 2
Joined: Wed Dec 07, 2016 4:09 pm

Thu Dec 08, 2016 5:55 am

Hi johanclasson,

Thanks for your inquiry.
I have noticed the issue and posted it to our Dev team. Once there is any update on this issue, we will notify you immediately.
Sorry for the inconvenience.

Sincerely,
Jane
E-iceblue support team
User avatar

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

Tue Feb 07, 2017 8:13 am

It is now two months since I reported the issue. Have you got any update on this? It would be nice know if you plan to address it or not, just so that I can plan my project accordingly.

Best regards.

johanclasson
 
Posts: 2
Joined: Wed Dec 07, 2016 4:09 pm

Tue Feb 07, 2017 8:20 am

Hello johanclasson,

Due to the complexity of your issue, our Dev team is still working on it. Please be patient and spare us a little more time. If there is any good news, we will notify you ASAP. Thanks for your understanding and cooperation.

Thanks,
Jane
E-iceblue support team
User avatar

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

Mon Mar 27, 2017 2:18 pm

Hi there, could you guys inform me as well, please? I have the exact same issue ... Thanks!

softwarea
 
Posts: 8
Joined: Sun Apr 17, 2016 1:59 pm

Tue Mar 28, 2017 1:58 am

Hello softwarea,

Thanks for your message.
Sure, I will also inform you once the fix is available.

Sincerely,
Jane
E-iceblue support team
User avatar

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

Tue Oct 27, 2020 10:24 am

Hi all,

Sorry for the long silence.
We just released Spire.PDF Pack(Hot Fix) Version:6.10.9 that fixes the issue the fonts are not embedded after converting PDF to PDFA1B. Please download it and refer to the following code for testing.
Code: Select all
            PdfStandardsConverter converter = new PdfStandardsConverter(inputFile);
            converter.ToPdfA1B(outputFile);


Download links:
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.PDF/6.10.9

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Tue Oct 27, 2020 2:18 pm

Thanks Rachel,

I tried below and noticed that the image which was present in the original letter got removed from the letter I converted.

Is there any issue why the image got removed?

Thanks,
Sumit Kumar

sumit.pundhir
 
Posts: 9
Joined: Wed Aug 19, 2020 3:02 pm

Wed Oct 28, 2020 1:41 am

Hi Sumit,

Thanks for your post.
Do you also want to convert PDF to PDF/A-1B? To help us investigate your issue more accurately, please provide your input file and output file. You can send them to us (support@e-iceblue.com) via email.
Thanks in advance.

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Wed Oct 28, 2020 10:30 am

Hi Rachel,

Please ignore, that was one time and the code is working fine now.

Thanks,
Sumit Kumar

sumit.pundhir
 
Posts: 9
Joined: Wed Aug 19, 2020 3:02 pm

Thu Oct 29, 2020 1:08 am

Hi Sumit,

OK. If you have other questions, just feel free to contact us.
Have a nice day!

Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.PDF