Embed xml file to a pdf #1231
Replies: 4 comments 3 replies
-
Tl;dr: Prawn doesn't support it out of the box but you can do it manually. See #1053, #1063, #877 and https://gist.github.com/fidothe/32613b44a5b6588531d9. There are probably some other issues/messages in the old prawn Google group regarding file embedding. |
Beta Was this translation helpful? Give feedback.
-
Hello @HelenaBadaoui, were you able to find a solution to this issue? As I am stuck in the same problem. |
Beta Was this translation helpful? Give feedback.
-
I have the same issue. A solution would be highly appreciated :-) |
Beta Was this translation helpful? Give feedback.
-
@HelenaBadaoui, @SarahOuf and @reiz, you might want to have a look at the prawn-attachment gem. Inside your Prawn class you can then do something like this:
Use something like Adobe Acrobat Reader then to open the PDF and verify the XML attachment is there. (Unfortunately, Apple's Preview can't show PDF attachments if you're a Mac user.) |
Beta Was this translation helpful? Give feedback.
-
Hello guys,
I need to attach a XML file within a PDF file to be PDF/A3 compliant.
I am using rails and so far I had no issues to generate my PDF (using Prawn gem) and my XML separately but I do not know how to "combine" them.
Any ideas ?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions