Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Niladri Bhattacharyya
Hi
I did that but getting this exception :

 AZ.ttf cannot be embedded due to licensing restrictions. - 

Can you please help me why this is ocurring ?? The code i have written is like 
this :

BaseFont bf = BaseFont.createFont("AZ.ttf", BaseFont.IDENTITY_H,
BaseFont.EMBEDDED);

The ttf file is only put in the jar and the jar is in the classpath.

Thanks
Niladri.



- Original Message 
From: Paulo Soares <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 9:14:57 PM
Subject: Re: [iText-questions] Problem with Font creation.

Move the file inside a jar and get it from there. Suppose you put it in
mypackage.fonts.arial.ttf, the way to get out is
"/mypackage/fonts/arial.ttf" as long as that jar is in the classpath.

Paulo 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Schalk Neethling
> Sent: Thursday, January 03, 2008 3:14 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> Niladri,
> 
>  
> 
> So you fonr file is contained inside a WAR file, do I have 
> that right? Any reason you cannot move it outside the WAR?
> 
>  
> 
> 
> 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Niladri Bhattacharyya
> Sent: 03 January 2008 03:33 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
>  
> 
> No Sir,
> 
>if you check the api for this method this does not 
> work for any file inside war. My file is inside the war.
> 
> - Original Message 
> From: Schalk Neethling <[EMAIL PROTECTED]>
> To: Post all your questions about iText here 
> 
> Sent: Thursday, 3 January, 2008 6:59:42 PM
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> Ok, how about ServletContext.getRealPath(fileLoc);
> 
>  
> 
> 
> 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Niladri Bhattacharyya
> Sent: 03 January 2008 03:28 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
>  
> 
> Thats right sir, i tried that see below the code i written
> 
>  
> 
> public class PrintServlet extends HttpServlet {
> 
>  
> 
> public void init(ServletConfig config) {
> 
>String fileLoc = config.getInitParameter("fontlocation");
> 
>System.out.println("File loc " + fileLoc);
> 
> }
> 
>  
> 
> Now this code gives the path from the webapp location like :  
> /font/AZ.ttf
> 
>  
> 
> But I want the full path for the existing file in the system, i.e.
> 
> C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf
> 
>  
> 
> This is the problem.
> 
>  
> 
> How can I get the path : C:\Workspace\CARAT_PL\res\LombardBusiness   ??
> 
>  
> 
> Thanks
> 
> Niladri.
> 
>  
> 
> - Original Message 
> From: Schalk Neethling <[EMAIL PROTECTED]>
> To: Post all your questions about iText here 
> 
> Sent: Thursday, 3 January, 2008 6:42:18 PM
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> Ok great! Then what you can do is create an init parameter 
> for your servlet that provides the location of the font. The 
> in your servlet you can use servlet context to get to that 
> parameter as follows:
> 
> String pathToFont = 
> ServletContext.getInitParameter("nameOfFontInitParameter");
> 
>  
> 
> Regards,
> 
> Schalk Neethling
> 
>  
> 
> 
> 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Niladri Bhattacharyya
> Sent: 03 January 2008 03:09 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
>  
> 
> yes...absolutely...
> 
> - Original Message 
> From: Schalk Neethling <[EMAIL PROTECTED]>
> To: Post all your questions about iText here 
> 
> Sent: Thursday, 3 January, 2008 6:33:48 PM
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> Do you have access to your web.xml?
> 
>  
> 
> 
> 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Niladri Bhattacharyya
> Sent: 03 January 2008 02:50 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
>  
> 
> yes, the font file is located inside my webapp folder of my 
> web application
> 
>  
> 
> The actual path is :
> 
>  
> 
> C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf
> 
>  
> 
> Please let me know if u have some solution I am still trying. 
> thanks a lot for your interest.
> 
>  
> 
> Thanks
> 
> Niladri.
> 
>  
> 
> - Original Message 
> From: Schalk Neethling <[EMAIL PROTECTED]>
> To: Post all your questions about iText here 
> 
> Sent: Thursday, 3 January, 2008 5:51:55 PM
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> Do you know where the font is located on your system?

Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Niladri Bhattacharyya
Hello Sir,
  Thanks for the solution but I do not know how to create a jar 
file with a ttf file. Can you please guide me regarding  that ??

Thanks
Niladri.



- Original Message 
From: Paulo Soares <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 9:14:57 PM
Subject: Re: [iText-questions] Problem with Font creation.

Move the file inside a jar and get it from there. Suppose you put it in
mypackage.fonts.arial.ttf, the way to get out is
"/mypackage/fonts/arial.ttf" as long as that jar is in the classpath.

Paulo 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Schalk Neethling
> Sent: Thursday, January 03, 2008 3:14 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> Niladri,
> 
>  
> 
> So you fonr file is contained inside a WAR file, do I have 
> that right? Any reason you cannot move it outside the WAR?
> 
>  
> 
> 
> 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Niladri Bhattacharyya
> Sent: 03 January 2008 03:33 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
>  
> 
> No Sir,
> 
>if you check the api for this method this does not 
> work for any file inside war. My file is inside the war.
> 
> - Original Message 
> From: Schalk Neethling <[EMAIL PROTECTED]>
> To: Post all your questions about iText here 
> 
> Sent: Thursday, 3 January, 2008 6:59:42 PM
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> Ok, how about ServletContext.getRealPath(fileLoc);
> 
>  
> 
> 
> 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Niladri Bhattacharyya
> Sent: 03 January 2008 03:28 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
>  
> 
> Thats right sir, i tried that see below the code i written
> 
>  
> 
> public class PrintServlet extends HttpServlet {
> 
>  
> 
> public void init(ServletConfig config) {
> 
>String fileLoc = config.getInitParameter("fontlocation");
> 
>System.out.println("File loc " + fileLoc);
> 
> }
> 
>  
> 
> Now this code gives the path from the webapp location like :  
> /font/AZ.ttf
> 
>  
> 
> But I want the full path for the existing file in the system, i.e.
> 
> C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf
> 
>  
> 
> This is the problem.
> 
>  
> 
> How can I get the path : C:\Workspace\CARAT_PL\res\LombardBusiness   ??
> 
>  
> 
> Thanks
> 
> Niladri.
> 
>  
> 
> - Original Message 
> From: Schalk Neethling <[EMAIL PROTECTED]>
> To: Post all your questions about iText here 
> 
> Sent: Thursday, 3 January, 2008 6:42:18 PM
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> Ok great! Then what you can do is create an init parameter 
> for your servlet that provides the location of the font. The 
> in your servlet you can use servlet context to get to that 
> parameter as follows:
> 
> String pathToFont = 
> ServletContext.getInitParameter("nameOfFontInitParameter");
> 
>  
> 
> Regards,
> 
> Schalk Neethling
> 
>  
> 
> 
> 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Niladri Bhattacharyya
> Sent: 03 January 2008 03:09 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
>  
> 
> yes...absolutely...
> 
> - Original Message 
> From: Schalk Neethling <[EMAIL PROTECTED]>
> To: Post all your questions about iText here 
> 
> Sent: Thursday, 3 January, 2008 6:33:48 PM
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> Do you have access to your web.xml?
> 
>  
> 
> 
> 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Niladri Bhattacharyya
> Sent: 03 January 2008 02:50 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
>  
> 
> yes, the font file is located inside my webapp folder of my 
> web application
> 
>  
> 
> The actual path is :
> 
>  
> 
> C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf
> 
>  
> 
> Please let me know if u have some solution I am still trying. 
> thanks a lot for your interest.
> 
>  
> 
> Thanks
> 
> Niladri.
> 
>  
> 
> - Original Message 
> From: Schalk Neethling <[EMAIL PROTECTED]>
> To: Post all your questions about iText here 
> 
> Sent: Thursday, 3 January, 2008 5:51:55 PM
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> 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 quest

Re: [iText-questions] rtf encoding problem with itext 2.0.7

2008-01-03 Thread Mark Hall
On Wednesday 02 January 2008, Abid Hussain wrote:
> And second, is there a way to change the encoding of a rtf-document
> (e.g. to UTF-8)?
No. This is currently hard-coded. At some point in the future this might 
become configurable, but currently it is not possible.

Regards,
Mark
-- 
The only way to keep your health is to eat what you don't want, drink what
you don't like, and do what you'd rather not.
-- Mark Twain

My GPG public key is available at:
http://www.room3b.eu/data_box/download?path=%2Fsecurity%2FMarkHall.asc


signature.asc
Description: This is a digitally signed message part.
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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/


Re: [iText-questions] nouveau Paragraph dans une instance PdfStamper

2008-01-03 Thread Bruno Lowagie

BACQ Jean-sébastien wrote:

Salut,

 

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


Avec ColumnText.

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


Non, getPdfDocument retourne un objet PdfDocument tandis que vous
expectez un object Document.
s-à-v,
Bruno



smime.p7s
Description: S/MIME Cryptographic Signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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/


Re: [iText-questions] how to remove password from binary file using iText

2008-01-03 Thread Bruno Lowagie

raja shankar wrote:

Hi All,
My requirement is i need to remove a password in a PDF file which is set 
by one of the proprietary tool in PDF binary.

How can i remove the password from PDF using iText.


You can only do this by providing the owner password.
It would be illegal if you were able to remove such
a password without the owner password.
br,
Bruno


smime.p7s
Description: S/MIME Cryptographic Signature
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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/


Re: [iText-questions] how to remove password from binary file usingiText

2008-01-03 Thread Paulo Soares
Use PdfStamper. You must have the owner password of the file.

Paulo

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of raja shankar
> Sent: Thursday, January 03, 2008 4:06 PM
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] how to remove password from binary 
> file usingiText
> 
> Hi All,
> My requirement is i need to remove a password in a PDF file 
> which is set by one of the proprietary tool in PDF binary.
> How can i remove the password from PDF using iText.
>  
> Kindly suggest me.Its bit urgent.
>  
> Thanks and Regards,
> Rajashankar.R
> 


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.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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/


[iText-questions] how to remove password from binary file using iText

2008-01-03 Thread raja shankar
Hi All,
My requirement is i need to remove a password in a PDF file which is set by
one of the proprietary tool in PDF binary.
How can i remove the password from PDF using iText.

Kindly suggest me.Its bit urgent.

Thanks and Regards,
Rajashankar.R
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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/


Re: [iText-questions] Pre-Populating fields in an XFA form

2008-01-03 Thread Emmanuel Delmasure

Hi,

my recent works could help. I have been trying using the iText
acroFields.mergeXfaData(...), but I faced a bug with duplicated subforms
assigned to different datas (same structure)...
That seems to happen because of a corrupted mapping between short and long
names in AcroFieldSearch class... I tried to fix it, but I lost myself in
the depth of code ;-) !

So, I did it my own way, merging XFA dataset with a classic XML merging
approach... sounds trivial, but  works fine.

Here is my code, if that can help (form is an instance of an home-made class
defining a set of pdf form, datas to merge aso...):

PdfReader pdfReader = new PdfReader(form.getFormTemplate().getURI());

XfaForm xfaForm = new XfaForm(pdfReader);
if (!xfaForm.isXfaPresent()) {
form.setState(IForm.STATE_FAILED);
throw new Exception("Not an XFA Form !!");
}

FileOutputStream pdfOutputStream = new
FileOutputStream(form.getMergedPath());
PdfStamper pdfStamper = new PdfStamper(pdfReader, pdfOutputStream);

Document dataSetDocument =
XmlDomHelper.loadDomDocument(form.getDataFlow().getURI());
Node dataSetsNode =
XPathAPI.selectSingleNode(dataSetDocument.getDocumentElement(),
"//xfa:data", dataSetDocument);

// Get data definitions from xfa structure (link to an xfa form file through
form instance)
Document xfaDocument = xfaForm.getDomDocument();

Node newXfaDataSetsNode =
xfaDocument.importNode(dataSetsNode.cloneNode(true), true);
Node xfaDataSetsNode =
XPathAPI.selectSingleNode(xfaDocument.getDocumentElement(), "//xfa:data",
dataSetDocument);

// Replacement of the dataset definition in xfa-form with the filled dataset
from the xml business datas:
xfaDataSetsNode.getParentNode().replaceChild(newXfaDataSetsNode,
xfaDataSetsNode);
xfaForm.setDomDocument(xfaDocument);

xfaForm.setChanged(true);
XfaForm.setXfa(XfaForm.serializeDoc(xfaForm.getDomDocument()),
pdfStamper.getReader(), pdfStamper.getWriter());

pdfStamper.close();
pdfReader.close();

form.setState(IForm.STATE_MERGED);


-- 
View this message in context: 
http://www.nabble.com/Pre-Populating-fields-in-an-XFA-form-tp14409379p14597628.html
Sent from the iText - General mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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/


Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Paulo Soares
Move the file inside a jar and get it from there. Suppose you put it in
mypackage.fonts.arial.ttf, the way to get out is
"/mypackage/fonts/arial.ttf" as long as that jar is in the classpath.

Paulo 

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Schalk Neethling
> Sent: Thursday, January 03, 2008 3:14 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> Niladri,
> 
>  
> 
> So you fonr file is contained inside a WAR file, do I have 
> that right? Any reason you cannot move it outside the WAR?
> 
>  
> 
> 
> 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Niladri Bhattacharyya
> Sent: 03 January 2008 03:33 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
>  
> 
> No Sir,
> 
>if you check the api for this method this does not 
> work for any file inside war. My file is inside the war.
> 
> - Original Message 
> From: Schalk Neethling <[EMAIL PROTECTED]>
> To: Post all your questions about iText here 
> 
> Sent: Thursday, 3 January, 2008 6:59:42 PM
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> Ok, how about ServletContext.getRealPath(fileLoc);
> 
>  
> 
> 
> 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Niladri Bhattacharyya
> Sent: 03 January 2008 03:28 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
>  
> 
> Thats right sir, i tried that see below the code i written
> 
>  
> 
> public class PrintServlet extends HttpServlet {
> 
>  
> 
> public void init(ServletConfig config) {
> 
> String fileLoc = config.getInitParameter("fontlocation");
> 
> System.out.println("File loc " + fileLoc);
> 
> }
> 
>  
> 
> Now this code gives the path from the webapp location like :  
> /font/AZ.ttf
> 
>  
> 
> But I want the full path for the existing file in the system, i.e.
> 
> C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf
> 
>  
> 
> This is the problem.
> 
>  
> 
> How can I get the path : C:\Workspace\CARAT_PL\res\LombardBusiness  ??
> 
>  
> 
> Thanks
> 
> Niladri.
> 
>  
> 
> - Original Message 
> From: Schalk Neethling <[EMAIL PROTECTED]>
> To: Post all your questions about iText here 
> 
> Sent: Thursday, 3 January, 2008 6:42:18 PM
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> Ok great! Then what you can do is create an init parameter 
> for your servlet that provides the location of the font. The 
> in your servlet you can use servlet context to get to that 
> parameter as follows:
> 
> String pathToFont = 
> ServletContext.getInitParameter("nameOfFontInitParameter");
> 
>  
> 
> Regards,
> 
> Schalk Neethling
> 
>  
> 
> 
> 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Niladri Bhattacharyya
> Sent: 03 January 2008 03:09 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
>  
> 
> yes...absolutely...
> 
> - Original Message 
> From: Schalk Neethling <[EMAIL PROTECTED]>
> To: Post all your questions about iText here 
> 
> Sent: Thursday, 3 January, 2008 6:33:48 PM
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> Do you have access to your web.xml?
> 
>  
> 
> 
> 
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Niladri Bhattacharyya
> Sent: 03 January 2008 02:50 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] Problem with Font creation.
> 
>  
> 
> yes, the font file is located inside my webapp folder of my 
> web application
> 
>  
> 
> The actual path is :
> 
>  
> 
> C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf
> 
>  
> 
> Please let me know if u have some solution I am still trying. 
> thanks a lot for your interest.
> 
>  
> 
> Thanks
> 
> Niladri.
> 
>  
> 
> - Original Message 
> From: Schalk Neethling <[EMAIL PROTECTED]>
> To: Post all your questions about iText here 
> 
> Sent: Thursday, 3 January, 2008 5:51:55 PM
> Subject: Re: [iText-questions] Problem with Font creation.
> 
> 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
> 
> Niladr

Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Niladri Bhattacharyya
yes sir, actually thats client architecture,so that i do not have rights to 
change...sorry for the trouble..

thanks for your support
Niladri.


- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 8:44:03 PM
Subject: Re: [iText-questions] Problem with Font creation.


Niladri,
 
So you fonr file is contained inside a WAR file, do I have that right? Any 
reason you cannot move it outside the WAR?
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Niladri 
Bhattacharyya
Sent: 03 January 2008 03:33 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Problem with Font creation.
 
No Sir,
   if you check the api for this method this does not work for any file 
inside war. My file is inside the war.
- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 6:59:42 PM
Subject: Re: [iText-questions] Problem with Font creation.
Ok, how about ServletContext.getRealPath(fileLoc);
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Niladri 
Bhattacharyya
Sent: 03 January 2008 03:28 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Problem with Font creation.
 
Thats right sir, i tried that see below the code i written
 
public class PrintServlet extends HttpServlet {
 
public void init(ServletConfig config) {
String fileLoc = config.getInitParameter("fontlocation");
System.out.println("File loc " + fileLoc);
}
 
Now this code gives the path from the webapp location like :  /font/AZ.ttf
 
But I want the full path for the existing file in the system, i.e.
C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf
 
This is the problem.
 
How can I get the path : C:\Workspace\CARAT_PL\res\LombardBusiness  ??
 
Thanks
Niladri.
 
- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 6:42:18 PM
Subject: Re: [iText-questions] Problem with Font creation.
Ok great! Then what you can do is create an init parameter for your servlet 
that provides the location of the font. The in your servlet you can use servlet 
context to get to that parameter as follows:
String pathToFont = ServletContext.getInitParameter(“nameOfFontInitParameter”);
 
Regards,
Schalk Neethling
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Niladri 
Bhattacharyya
Sent: 03 January 2008 03:09 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Problem with Font creation.
 
yes...absolutely...
- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 6:33:48 PM
Subject: Re: [iText-questions] Problem with Font creation.
Do you have access to your web.xml?
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Niladri 
Bhattacharyya
Sent: 03 January 2008 02:50 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Problem with Font creation.
 
yes, the font file is located inside my webapp folder of my web application
 
The actual path is :
 
C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf
 
Please let me know if u have some solution I am still trying. thanks a lot for 
your interest.
 
Thanks
Niladri.
 
- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 5:51:55 PM
Subject: Re: [iText-questions] Problem with Font creation.
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 

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/platform/plugins
wealthReportWeb.fonts.dir=${wealthReportWeb.plugins.dir}/org.eclipse.birt...report.engine.fonts_2.2.1.v20070823/fonts/
 
Inside my build.xml Ant script, I then have the following:





 
Then inside my code I do the following:
BaseFont bf = BaseFont.createFont(configProps.getString("verdana"), 
BaseFont.WINANSI, BaseFont.NOT_EMBEDDED);
 
HTH!
Schalk Neethling
 




Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Schalk Neethling
Niladri,

 

So you fonr file is contained inside a WAR file, do I have that right?
Any reason you cannot move it outside the WAR?

 



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

 

No Sir,

   if you check the api for this method this does not work for
any file inside war. My file is inside the war.

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 6:59:42 PM
Subject: Re: [iText-questions] Problem with Font creation.

Ok, how about ServletContext.getRealPath(fileLoc);

 



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

 

Thats right sir, i tried that see below the code i written

 

public class PrintServlet extends HttpServlet {

 

public void init(ServletConfig config) {

String fileLoc = config.getInitParameter("fontlocation");

System.out.println("File loc " + fileLoc);

}

 

Now this code gives the path from the webapp location like :
/font/AZ.ttf

 

But I want the full path for the existing file in the system, i.e.

C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf

 

This is the problem.

 

How can I get the path : C:\Workspace\CARAT_PL\res\LombardBusiness  ??

 

Thanks

Niladri.

 

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 6:42:18 PM
Subject: Re: [iText-questions] Problem with Font creation.

Ok great! Then what you can do is create an init parameter for your
servlet that provides the location of the font. The in your servlet you
can use servlet context to get to that parameter as follows:

String pathToFont =
ServletContext.getInitParameter("nameOfFontInitParameter");

 

Regards,

Schalk Neethling

 



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

 

yes...absolutely...

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 6:33:48 PM
Subject: Re: [iText-questions] Problem with Font creation.

Do you have access to your web.xml?

 



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

 

yes, the font file is located inside my webapp folder of my web
application

 

The actual path is :

 

C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf

 

Please let me know if u have some solution I am still trying. thanks a
lot for your interest.

 

Thanks

Niladri.

 

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 5:51:55 PM
Subject: Re: [iText-questions] Problem with Font creation.

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

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:











 

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

[iText-questions] Design reports in Word or Excel

2008-01-03 Thread David Thielen
We just added support for designing in Excel - details below:
 
Windward Reports, the leader in enterprise report generation, has released the 
world's first enterprise reporting software that enables use of Excel as a 
design tool. The Windward Reports Server Engine is perfect for users creating 
both java reports and .net reports alike, and now allows users to design 
reports in both Microsoft Word and Microsoft Excel as well.

Windward, a leader in with its design-in-Word reporting software because of its 
ease of use, now adds the advantages of Excel to its portfolio of 
simple-to-use, superior reporting products. Windward's new AutoTag 6.0 
reporting software uniquely uses Excel to intelligently figure out sums and 
number formatting, and allows users to build a table which supports 
calculations. AutoTag 6.0 still outputs to Word, or any other output format, to 
produce reporting documents. 

Why is this Excel release so important? Simply put: Freedom. By creating an 
easy-to-use design tool which allows users to design their reports in Excel (in 
addition to word), Windward is freeing up thousands of IT man-hours normally 
allocated to report design, and including Excel business users in their 
'power-to the people' philosophy. Now, non-technical business users who prefer 
Excel, can design their own reports and stay within their comfort zone while 
doing so. Windward Reports AutoTag for Excel doesn't just look like Excel, it 
IS Excel.

How Does It Work? Begin with a worksheet. Using the AutoTag pull-down menu, 
select a data source such as an SQL database or XML file. (AutoTag works in 
conjunction with the Windward Reports Standard Server Engine, which gives your 
PC the ability to communicate with your organization's data sources, such as 
its SQL databases and XML files.) You use standard Excel commands to format and 
edit the report, and you assign tags to the data fields using the AutoTag 
pull-down menu. When finished, you save your template and, if you wish, verify 
that tags are correct with AutoTag's "validate" function.

What makes this unique? With AutoTag for Excel, your number formatting always 
carries through - it doesn't matter if you output to RTF, PDF, or any other 
type. And, by using Excel templates you have a way to easily, and automatically 
generate reports that perform calculations on a collection of values! For 
instance, you might use Excel to sum all of the line-item amounts that are 
generated by an AutoTag. While AutoTag was always easy to use, this additional 
capability offers functions not available in a word-designed template, allowing 
the software to be used by more people, in more ways.

When you generate the report Windward Reports merges this template with the 
data you have selected. The finished report, with all of your formatting, 
positioning and design, is available in minutes instead of hours or even days.

Download a demo or check out a sample report at http://www.windwardreports.com. 
For more information on how you can use Excel or Word to design your reports, 
call 303-499-2544. 
 
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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/


Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Schalk Neethling
Ok, I see your problem. Let me think about this.

 



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

 

No Sir,

   if you check the api for this method this does not work for
any file inside war. My file is inside the war.

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 6:59:42 PM
Subject: Re: [iText-questions] Problem with Font creation.

Ok, how about ServletContext.getRealPath(fileLoc);

 



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

 

Thats right sir, i tried that see below the code i written

 

public class PrintServlet extends HttpServlet {

 

public void init(ServletConfig config) {

String fileLoc = config.getInitParameter("fontlocation");

System.out.println("File loc " + fileLoc);

}

 

Now this code gives the path from the webapp location like :
/font/AZ.ttf

 

But I want the full path for the existing file in the system, i.e.

C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf

 

This is the problem.

 

How can I get the path : C:\Workspace\CARAT_PL\res\LombardBusiness  ??

 

Thanks

Niladri.

 

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 6:42:18 PM
Subject: Re: [iText-questions] Problem with Font creation.

Ok great! Then what you can do is create an init parameter for your
servlet that provides the location of the font. The in your servlet you
can use servlet context to get to that parameter as follows:

String pathToFont =
ServletContext.getInitParameter("nameOfFontInitParameter");

 

Regards,

Schalk Neethling

 



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

 

yes...absolutely...

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 6:33:48 PM
Subject: Re: [iText-questions] Problem with Font creation.

Do you have access to your web.xml?

 



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

 

yes, the font file is located inside my webapp folder of my web
application

 

The actual path is :

 

C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf

 

Please let me know if u have some solution I am still trying. thanks a
lot for your interest.

 

Thanks

Niladri.

 

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 5:51:55 PM
Subject: Re: [iText-questions] Problem with Font creation.

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

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:











 

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: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Proble

Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Niladri Bhattacharyya
No Sir,
   if you check the api for this method this does not work for any file 
inside war. My file is inside the war.


- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 6:59:42 PM
Subject: Re: [iText-questions] Problem with Font creation.


Ok, how about ServletContext.getRealPath(fileLoc);
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Niladri 
Bhattacharyya
Sent: 03 January 2008 03:28 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Problem with Font creation.
 
Thats right sir, i tried that see below the code i written
 
public class PrintServlet extends HttpServlet {
 
public void init(ServletConfig config) {
String fileLoc = config..getInitParameter("fontlocation");
System.out.println("File loc " + fileLoc);
}
 
Now this code gives the path from the webapp location like :  /font/AZ.ttf
 
But I want the full path for the existing file in the system, i.e.
C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ..ttf
 
This is the problem.
 
How can I get the path : C:\Workspace\CARAT_PL\res\LombardBusiness  ??
 
Thanks
Niladri.
 
- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 6:42:18 PM
Subject: Re: [iText-questions] Problem with Font creation.
Ok great! Then what you can do is create an init parameter for your servlet 
that provides the location of the font. The in your servlet you can use servlet 
context to get to that parameter as follows:
String pathToFont = ServletContext.getInitParameter(“nameOfFontInitParameter”);
 
Regards,
Schalk Neethling
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Niladri 
Bhattacharyya
Sent: 03 January 2008 03:09 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Problem with Font creation.
 
yes...absolutely...
- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 6:33:48 PM
Subject: Re: [iText-questions] Problem with Font creation.
Do you have access to your web.xml?
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Niladri 
Bhattacharyya
Sent: 03 January 2008 02:50 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Problem with Font creation.
 
yes, the font file is located inside my webapp folder of my web application
 
The actual path is :
 
C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf
 
Please let me know if u have some solution I am still trying. thanks a lot for 
your interest.
 
Thanks
Niladri.
 
- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 5:51:55 PM
Subject: Re: [iText-questions] Problem with Font creation.
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 

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/platform/plugins
wealthReportWeb.fonts.dir=${wealthReportWeb.plugins.dir}/org.eclipse.birt..report.engine.fonts_2.2.1.v20070823/fonts/
 
Inside my build.xml Ant script, I then have the following:





 
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: itext-questions@lists.sourceforge.net
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
N

Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Schalk Neethling
Ok, how about ServletContext.getRealPath(fileLoc);

 



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

 

Thats right sir, i tried that see below the code i written

 

public class PrintServlet extends HttpServlet {

 

public void init(ServletConfig config) {

String fileLoc = config.getInitParameter("fontlocation");

System.out.println("File loc " + fileLoc);

}

 

Now this code gives the path from the webapp location like :
/font/AZ.ttf

 

But I want the full path for the existing file in the system, i.e.

C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf

 

This is the problem.

 

How can I get the path : C:\Workspace\CARAT_PL\res\LombardBusiness  ??

 

Thanks

Niladri.

 

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 6:42:18 PM
Subject: Re: [iText-questions] Problem with Font creation.

Ok great! Then what you can do is create an init parameter for your
servlet that provides the location of the font. The in your servlet you
can use servlet context to get to that parameter as follows:

String pathToFont =
ServletContext.getInitParameter("nameOfFontInitParameter");

 

Regards,

Schalk Neethling

 



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

 

yes...absolutely...

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 6:33:48 PM
Subject: Re: [iText-questions] Problem with Font creation.

Do you have access to your web.xml?

 



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

 

yes, the font file is located inside my webapp folder of my web
application

 

The actual path is :

 

C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf

 

Please let me know if u have some solution I am still trying. thanks a
lot for your interest.

 

Thanks

Niladri.

 

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 5:51:55 PM
Subject: Re: [iText-questions] Problem with Font creation.

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

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:











 

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: itext-questions@lists.sourceforge.net
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.


Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Niladri Bhattacharyya
Thats right sir, i tried that see below the code i written

public class PrintServlet extends HttpServlet {

public void init(ServletConfig config) {
String fileLoc = config.getInitParameter("fontlocation");
System.out.println("File loc " + fileLoc);
}

Now this code gives the path from the webapp location like :  /font/AZ.ttf

But I want the full path for the existing file in the system, i.e.
C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf

This is the problem.

How can I get the path : C:\Workspace\CARAT_PL\res\LombardBusiness  ??

Thanks
Niladri.



- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 6:42:18 PM
Subject: Re: [iText-questions] Problem with Font creation.


Ok great! Then what you can do is create an init parameter for your servlet 
that provides the location of the font. The in your servlet you can use servlet 
context to get to that parameter as follows:
String pathToFont = ServletContext.getInitParameter(“nameOfFontInitParameter”);
 
Regards,
Schalk Neethling
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Niladri 
Bhattacharyya
Sent: 03 January 2008 03:09 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Problem with Font creation.
 
yes...absolutely...
- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 6:33:48 PM
Subject: Re: [iText-questions] Problem with Font creation.
Do you have access to your web.xml?
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Niladri 
Bhattacharyya
Sent: 03 January 2008 02:50 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Problem with Font creation.
 
yes, the font file is located inside my webapp folder of my web application
 
The actual path is :
 
C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf
 
Please let me know if u have some solution I am still trying. thanks a lot for 
your interest.
 
Thanks
Niladri.
 
- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 5:51:55 PM
Subject: Re: [iText-questions] Problem with Font creation.
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 

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/platform/plugins
wealthReportWeb.fonts.dir=${wealthReportWeb.plugins.dir}/org.eclipse.birt..report.engine.fonts_2.2.1.v20070823/fonts/
 
Inside my build.xml Ant script, I then have the following:





 
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: itext-questions@lists.sourceforge.net
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. Click here to know how.
 
 



Get the freedom to save as many mails as you wish. Click here to know how.
 






Explore your hobbies and interests. Click here to begin.


  Explore your hobbies and interests. Go to 
http://in.promos.yahoo.com/groups-
This SF.net email is sponsored by: Microsoft
Defy 

Re: [iText-questions] RTF Strings in a PDF

2008-01-03 Thread Howard Shank
> If this is not possible...is it possible to convert a RTF document  
> to PDF?

I a currently working on a new parser that initially will the ability to 
generate a new RTF just like the original parser. In addition to that, it is 
designed to allow you to read an RTF and produce whatever output iText has a 
writer for. This is in design and development at the moment.

Howard

- Original Message 
From: Leonard Rosenthol <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, January 3, 2008 6:37:32 AM
Subject: Re: [iText-questions] RTF Strings in a PDF


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


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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/


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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/


Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Schalk Neethling
Ok great! Then what you can do is create an init parameter for your
servlet that provides the location of the font. The in your servlet you
can use servlet context to get to that parameter as follows:

String pathToFont =
ServletContext.getInitParameter("nameOfFontInitParameter");

 

Regards,

Schalk Neethling

 



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

 

yes...absolutely..

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 6:33:48 PM
Subject: Re: [iText-questions] Problem with Font creation.

Do you have access to your web.xml?

 



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

 

yes, the font file is located inside my webapp folder of my web
application

 

The actual path is :

 

C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf

 

Please let me know if u have some solution I am still trying. thanks a
lot for your interest.

 

Thanks

Niladri.

 

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 5:51:55 PM
Subject: Re: [iText-questions] Problem with Font creation.

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

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:











 

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: itext-questions@lists.sourceforge.net
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. Click here
  to know how.

 

 



Get the freedom to save as many mails as you wish. Click here to know
how.
 

 







Explore your hobbies and interests. Click here to begin.
 

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

Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Niladri Bhattacharyya
yes...absolutely..


- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 6:33:48 PM
Subject: Re: [iText-questions] Problem with Font creation.


Do you have access to your web.xml?
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Niladri 
Bhattacharyya
Sent: 03 January 2008 02:50 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Problem with Font creation.
 
yes, the font file is located inside my webapp folder of my web application
 
The actual path is :
 
C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf
 
Please let me know if u have some solution I am still trying. thanks a lot for 
your interest.
 
Thanks
Niladri.
 
- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 5:51:55 PM
Subject: Re: [iText-questions] Problem with Font creation.
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 

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/platform/plugins
wealthReportWeb.fonts.dir=${wealthReportWeb.plugins.dir}/org.eclipse.birt..report.engine.fonts_2.2.1.v20070823/fonts/
 
Inside my build.xml Ant script, I then have the following:





 
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: itext-questions@lists.sourceforge.net
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. Click here to know how.
 






Get the freedom to save as many mails as you wish. Click here to know how.


  Explore your hobbies and interests. Go to 
http://in.promos.yahoo.com/groups-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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/


Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Schalk Neethling
Do you have access to your web.xml?

 



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

 

yes, the font file is located inside my webapp folder of my web
application

 

The actual path is :

 

C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf

 

Please let me know if u have some solution I am still trying. thanks a
lot for your interest.

 

Thanks

Niladri.

 

- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here

Sent: Thursday, 3 January, 2008 5:51:55 PM
Subject: Re: [iText-questions] Problem with Font creation.

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

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:











 

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: itext-questions@lists.sourceforge.net
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. Click here
  to know how.

 







Get the freedom to save as many mails as you wish. Click here to know
how.
 

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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/


Re: [iText-questions] How can I set the width only for the first column in a pdfpcell in iTextSharp version 4.0 .4

2008-01-03 Thread shaukat saleem

If anybody can tell me how i can use the width property of PdfPCell, then i can 
do the rest.
for eg:
PdfPCell cell1 = new PdfPCell();
cell1.Width = 5F //but getting an error here saying unable to set width



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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/


Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Niladri Bhattacharyya
yes, the font file is located inside my webapp folder of my web application

The actual path is :

C:\Workspace\CARAT_PL\res\LombardBusiness\webapp\font\AZ.ttf

Please let me know if u have some solution I am still trying. thanks a lot for 
your interest.

Thanks
Niladri.



- Original Message 
From: Schalk Neethling <[EMAIL PROTECTED]>
To: Post all your questions about iText here 

Sent: Thursday, 3 January, 2008 5:51:55 PM
Subject: Re: [iText-questions] Problem with Font creation.


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 

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/platform/plugins
wealthReportWeb.fonts.dir=${wealthReportWeb.plugins.dir}/org.eclipse.birt..report.engine.fonts_2.2.1.v20070823/fonts/
 
Inside my build.xml Ant script, I then have the following:





 
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: itext-questions@lists.sourceforge.net
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. Click here to know how.


  Why delete messages? Unlimited storage is just a click away. Go to 
http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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/


Re: [iText-questions] new Paragraph dans une isntance PdfStamper

2008-01-03 Thread BACQ Jean-sébastien
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 
À : itext-questions@lists.sourceforge.net 
Objet : iText-questions Digest, Vol 20, Issue 6 

Send iText-questions mailing list submissions to 
itext-questions@lists.sourceforge.net 

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 
 
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 
 
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
 
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: 
 
 
 
 
 
  
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: itext-questions@lists.sourceforge.net 
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" 
 
Message-ID: 
 
<[EMAIL PROTECTED]> 

Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Schalk Neethling
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

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:











 

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: itext-questions@lists.sourceforge.net
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. Click here
  to know how.

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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/


Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Niladri Bhattacharyya
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 

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/platform/plugins
wealthReportWeb.fonts.dir=${wealthReportWeb.plugins.dir}/org.eclipse.birt.report.engine.fonts_2.2.1.v20070823/fonts/
 
Inside my build.xml Ant script, I then have the following:





 
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: itext-questions@lists.sourceforge.net
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-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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/


Re: [iText-questions] RTF Strings in a PDF

2008-01-03 Thread Leonard Rosenthol

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


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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/


[iText-questions] nouveau Paragraph dans une instance PdfStamper

2008-01-03 Thread BACQ Jean-sébastien
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

 



  _  

avast! Antivirus  : Outbound message clean. 


Virus Database (VPS): 080103-0, 03/01/2008
Tested on: 03/01/2008 12:33:59
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/vse012070mrt/direct/01/___
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/


Re: [iText-questions] Problem with Font creation.

2008-01-03 Thread Schalk Neethling
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:











 

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: itext-questions@lists.sourceforge.net
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


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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/


[iText-questions] Problem with Font creation.

2008-01-03 Thread Niladri Bhattacharyya
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.


  Explore your hobbies and interests. Go to 
http://in.promos.yahoo.com/groups-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
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/


Re: [iText-questions] How can I set the width only for the first column in a pdfpcell in iTextSharp version 4.0.4

2008-01-03 Thread shaukat saleem
Bruno Lowagie  lowagie.com> writes:

> 
> shaukat saleem wrote:
> > Please can anybody answer the question, i need it. Thanks.
> 
> I don't understand the question because you wrote:
> 
> > in all those 
> > examples we know the number of columns beforehand, in my case the columns 
are 
> > generated dynamically.
> 
> I don't understand how you are creating a PdfPTable without
> knowing the number of columns in advance.
> br,
> Bruno
> 

Hi,
I am creating the PdfPTable in this way:

PdfPTable aTable1 = new PdfPTable(FinalData.Columns.Count);

My finaldata dataset can have any muber of columns. After this i am adding the 
PdfPCell by populating the column headings as follows:

 PdfPCell cell1 = new PdfPCell();
for (int j = 0; j < FinalData.Columns.Count; j++)
{
  cell1 = new PdfPCell(new Phrase(FinalData.Columns[j].ColumnName.ToString(), 
FontFactory.GetFont(FontFactory.HELVETICA, 10, Font.NORMAL)));
if (j == 0)
{
 cell1.VerticalAlignment = Element.ALIGN_MIDDLE;
 //cell1.Width = 5F; here is where i get an error trying to set the width of 
the first column
}
if (j < FinalData.Columns.Count-10)
{
  cell1.GrayFill = 0.5f;
}
if (j > 0)
{ 
  cell1.Rotation = 90; //rotating the text to 90 degrees except the first column
}
 aTable1.AddCell(cell1);
 }
 





-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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/


[iText-questions] RTF Strings in a PDF

2008-01-03 Thread Stefan Topp
Hello,
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.
If this is not possible...is it possible to convert a RTF document to PDF?

Regards,
Stefan Topp

-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
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/