PDF/A-3 compliance

Stimulsoft Reports.NET discussion
Post Reply
ilkuzn
Posts: 6
Joined: Thu May 07, 2020 9:11 am

PDF/A-3 compliance

Post by ilkuzn »

Hi!
My company is going to use Stimulsoft as PDF report generator. Our processes are quite strict, so one of the requirements is PDF/A-3 compliance.
I'm trying to configure generated pdf report to fit the rules in validator tool (Acrobat Pro 2015).
Now I have the following issue:
Preflight Summary Report for: 20200505083422.pdf
Profile: Verify compliance with PDF/A-3a (Processed pages 1 to 1)
Processed by user, Date: 5/6/2020 9:18 AM
Results (Summary)
Error
XMP property not predefined and no extension schema present (XMP 2005)

Do you plan to add missing XMP extensions and schema to the PDF export?

Here is report config method

Code: Select all

        
        protected override StiExportSettings GetExportSettings(IReportSettings reportSettings)
        {
            var settings = new StiPdfExportSettings();
            settings.PdfComplianceMode = StiPdfComplianceMode.A3;
            settings.Compressed = false;
            settings.EmbeddedFonts = true;
            settings.AllowEditable = StiPdfAllowEditable.No;
            settings.AutoPrintMode = StiPdfAutoPrintMode.None;
            settings.ImageCompressionMethod = StiPdfImageCompressionMethod.Flate;
            settings.ImageResolutionMode = StiImageResolutionMode.Exactly;
            StiOptions.Export.Pdf.CreatorString = reportSettings.Creator ?? defaultCreator;
            if (reportSettings.BlackAndWhite)
                settings.ImageFormat = StiImageFormat.Grayscale;
            else
                settings.ImageFormat = StiImageFormat.Color;
            var listKeyWords = new List<string>
            {
                reportSettings.TemplateNameKeyword ?? defaultTemplate,
                reportSettings.TemplateVersionKeyword ?? defaultTemplateVersion,
                reportSettings.UIDKeyword ?? defaultUID
            };
            settings.KeywordsString = string.Join(", ", listKeyWords);
            return settings;
        }
        
Attachments
stimulsoft_xmpmeta.xml
(1.98 KiB) Downloaded 114 times
fixed_xmpmeta.xml
(7.04 KiB) Downloaded 110 times
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

Re: PDF/A-3 compliance

Post by Lech Kulikowski »

Hello,

We tested our files on Adobe Acrobat Pro DC, "Acrobat Pro DC 2015 Profiles - Verify compliance with PDF/A-3a", we have no errors.

Please clarify
- which version of our product you are using.
- send the resulting pdf file for analysis
- and also a test report with data

Thank you.
ilkuzn
Posts: 6
Joined: Thu May 07, 2020 9:11 am

Re: PDF/A-3 compliance

Post by ilkuzn »

Hi!
We are using Stimulsoft.Reports.Web 2020.2.1 with .NET Framework 4.8
Configuration parameters:

Code: Select all

	protected override StiExportSettings GetExportSettings(IReportSettings reportSettings)
        {
            var settings = new StiPdfExportSettings();
            settings.PdfComplianceMode = StiPdfComplianceMode.A3;
            settings.Compressed = false;
            settings.EmbeddedFonts = true;
            settings.AllowEditable = StiPdfAllowEditable.No;
            settings.AutoPrintMode = StiPdfAutoPrintMode.None;
            settings.ImageCompressionMethod = StiPdfImageCompressionMethod.Flate;
            settings.ImageResolutionMode = StiImageResolutionMode.Exactly;
            StiOptions.Export.Pdf.CreatorString = reportSettings.Creator ?? defaultCreator;
            if (reportSettings.BlackAndWhite)
                settings.ImageFormat = StiImageFormat.Grayscale;
            else
                settings.ImageFormat = StiImageFormat.Color;
            var listKeyWords = new List<string>
            {
                reportSettings.TemplateNameKeyword ?? defaultTemplate,
                reportSettings.TemplateVersionKeyword ?? defaultTemplateVersion,
                reportSettings.UIDKeyword ?? defaultUID
            };
            settings.KeywordsString = string.Join(", ", listKeyWords);
            return settings;
        }
        protected override void AddMetadataToReport(StiReport report, IReportSettings reportSettings)
        {
            report.MetaTags.Add(new StiMetaTag(authorTag, reportSettings.Author ?? defaultAuthorTag));
        }

        private const string defaultCreator = "Reporting Service";
        private const string defaultTemplate = "DefaultTemplate";
        private const string defaultTemplateVersion = "no version";
        private const string defaultUID = "No UID provided";
        private const string defaultAuthorTag = "No Author Info";
        private const string authorTag = "pdf:Author";
Attachments
TrendTable20200514142825.pdf
(94.24 KiB) Downloaded 161 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: PDF/A-3 compliance

Post by HighAley »

Hello,

1. Adobe Acrobat does not support Custom properties for PDF/A mode.
It removes them from the file upon conversion to PDF/A.
We will make improvement and now metatags will be ignored in PDF/A mode.

2. Here is a quote from PDF docs:
"Properties you create must have unique names that do not appear in the other tabs in the Document Properties dialog box. For example, Title, Author, Subject, Keywords, Creator, Producer, CreationDate, ModDate and Trapped".
So the metatag "pdf:Author" could not be used.
In our next build, the tags with such names will be removed.

3. The Author field is automatically taken from the ReportAuthor report property.

Thank you.
Post Reply