java - How to add a non-printable image in xsl / apache-fop -
i'm trying generate xsl printed in pre-printed sheet works fine.
now want give user better previsualization (in pdf screen version) adding background image emulates "pre-printed" stuf on sheet give user "context" of printing.
the question is: there way can set background image in xsl (using apache fop) visible in pdf not in printed version of it?
thank reading or givin advice.
although comments state, can't have content in pdf not come out in physical printed copy, here 1 possible work around you. depending on how users going using fop pdf rendering , how driving work flow, it's possible pass parameter xslt file before transofrmation phase run, potentially, dual rendering of same pdf, 1 presented user background image enabled, , 1 gets printed, set variable similar how in this example, , call $ispreview, , use simple if or choose statement check 'y' or 'n'.
since sending printer, may want take advantage of fop's ability generate postscript rather pdf, i've used feature quite extensively print documents using fop while producing pdf copy electronic delivery via email or hosted services, , i've yet find discrepancy between pdf rendering , printed after sending rendered postscript file, should work well.
as said, not solution problem you've presented it, work around, desired results if clever how implement it.
Comments
Post a Comment