#StackBounty: #pdf-a #pdfx #embedfile PDF/A-3u with embedfile missing /AF entry and /AFRelationship entry

Bounty: 50

I’m having the following data file called data.txt:

Testdata

and the following LaTeX code called test2.tex:

documentclass{article}

usepackage[a-3u]{pdfx}
usepackage{embedfile}
newcommand{datafile}[2]{embedfile[filespec={#2},ucfilespec={#2},filesystem=URL,mimetype=application/octet-stream,desc={#2},stringmethod=escape]{#1#2}}

datafile{}{data.txt}

begin{document}
Bla bla ...
end{document}

Using pdfLaTeX I can generate a PDF which claims that it is PDF/A-3u.

If I verify this PDF with Adobe Preflight I get the following errors:

  • Embedded file does not have /AF entry
  • Embedded file has no /AFRelationship entry

enter image description here

How can I solve those problems?

I’ve seen that others have similar problems, see PDF/A-3b with attachments: how to create an /AF entry at pdf catalog?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.