Creating PDF/A compliant PDF files

Stimulsoft Reports.WEB discussion
Post Reply
janek
Posts: 6
Joined: Fri Jun 26, 2020 12:09 pm

Creating PDF/A compliant PDF files

Post by janek »

Hello,

what are the minimal required steps to produce a PDF/A compliant file? I'm on .Net Core and tried your Web Demo. However when ticking the PDF/A check box while saving as Adobe PDF and then validating the file with veraPDF, it says the file is not compliant.

I've also tried this sample, and basically adding this:

Code: Select all

            StiFontCollection.AddFontFile(StiNetCoreHelper.MapPath(this, "Fonts/Segoeui/segoeui.ttf"));
            StiPdfExportSettings settings = new StiPdfExportSettings();
            settings.PdfComplianceMode = StiPdfComplianceMode.A3;
However I get some errors when validating the resulting PDF with having inconsistent glyph width information.

I would appreciate any help with this.
Andrew
Posts: 4105
Joined: Fri Jun 09, 2006 3:58 am

Re: Creating PDF/A compliant PDF files

Post by Andrew »

Hello,

Everything should work. Please upload your PDF file for analysis.

Thank you.
janek
Posts: 6
Joined: Fri Jun 26, 2020 12:09 pm

Re: Creating PDF/A compliant PDF files

Post by janek »

Here is the PDF, I think it might be because of the trial? Which font do I need to include to make that work?
Attachments
result.pdf
(930.29 KiB) Downloaded 175 times
Lech Kulikowski
Posts: 6263
Joined: Tue Mar 20, 2018 5:34 am

Re: Creating PDF/A compliant PDF files

Post by Lech Kulikowski »

Hello,

For correct PDF/A is needed UnicodeMode file generation mode, which is currently only available on Windows.
For NetCore on Windows you need to enable
StiOptions.Export.Pdf.AllowImportSystemLibraries = true;
on other systems it is not checked yet, we are working on the problem, we hope to do it in the next build.

Thank you.
janek
Posts: 6
Joined: Fri Jun 26, 2020 12:09 pm

Re: Creating PDF/A compliant PDF files

Post by janek »

Thank you for your response.

This might be not the right topic to ask, but is Reports.JS able to produce PDF/A compliant files? Also on systems other than Windows? And if so, what options do I need to set?
Lech Kulikowski
Posts: 6263
Joined: Tue Mar 20, 2018 5:34 am

Re: Creating PDF/A compliant PDF files

Post by Lech Kulikowski »

Hello,

We have made some modifications, will be in the next build.
pdf-file is now validated to PDF-A (if all fonts are uploaded to StiFontCollection).

Thank you.
janek
Posts: 6
Joined: Fri Jun 26, 2020 12:09 pm

Re: Creating PDF/A compliant PDF files

Post by janek »

That sounds great, is there an ETA for the next release to be able to test these improvements? These are vital components necessary for us to use your solution.
Lech Kulikowski
Posts: 6263
Joined: Tue Mar 20, 2018 5:34 am

Re: Creating PDF/A compliant PDF files

Post by Lech Kulikowski »

Hello,

The next release build will bereleased within two weeks.

Thank you.
Post Reply