Re: supress object print

I agree with assesment below,but what are my options to go about the task?

how can i control the print behaviour?


Jeremias Maerki-2 wrote:
> 
> 
> You seem to be using Apache FOP. As you can see at [1], Apache FOP
> doesn't support the "visibility" property, yet. Still, I don't think the
> "visibility" property is what you would need to make a distinction
> between print and display. The spec doesn't make this distinction. Maybe
> an extension to "visibility" would be necessary.
> 
> Do other FO implementations support this? And how did they implement it?
> Using the Optional Content feature in PDF 1.5? I haven't found any
> references, yet.
> 
> [1]
> http://xmlgraphics.apache.org/fop/compliance.html#fo-property-visibility
> 
> On 02.07.2008 17:41:05 good_guddu wrote:
>> 
>> i need the ability to view object on pdf when viewed from pc,but hide it
>> when
>> printed.
>> code below
>> 
>> name.xml
>> 
>> <name>John</name>
>> 
>> nametofo.xsl
>> 
>> <?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">
>>   <xsl:output method="xml" indent="yes"/>
>>   <xsl:template match="/">
>>     <fo:root>
>>       <fo:layout-master-set>
>>         <fo:simple-page-master master-name="A4-portrait"
>>               page-height="29.7cm" page-width="21.0cm" margin="2cm">
>>           <fo:region-body/>
>>         </fo:simple-page-master>
>>       </fo:layout-master-set>
>>       <fo:page-sequence master-reference="A4-portrait" >
>>         <fo:flow flow-name="xsl-region-body">
>>           <fo:block  >
>>             Hello, <xsl:value-of select="name"/>!
>>           </fo:block>
>>         </fo:flow>
>>       </fo:page-sequence>
>>     </fo:root>
>>   </xsl:template>
>> </xsl:stylesheet>
>> 
>> Run command
>> fop -xml name.xml -xsl name2fo.xsl -pdf name.pdf
>> 
>> can it be done?
>> Tried visibility="hidden" does not work.
>> -- 
>> View this message in context:
>> http://www.nabble.com/supress-object-print-tp18240529p18240529.html
>> Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
>> 
>> 
> 
> 
> 
> 
> Jeremias Maerki
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/supress-object-print-tp18240529p18347987.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.

Received on Tuesday, 8 July 2008 20:10:18 UTC