I'm attaching files to a pdf with XEP and xsl-fo:
<fo:block><rx:pdf-comment xmlns:rx="http://www.renderx.com/XSL/Extensions" content="" title="sample.bmp">
<rx:pdf-file-attachment filename="sample.bmp" src="url(data:image/bmp;base64,Qk02BFEAAA....)"/>
</rx:pdf-comment></fo:block>
It works and shows up on the Attachments page. A visible mark of any kind at the position where the file is embedded is not needed - but:
I would like to also have a fo:basic-link
or alike at some text in the document so that clicking that in Acrobat will prompt the open dialog for the embedded file. It seems that neither pdf-file-attachment
nor pdf-comment
can have text content, so placing the embedded file at the position where I want the link seems not an option, and would also allow only one link to the file. Apache Fop has the probably proprietary url(embedded-file(
syntax for that, is there something simlar in XEP?