Page 1 of 1

PDF/A-3 compliance

Posted: Thu May 07, 2020 9:46 am
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;
        }
        

Re: PDF/A-3 compliance

Posted: Fri May 08, 2020 1:38 pm
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.

Re: PDF/A-3 compliance

Posted: Thu May 14, 2020 12:06 pm
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";

Re: PDF/A-3 compliance

Posted: Mon May 18, 2020 9:38 pm
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.