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

From: G. Ken Holman <>
Date: Wed May 27 2009 - 12:57:18 PDT

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"
><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:
>"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

XSLT/XSL-FO/XQuery hands-on training - Los Angeles, USA 2009-06-08
Crane Softwrights Ltd.
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:
Video overview:
G. Ken Holman       
Male Cancer Awareness Nov'07
Legal business disclaimers:
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
Received on Wed May 27 14:14:11 2009

This archive was generated by hypermail 2.1.8 : Wed May 27 2009 - 14:14:13 PDT