lol

thanks!


----- Original Message ----- 
From: "Paulo Soares" <[EMAIL PROTECTED]>
To: "Post all your questions about iText here" 
<itext-questions@lists.sourceforge.net>
Sent: Monday, December 04, 2006 4:12 PM
Subject: Re: [iText-questions] Sorry, pageevent question


> void onEndPage(PdfWriter writer, Document document)
>
> Paulo
>
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On
>> Behalf Of BorO :: Qnab System AB
>> Sent: Monday, December 04, 2006 3:02 PM
>> To: itext-questions@lists.sourceforge.net
>> Subject: [iText-questions] Sorry, pageevent question
>>
>> It was working but now I have rewrote some parts of the
>> application and now I can't get pageEvent to work.
>>
>> Nothing happens.
>> System.out.println("test") in public void onEndPage()  should
>> write something back?
>>
>> MyPageEvents events = new MyPageEvents();
>> writer.setPageEvent(events);
>>
>>
>> class MyPageEvents extends PdfPageEventHelper {
>>
>> /**
>> * After the content of the page is written, we put page X of Y
>> * at the bottom of the page and we add either "Romeo and Juliet"
>> * of the title of the current act as a header.
>> * @see
>> com.lowagie.text.pdf.PdfPageEventHelper#onEndPage(com.lowagie.
>> text.pdf.PdfWriter, com.lowagie.text.Document)
>> */
>> public void onEndPage()
>> {
>> flg_header=1;
>> System.out.println("test");
>>
>> // börjar inläsningen av filen
>> try
>> {
>>
>> BufferedReader in = new BufferedReader(new FileReader(mall));
>>
>> while(!line.trim().startsWith("</header>"))
>> {
>> line=in.readLine();
>>
>> // TABELL
>> if(line.trim().startsWith("<table>"))
>> getTable();
>>
>> // REKTANGEL
>> if(line.trim().startsWith("<rectangle>"))
>> getRectangle();
>>
>> try {
>>
>> // IMG
>> if(line.trim().startsWith("<image>"))
>> document.add(getImage());
>>
>> // TEXT
>> if(line.trim().startsWith("<text>"))
>> getText();
>> }
>> catch(DocumentException de) {
>> System.err.println(de.getMessage());
>> }
>> }
>>
>> in.close();
>> }
>> catch(IOException ioe) {
>> System.err.println(ioe.getMessage());
>> }
>>
>> flg_header=0;
>> }
>> }
>>
>> Mvh, Boris
>>
>> Supportärenden, önskemål eller förslag till ändringar vill vi
>> ha per epost till: [EMAIL PROTECTED]
>>
>> Boris Matisic    Voice +4642-16 35 80
>> Qnab System AB    Fax +4642-15 16 85
>> Apelvägen 9    Email [EMAIL PROTECTED]
>> S-260 40 VIKEN    Support [EMAIL PROTECTED]
>> Sweden    Info [EMAIL PROTECTED]
>>
>
>
> Aviso Legal:
> Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
> informação confidencial ou legalmente protegida. A incorrecta transmissão 
> desta mensagem não significa a perca de confidencialidade. Se esta 
> mensagem for recebida por engano, por favor envie-a de volta para o 
> remetente e apague-a do seu sistema de imediato. É proibido a qualquer 
> pessoa que não o destinatário de usar, revelar ou distribuir qualquer 
> parte desta mensagem.
>
> Disclaimer:
> This message is destined exclusively to the intended receiver. It may 
> contain confidential or legally protected information. The incorrect 
> transmission of this message does not mean the loss of its 
> confidentiality. If this message is received by mistake, please send it 
> back to the sender and delete it from your system immediately. It is 
> forbidden to any person who is not the intended receiver to use, 
> distribute or copy any part of this message.
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>


--------------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.6/566 - Release Date: 2006-12-03



-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.15.6/566 - Release Date: 2006-12-03


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to