[xep-support] Storing unwrapped program listings in PDF files

From: Jan Tošovský <j.tosovsky@gmc.net>
Date: Tue Jun 08 2010 - 23:58:40 PDT

Hello Everyone,

sometimes it is hard to avoid examples with long lines, so they are wrapped [1]. Such examples cannot be easily copied and pasted from PDF files without further editing. I am investigating if there is any possibility to embed the original unwrapped source code as some kind of metadata and using any JavaScipt functionality to retrieve it again by the user (e.g. by clicking on a special link above the code).

I can imagine XEP could store this code automatically (if it matches any criteria, probably any custom attribute on fo:block element) and also offer some extension for creating a link. Into the final PDF file the JavaScript code with appropriate functionality would be injected on the fly.

What do you think?
Or is it already possible homehow?

Regards,
Jan

[1] wrap-option="wrap", hyphenate="true", hyphenation-character="&#x2192;"

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Wed Jun 9 00:31:43 2010

This archive was generated by hypermail 2.1.8 : Wed Jun 09 2010 - 00:31:51 PDT