See the example stamped.java at itextpdf.sf.net.
Best Regards,
Paulo Soares
----- Original Message -----
From: "Rémi Guilbert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 06, 2004 13:40
Subject: Re: [iText-questions] link inside pdf missing
Hi,
I look into mailing list to see example with PDfStamper but I don't see a
example. Could you give me some references or examples please
Thank's !!
Rémi
----- Original Message -----
From: Paulo Soares
To: Rémi Guilbert ; [EMAIL PROTECTED]
Sent: Wednesday, October 06, 2004 5:03 AM
Subject: RE: [iText-questions] link inside pdf missing
Use PdfStamper.
Best Regards,
Paulo Soares
----------------------------------------------------------------------------
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rémi
Guilbert
Sent: Tuesday, October 05, 2004 1:21 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] link inside pdf missing
Hi, inside my "resolution.pdf" file I have a link to a google web site.
When I read it to insert the page count, the link doesn't work fine.
Could you tell me why ?
long tempsMilliSec = System.currentTimeMillis();
Document newDocument = new Document();
//PdfReader newReader = new PdfReader(output.toByteArray());
PdfReader newReader = new PdfReader("resolution.pdf");
OutputStream newOutput = new
FileOutputStream("/tmp/resolution.pdf");
PdfWriter newWriter = PdfWriter.getInstance( newDocument,
newOutput);
int intNombrePageDocumentPDF = newReader.getNumberOfPages();
newDocument.setPageSize(PageSize.LEGAL);
newDocument.setMargins(36f,36f,36f,36f);
newDocument.open();
PdfContentByte contenu = newWriter.getDirectContent();
for( int intNombrePage = 1; intNombrePage <=
intNombrePageDocumentPDF; intNombrePage++ )
{
PdfImportedPage pip = newWriter.getImportedPage( newReader,
intNombrePage );
newDocument.setPageSize(PageSize.LEGAL);
newDocument.setMargins(36f,36f,36f,36f);
newDocument.newPage();
contenu.addTemplate( pip, 0, 0 );
/** on ajoute la numérotation de page en bas à droite
*/
// on ajoute le numéro de la page dans l'annexe
utile.ajouterTextPDF( 485, 25, "Page : " + intNombrePage + "
de " + intNombrePageDocumentPDF, contenu, BaseFont.HELVETICA, 10 );
}
newDocument.close();
Thank's
Rémi
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions