Closed aolney closed 3 years ago
pax is not maintained in this repository. But beside this you could try
\makeatletter
\def\PAX@attrs@URI#1{/F 4 #1}
\makeatletter
I couldn't make that work, but thank you for the suggestion.
To follow up, would you recommend another repo, or should I try on stackexchange?
I couldn't make that work, but thank you for the suggestion.
What do you mean? I tried it, and it inserted the /F key into the annotation.
This are your annotations without the code:
25 0 obj
<<
/Type /Annot
/Subtype/Link/Border[0 0 1]/H/I/C[0 1 1]/A<</Type/Action/S/URI/URI<687474703A2F2F7777772E73686172656C617465782E636F6D>>>
/Rect [261.185 650.615 350.686 663.566]
>>
endobj
26 0 obj
<<
/Type /Annot
/Subtype/Link/Border[0 0 1]/H/I/C[0 1 1]/A<</Type/Action/S/URI/URI<687474703A2F2F7777772E73686172656C617465782E636F6D>>>
/Rect [467.67 650.615 500.425 663.566]
>>
endobj
27 0 obj
<<
/Type /Annot
/Subtype/Link/Border[0 0 1]/H/I/C[0 1 1]/A<</Type/Action/S/URI/URI<687474703A2F2F7777772E73686172656C617465782E636F6D>>>
/Rect [109.865 637.828 234.904 649.12]
>>
endobj
and this with
25 0 obj
<<
/Type /Annot
/Subtype/Link/F 4 /C [0 1 1]/Border [0 0 1]/H /I/A<</Type/Action/S/URI/URI<687474703A2F2F7777772E73686172656C617465782E636F6D>>>
/Rect [261.185 650.615 350.686 663.566]
>>
endobj
26 0 obj
<<
/Type /Annot
/Subtype/Link/F 4 /C [0 1 1]/Border [0 0 1]/H /I/A<</Type/Action/S/URI/URI<687474703A2F2F7777772E73686172656C617465782E636F6D>>>
/Rect [467.67 650.615 500.425 663.566]
>>
endobj
27 0 obj
<<
/Type /Annot
/Subtype/Link/F 4 /C [0 1 1]/Border [0 0 1]/H /I/A<</Type/Action/S/URI/URI<687474703A2F2F7777772E73686172656C617465782E636F6D>>>
/Rect [109.865 637.828 234.904 649.12]
>>
endobj
As you can see the /F 4
is there
To follow up, would you recommend another repo, or should I try on stackexchange?
There is no other repo, you need direct contact to the maintainer, and on tex.sx it would be probably me who would answer.
Thanks so much for following up. Your code worked - I just misapplied it :facepalm:
I confirm that with your code, pax
+ pdfpages
+ pdfx
(as in my example above) passes veraPDF validation profile PDF/A-2B :tada:
I'm using
pdfx
in conjuction withpdfpages
to add a footer to apdf
with embedded fonts.The process works if
\usepackage{pax}
is commented out. By works, I mean a pdf is output and passes veraPDF compliance checks, and the resulting hyperlinks work properly.If
\usepackage{pax}
is introduced, veraPDF produces this error:root/document[0]/pages[0](6 0 obj PDPage)/annots[2](28 0 obj PDAnnot) root/document[0]/pages[0](6 0 obj PDPage)/annots[1](27 0 obj PDAnnot) root/document[0]/pages[0](6 0 obj PDPage)/annots[0](26 0 obj PDAnnot)
My original (without footer) pdf was generated with this:
My
pax
file associated with it is this:And my latex file that adds the header is this:
My understanding is that the F annotation needs to specify Print, according the the PDF standard (p493). However, I'm not sure how to do this. I tried to inject tags like
F={1}
into thepax
file, but that did not seem to help anything. In order to allow that tag, I made a trivial modification topax.sty
:\DeclareStringOption{F}
.Any suggestions would be appreciated, including posting this question elsewhere.