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

From: G. Ken Holman <>
Date: Wed May 27 2009 - 10:34:23 PDT

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

... 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</

I hope this helps.

. . . . . . . . . Ken

XSL-FO/XSLT/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 11:34:18 2009

This archive was generated by hypermail 2.1.8 : Wed May 27 2009 - 11:34:19 PDT