RE: [xep-support] How to disable PDF select/copy functions?

From: Kevin Brown <kevin@renderx.com>
Date: Wed May 27 2009 - 14:07:40 PDT

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
Received on Wed May 27 15:15:16 2009

This archive was generated by hypermail 2.1.8 : Wed May 27 2009 - 15:15:17 PDT