PDF A-3b problem

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

PDF A-3b problem

Postby elcsoft » Mon Jul 06, 2026 4:36 pm

I am generating a document using the commands below, but it isn't displaying as PDF/A-3 in Adobe. Can anyone help me with this? What am I doing wrong?
Programming language Visual foxpro with active-X VPE Version 7.4 Professional

poVPE.PDFALevel=VPE_PDF_A_LEVEL_3B
poVPE.AddColorProfile("GTS_PDFA1","sRGB_IEC61966-2-1","Custom","http://www.color.org","sRGB_IEC61966-2-1","sRGB_IEC61966-2-1")
poVPE.WriteDoc(tcPDFNAME)
elcsoft
 
Posts: 40
Joined: Wed Jan 26, 2005 9:09 am

Re: PDF A-3b problem

Postby IDEAL Software Support » Tue Jul 07, 2026 7:08 am

Your code looks ok. When we create a PDF file here this way, Acrobat shows an annotation that the file is PDF/A.

Do you turn font embedding off after setting the property PDFALevel? According to the PDF/A specification, fonts must be embedded.
IDEAL Software Support
 
Posts: 1648
Joined: Thu Nov 18, 2004 4:03 pm

Re: PDF A-3b problem

Postby IDEAL Software Support » Tue Jul 07, 2026 7:26 am

Do you output at least a single line of text? We did not try to create an empty PDF.
IDEAL Software Support
 
Posts: 1648
Joined: Thu Nov 18, 2004 4:03 pm

Re: PDF A-3b problem

Postby elcsoft » Tue Jul 07, 2026 11:50 am

I found the error. The length of the "Author" field must not exceed 28 characters; otherwise, errors occur. Now I have another problem: a validator is returning the following message:

in German
XMP-Kennung pdfaid:part
Keine PDF/A-Kennung im XMP gefunden – die Datei beansprucht kein PDF/A.

URL of the validator is https://www.mediaatelier.com/de/Tools/PDFAChecker/
elcsoft
 
Posts: 40
Joined: Wed Jan 26, 2005 9:09 am

Re: PDF A-3b problem

Postby elcsoft » Tue Jul 07, 2026 11:53 am

IDEAL Software Support wrote:Your code looks ok. When we create a PDF file here this way, Acrobat shows an annotation that the file is PDF/A.

Do you turn font embedding off after setting the property PDFALevel? According to the PDF/A specification, fonts must be embedded.


Acrobat Reader says only
This file requires compliance with the PDF/A standard and has been opened in read-only mode.
elcsoft
 
Posts: 40
Joined: Wed Jan 26, 2005 9:09 am

Re: PDF A-3b problem

Postby elcsoft » Tue Jul 07, 2026 12:49 pm

Example Code with validation error

loVpe = createobject("VpeControl.VpeControl.74")
loVpe.OpenDoc()
loVpe.PDFALevel = 3
loVpe.EmbedAllFonts= .t.
loVpe.Author=alltrim(left("beispielfirma GmbH",28)) &&alltrim(puFIRMNAM)
loVpe.Creator="ABKS - http://www.elcsoft.de"
loVpe.title="test"
loVpe.Subject="test2"
loVpe.AddColorProfile("GTS_PDFA1","sRGB_IEC61966-2-1","Custom","http://www.color.org","sRGB_IEC61966-2-1","sRGB_IEC61966-2-1")
loVpe.print(1, 1,"ZUGFeRD-konforme Rechnung")
loVpe.WriteDoc("C:\testb\zugferd_rechnung.pdf")
loVpe.CloseDoc()
loVpe = .null.
elcsoft
 
Posts: 40
Joined: Wed Jan 26, 2005 9:09 am

Re: PDF A-3b problem

Postby IDEAL Software Support » Tue Jul 07, 2026 1:34 pm

We spent now an hour of working time for the whole case, writing test code, checking PDF specifications and verifying the metadata.

I ask you to purchase an hour of premium support in order to discuss this in further detail.
IDEAL Software Support
 
Posts: 1648
Joined: Thu Nov 18, 2004 4:03 pm

Re: PDF A-3b problem

Postby IDEAL Software Support » Thu Jul 09, 2026 10:03 am

The PDF and PDF/A specifications do not restrict the length of the author field. Which software does report errors and what is exactly the error message?

Regarding the validation error: We checked now the metadata and we see no error. I guess the validator you are using is not good. We recommend veraPDF for PDF/A conformance checking, it does not report any problems.
IDEAL Software Support
 
Posts: 1648
Joined: Thu Nov 18, 2004 4:03 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: No registered users and 11 guests