Salut, 

  

Est-il possible d’ajouter un paragraphe dans une instance PdfStamper ? Si
oui comment spécifier l’objet Rectangle ?? 

Il existe bien une méthode getPdfDocument dans PdfContentByte mais rien ne
s’ajoute au contenu du document ! 

  

Compte tenu de l’application peut etre suis-je obligé d’utiliser PdfCopy
pour ajouter ce type d’element ! 

  

Bacq Jean-sebastien 

-----Message d'origine----- 
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de
[EMAIL PROTECTED]

Envoyé : jeudi 3 janvier 2008 13:23 
À : [email protected] 
Objet : iText-questions Digest, Vol 20, Issue 6 

Send iText-questions mailing list submissions to 
        [email protected] 

To subscribe or unsubscribe via the World Wide Web, visit 
        https://lists.sourceforge.net/lists/listinfo/itext-questions 
or, via email, send a message with subject or body 'help' to 
        [EMAIL PROTECTED] 

You can reach the person managing the list at 
        [EMAIL PROTECTED] 

When replying, please edit your Subject line so it is more specific 
than "Re: Contents of iText-questions digest..." 


Today's Topics: 

   1. Re: RTF Strings in a PDF (Leonard Rosenthol) 
   2. Re: Problem with Font creation. (Niladri Bhattacharyya) 
   3. Re: Problem with Font creation. (Schalk Neethling) 


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

Message: 1 
Date: Thu, 3 Jan 2008 06:37:32 -0500 
From: Leonard Rosenthol <[EMAIL PROTECTED]> 
Subject: Re: [iText-questions] RTF Strings in a PDF 
To: Post all your questions about iText here 
        <[email protected]> 
Message-ID: <[EMAIL PROTECTED]> 
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed 


On Jan 3, 2008, at 4:40 AM, Stefan Topp wrote: 
> Is it possible to add a string with RTF tags to a PDF document? The  
> resulting PDF document should contain the formatted text as given  
> RTF string. 

        No, it is not possible.  PDF is PDF.  RTF is RTF. 


> If this is not possible...is it possible to convert a RTF document  
> to PDF? 
> 
        Yes, that is possible - but not with only iText.  Products like  
Windward Reports can convert RTF->PDF using iText, however. 

Leonard 




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

Message: 2 
Date: Thu, 3 Jan 2008 17:40:19 +0530 (IST) 
From: Niladri Bhattacharyya <[EMAIL PROTECTED]> 
Subject: Re: [iText-questions] Problem with Font creation. 
To: Post all your questions about iText here 
        <[email protected]> 
Message-ID: <[EMAIL PROTECTED]> 
Content-Type: text/plain; charset="utf-8" 

Hi Schalk, 
                Thanks a lot for your solution provided but for me that s of
no use becayse for my application I do not have any access to the build
files of my application. Is there any other way to create the Font for PDFs
using iText ?

Thanks 
Niladri. 


----- Original Message ---- 
From: Schalk Neethling <[EMAIL PROTECTED]> 
To: Post all your questions about iText here
<[email protected]> 
Sent: Thursday, 3 January, 2008 4:23:27 PM 
Subject: Re: [iText-questions] Problem with Font creation. 


Greetings Nilardi, 
  
I created a properties file with an entry such as: 
wealthReportWeb.plugins.dir=${wealthReportWeb.webContent.dir}/WEB-INF/platfo
rm/plugins 
wealthReportWeb.fonts.dir=${wealthReportWeb.plugins.dir}/org.eclipse.birt.re
port.engine.fonts_2.2.1.v20070823/fonts/ 
  
Inside my build.xml Ant script, I then have the following: 
<target name="createBirtConfigProperties"> 
<propertyfile file="${wealthReportWeb.gensrc.dir}/BirtConfig.properties"> 
<entry key="verdana" value="${wealthReportWeb.fonts.dir}/verdana.ttf" /> 
</propertyfile> 
</target> 
  
Then inside my code I do the following: 
BaseFont bf = BaseFont.createFont(configProps.getString("verdana"),
BaseFont.WINANSI, BaseFont.NOT_EMBEDDED); 
  
HTH! 
Schalk Neethling 
  



From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Niladri
Bhattacharyya

Sent: 03 January 2008 12:47 PM 
To: [email protected] 
Subject: [iText-questions] Problem with Font creation. 
  
Hi 
   I am unable to create the Font inside my servlet and my page events
class. How to get the actual path of the Font file , can somebody help me ?

  
the code written is : 
  
BaseFont bf = BaseFont.createFont(fontPathName, BaseFont.IDENTITY_H, 
BaseFont.EMBEDDED); 
  
Now this font path name must be the actual path of the file in the system.
The file is put inside webapp folder, hence inside the .war file. This is
required inside my page events class also.

  
Please help me if possible. 
  
Thanks 
Niladri. 






Save all your chat conversations. Find them online. 
This email and all content are subject to the following disclaimer: 
  
http://content.momentum.co.za/content/legal/disclaimer_email.htm 


      Now you can chat without downloading messenger. Go to
http://in..messenger.yahoo.com/webmessengerpromo.php 
-------------- next part -------------- 
An HTML attachment was scrubbed... 

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

Message: 3 
Date: Thu, 3 Jan 2008 14:21:55 +0200 
From: "Schalk Neethling" <[EMAIL PROTECTED]> 
Subject: Re: [iText-questions] Problem with Font creation. 
To: "Post all your questions about iText here" 
        <[email protected]> 
Message-ID: 
 
<[EMAIL PROTECTED]> 
        
Content-Type: text/plain; charset="us-ascii" 

Do you know where the font is located on your system? 

  

________________________________ 

From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
Niladri Bhattacharyya 
Sent: 03 January 2008 02:10 PM 
To: Post all your questions about iText here 
Subject: Re: [iText-questions] Problem with Font creation. 

  

Hi Schalk, 

                Thanks a lot for your solution provided but for me that 
s of no use becayse for my application I do not have any access to the 
build files of my application. Is there any other way to create the Font 
for PDFs using iText ? 

  

Thanks 

Niladri. 

----- Original Message ---- 
From: Schalk Neethling <[EMAIL PROTECTED]> 
To: Post all your questions about iText here 
<[email protected]> 
Sent: Thursday, 3 January, 2008 4:23:27 PM 
Subject: Re: [iText-questions] Problem with Font creation. 

Greetings Nilardi, 

  

I created a properties file with an entry such as: 

wealthReportWeb.plugins.dir=${wealthReportWeb.webContent.dir}/WEB-INF/pl 
atform/plugins 

wealthReportWeb.fonts.dir=${wealthReportWeb.plugins.dir}/org.eclipse.bir 
t..report.engine.fonts_2.2.1.v20070823/fonts/ 

  

Inside my build.xml Ant script, I then have the following: 

<target name="createBirtConfigProperties"> 

<propertyfile 
file="${wealthReportWeb.gensrc.dir}/BirtConfig.properties"> 

<entry key="verdana" value="${wealthReportWeb.fonts.dir}/verdana.ttf" /> 

</propertyfile> 

</target> 

  

Then inside my code I do the following: 

BaseFont bf = BaseFont.createFont(configProps.getString("verdana"), 
BaseFont.WINANSI, BaseFont.NOT_EMBEDDED); 

  

HTH! 

Schalk Neethling 

  

________________________________ 

From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf Of 
Niladri Bhattacharyya 
Sent: 03 January 2008 12:47 PM 
To: [email protected] 
Subject: [iText-questions] Problem with Font creation. 

  

Hi 

   I am unable to create the Font inside my servlet and my page events 
class. How to get the actual path of the Font file , can somebody help 
me ? 

  

the code written is : 

  

BaseFont bf = BaseFont.createFont(fontPathName, BaseFont..IDENTITY_H, 

BaseFont.EMBEDDED); 

  

Now this font path name must be the actual path of the file in the 
system. The file is put inside webapp folder, hence inside the .war 
file. This is required inside my page events class also. 

  

Please help me if possible. 

  

Thanks 

Niladri. 

  

________________________________ 

Save all your chat conversations. Find them online. 
<http://in.rd.yahoo.com/tagline_webmessenger_3/*http:/in.messenger.yahoo 
.com/webmessengerpromo.php> 

This email and all content are subject to the following disclaimer: 

  

http://content.momentum.co.za/content/legal/disclaimer_email.htm 

  

  

  





________________________________ 

Now you can chat without downloading messenger. Click here 
<http://in.rd.yahoo.com/tagline_webmessenger_5/*http:/in.messenger.yahoo 
.com/webmessengerpromo.php>  to know how. 

-------------- next part -------------- 
An HTML attachment was scrubbed... 

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

------------------------------------------------------------------------- 
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2005. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ 

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

_______________________________________________ 
iText-questions mailing list 
[email protected] 
https://lists.sourceforge.net/lists/listinfo/itext-questions 


End of iText-questions Digest, Vol 20, Issue 6 
********************************************** 



  _____  

avast! Antivirus <http://www.avast.com> : Outbound message clean. 


Virus Database (VPS): 080103-0, 03/01/2008
Tested on: 03/01/2008 13:26:48
avast! - copyright (c) 1988-2008 ALWIL Software.




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to