Thanks to Ken and Kevin for the solution.
This solution worked perfect:
<xsl:processing-instruction name="xep-pdf-ownerpassword">password</
xsl:processing-instruction>
<xsl:processing-instruction
name="xep-pdf-userprivileges">annotate,print</
xsl:processing-instruction>
<xsl:processing-instruction name="xep-pdf-initial-zoom">fit</
xsl:processing-instruction>
Thanks to Michael Bradbury for support.
Regards,
Musawar Khan
Software Developer
EDM Group Limited
Unit 501, Daisyfield Business Centre, Appleby Street, Blackburn, BB1 3BL
Office: 01254 604067
www.theedmgroup.co.uk
Please respect the environment and do not print this email unless you
really need to.
-----Original Message-----
From: owner-xep-support@renderx.com
[mailto:owner-xep-support@renderx.com] On Behalf Of Kevin Brown
Sent: 27 May 2009 22:08
To: xep-support@renderx.com
Subject: RE: [xep-support] How to disable PDF select/copy functions?
Ken:
No problem and you are most certainly correct. XSL to generate PIs
should be
XSL style sheets as you have written ... generating the PIs in XSL FO.
And
they should be placed so that they generate the PI adjacent to
<fo:root>.
A previous article covering this is here:
http://services.renderx.com/lists/xep-support/2274.html
By the way for all xep-support users, I have had the search capability
reinstated on the RenderX web site. Searching from the support page will
now
search the xep-support archives.
http://www.renderx.com/support/index.html
It's a great way to research issues you may be having.
Kevin Brown
RenderX
-----Original Message-----
From: owner-xep-support@renderx.com
[mailto:owner-xep-support@renderx.com]
On Behalf Of G. Ken Holman
Sent: Wednesday, May 27, 2009 12:57 PM
To: xep-support@renderx.com
Subject: RE: [xep-support] How to disable PDF select/copy functions?
At 2009-05-27 10:41 -0700, Kevin Brown wrote:
>The PIs should immediately precede or follow fo:root:
>
><?xml version="1.0" encoding="utf-8"?>
><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="/">
><?xep-pdf-ownerpassword password?>
><?xep-pdf-userprivileges annotate,print?>
><?xep-pdf-initial-zoom fit?>
><fo:root >
Forgive me for correcting you, Kevin, but I should point out for the
archive that a naked processing instruction in an XSLT stylesheet is
ignored, and that it is necessary to explicitly synthesize the
processing instructions in the result tree:
<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</
The same is true for naked comments in an XSLT stylesheet.
. . . . . . . . Ken
>The documentation for this is here:
>http://www.renderx.com/reference.html#Output_Formats
>
>"Instructions that pertain to an entire document should be placed at
the
top
>of the document, before or right after the <fo:root> start tag.
Instructions
>that pertain to a single page of the documentation should be specified
>inside <fo:simple-page-master> object used to generate that page."
>
>Kevin Brown
>RenderX
-- XSLT/XSL-FO/XQuery hands-on training - Los Angeles, USA 2009-06-08 Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ 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/s/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.html ------------------- (*) 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 This email originated externally and has been scanned by MessageLabs This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The EDM Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the EDM Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the EDM Group is personal to the sender and is not given or endorsed by the EDM Group. ______________________________ This email has been scanned for all viruses by the MessageLabs SkyScan service. For more information on a proactive anti-virus service working around the clock, around the globe, visit http://www.messagelabs.com ------------------- (*) 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 Thu May 28 07:29:15 2009
This archive was generated by hypermail 2.1.8 : Thu May 28 2009 - 07:29:21 PDT