At 2009-05-27 17:30 +0100, Musawar Khan wrote:
>To setup ownerpassword and userprivilages on PDF I tried two options:
> 1. XEP configuration settings
> 2. Processing Instructions
>First works ok but option number 2 does not work.
>...
>
>2. For Processing Instructions FO file looks like (Does not Work):
>
><?xml version="1.0" encoding="utf-8"?>
><?xep-pdf-ownerpassword password?>
><?xep-pdf-userprivileges annotate,print?> <?xep-pdf-initial-zoom fit?>
><xsl:stylesheet version="1.0"
>xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>xmlns:fo="http://www.w3.org/1999/XSL/Format"
>xmlns:rx="http://www.renderx.com/XSL/Extensions">
><xsl:template match="/">
><fo:root >
>.
>.
>
>Option number 2 is not working.
>Can you please tell me where am I doing it wrong?
You have put the processing instructions in the XSLT file, not in the
XSL-FO result. XEP only sees the XSL-FO result.
You need to produce:
<?xep-pdf-ownerpassword password?>
<?xep-pdf-userprivileges annotate,print?>
<?xep-pdf-initial-zoom fit?>
<fo:root>
... so in your stylesheet you need construct processing instructions:
<xsl:processing-instruction name="xep-pdf-ownerpassword">password</
<xsl:processing-instruction name="xep-pdf-userprivileges">annotate,print</
<xsl:processing-instruction name="xep-pdf-initial-zoom">fit</
<fo:root>
I hope this helps.
. . . . . . . . . Ken
-- XSL-FO/XSLT/XQuery hands-on training - Los Angeles, USA 2009-06-08 Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@CraneSoftwrights.com Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/f/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal ------------------- (*) 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.htmlReceived on Wed May 27 11:34:18 2009
This archive was generated by hypermail 2.1.8 : Wed May 27 2009 - 11:34:19 PDT