----- Original Message ----- 
From: "Martin Hellat" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 11:44
Subject: [iText-questions] PdfTemplate question


> Hi,
> I have trouble with the following code:
> 
> template = cb.createTemplate(200, 200);
> template.beginText();
> template.setFontAndSize(bf, 12);

You should have a setTextMatrix here.

> template.showText("blah1");
> template.showTextAligned(PdfContentByte.ALIGN_CENTER, "blah2", 100, 100,
> 0);
> template.endText();
>
> when i generate my pdf file using this template, i see the text "blah1",
> but 
> now text "blah2", does this mean i can't use showTextAligned within
> template 
> and i have to use lineto and moveto? or am i doing something wrong?
>

The code is ok.
How are you adding the template to the document?
 
> and moreover, when i made my template bigger, like 700*700, then i even 
> didn't see the text "blah1", what's up with that?
> 
> and final question, what size is A4 format paper, i mean if i would like
> to 
> make a template the size of the whole document?
> 

See PageSize.java.

Best Regards,
Paulo Soares

> Thanks,
>   Martin.
> 
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> 
> -------------------------------------------------------
> This SF.NET email is sponsored by: Geek Gift Procrastinating?
> Get the perfect geek gift now!  Before the Holidays pass you by.
> T H I N K G E E K . C O M      http://www.thinkgeek.com/sf/
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 



-------------------------------------------------------
This SF.NET email is sponsored by: Geek Gift Procrastinating?
Get the perfect geek gift now!  Before the Holidays pass you by.
T H I N K G E E K . C O M      http://www.thinkgeek.com/sf/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to