Hi Prasad

On 30 January 2012 11:08, Prasad Chadaram <
[email protected]> wrote:

>
> Hi manoj kumar,
>
>    I am Prasad, in response to your question that is to make pdf not
> copyable,Here is a solution for that
>
>        Document document = new Document(PageSize.A4, 20, 20, 20, 20);
>                PdfWriter writer = PdfWriter.getInstance(document, new
> FileOutputStream("d:\\test\\pdfopen.pdf"));
>                writer.setEncryption(null,null,
> PdfWriter.ALLOW_PRINTING,PdfWriter.STANDARD_ENCRYPTION_128);-->this line is
> important
>                writer.createXmpMetadata();
>
> and to run dis code additional jars will be required im attaching those
> too.
> All the jars may not be important..try once
>
> Please let me know if you successfully execute it.
>

Thanks for your participation to this mailing list, I'm sure the OP will be
grateful.

However, please be careful when sending attached files to any mailing list.
In this case, you just sent something like 6MB of jar files, to any single
subscriber of this list. I know we can all use webmails that provide almost
endless capacity, but still...

Anyway, the best way would have been to provide a link to the corresponding
example:
< http://itextpdf.com/examples/iia.php?id=219 >

and where to find the Bouncy Castle jars:
< http://www.bouncycastle.org/latest_releases.html >

Thanks,
alexis
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to