-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Process attachments in PDF #872
Comments
The attached is an example of Presentation XML linking to an attachments folder. |
From <metanorma-extension>
...
<attachment name="spec_helper.rb">data:application/octet-stream;base64,cmVxdWlyZ...</attachment>
</metanorma-extension>
...
<sections>
<clause id="_cl" inline-header="false" obligation="normative" displayorder="2">
<title depth="1">1<tab/>Cl</title>
<p id="_ea5d9037-eb3f-8819-ce7c-2b595e4dd1c6">
<link target="/Users/nickn/Documents/Arbeit/upwork/ribose/metanorma-iso/_a_attachments/spec_helper.rb">text</link>
</p>
</clause>
</sections> Tasks:
|
If |
updated for attachments support, metanorma/metanorma-standoc#872
XSLT and mn2pdf (https://github.com/metanorma/mn2pdf/releases/tag/v1.84) updated to support the attachments in the PDF. Note: on my machine this message is showing when I tried to open the attachments: The preferences allow to open files, but the button Example with I've renamed the attachment to When I add the attachment manually by the Acrobat: On the page https://helpx.adobe.com/acrobat/using/attachments-security-risks-reader-acrobat.html: Only way to change it - via Windows registry (found here https://community.adobe.com/t5/acrobat-discussions/adobe-cannot-open-the-file-attachment-because-your-pdf-file-attachment-settings-do-not-allow/td-p/10984499 and https://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/attachments.html) and |
Follow-on from #709
Attachments are now included in Presentation XML. I describe how in metanorma/metanorma#353
The task for you is to do... something with these attachments in PDF. I don't know what or how, but @ronaldtse has said that this is expected by our clients. The PRs in metanorma-standoc and isodoc are staying draft until you have a resolution to this, but the attachments are currently treated in Presentation XML as links to assets in the attachments subfolder. The Semantic and Presentation XML retain Data URIs for the attachments, but Data URI generation for attachments is optional (though default behaviour.)
The text was updated successfully, but these errors were encountered: