Re: [iText-questions] Converting doc to pdf which has images embeddedoon doc file

2010-03-03 Thread kasun pramu
While doing the R&D about open office i got to know that the open office instance should be run in the machine for conversion to happen. Any more ideas from you guys? Regards Kasun On Thu, Mar 4, 2010 at 12:35 PM, Leonard Rosenthol wrote: > You can look into automation of OpenOffice from Java…ot

Re: [iText-questions] Converting doc to pdf which has images embeddedoon doc file

2010-03-03 Thread Leonard Rosenthol
You can look into automation of OpenOffice from Java...otherwise, I would not take the assignment. Leonard From: kasun pramu [mailto:kasun0...@gmail.com] Sent: Thursday, March 04, 2010 3:55 PM To: Post all your questions about iText here Subject: Re: [iText-questions] Converting doc to pdf which

Re: [iText-questions] Converting doc to pdf which has images embeddedoon doc file

2010-03-03 Thread kasun pramu
My requirement is to convert the doc to pdf using java and anyother third party library which also should be free.Please feelfree to have your ideas On Thu, Mar 4, 2010 at 11:18 AM, Leonard Rosenthol wrote: > Install a copy of Microsoft Word (or Open Office) and then use their > “save as PDF” fe

Re: [iText-questions] Japanese Character are garbled in pdftable when generate the pdf (weblogic)

2010-03-03 Thread 1T3XT info
fernandor wrote: > thanks anyway After a night of sleep, I think the problem could be caused by the default CharSet of the JVM (which can depend on the OS). Maybe you're going from a byte[] to a String (or vice-versa) for the data in the PdfPTables somewhere in your code. This could cause the t

Re: [iText-questions] CIDToGIDMap

2010-03-03 Thread Leonard Rosenthol
Use the low level object APIs - just like any other specific key of any dictionary... Leonard On Thu, Mar 4, 2010 at 2:14 PM, Nirmal Fernando wrote: > How can we set the CIDToGIDMap entry in a CIDFont dictionary of an existing > PDF using iText? > > Thanks in advance !! > > -- > C.S.Nirmal J. Fe

Re: [iText-questions] Japanese Character are garbled in pdftable when generate the pdf (weblogic)

2010-03-03 Thread fernandor
thanks anyway fernando. 1T3XT info wrote: > > fernandor wrote: >> http://old.nabble.com/file/p27771702/3-with-without-tables-InstanceViewReport-7.pdf >> 3-with-without-tables-InstanceViewReport-7.pdf > > You won't like this answer, but the Strings that are shown using the > Japanese fonts do

Re: [iText-questions] Japanese Character are garbled in pdftable when generate the pdf (weblogic)

2010-03-03 Thread fernandor
http://old.nabble.com/file/p27772304/1-Garbled-characters-InstanceViewReport-weblogic.pdf 1-Garbled-characters-InstanceViewReport-weblogic.pdf fernandor wrote: > http://old.nabble.com/file/p27771702/1-Garbled-characters-%0D%0AInstanceViewReport%2528weblogic%2529.pdf > 1-Garbled-characters-In

Re: [iText-questions] Converting doc to pdf which has images embeddedoon doc file

2010-03-03 Thread Leonard Rosenthol
Install a copy of Microsoft Word (or Open Office) and then use their "save as PDF" feature From: kasun pramu [mailto:kasun0...@gmail.com] Sent: Thursday, March 04, 2010 2:25 PM To: iText-questions@lists.sourceforge.net Subject: [iText-questions] Converting doc to pdf which has images embedded

[iText-questions] Converting doc to pdf which has images embeddedoon doc file

2010-03-03 Thread kasun pramu
I am trying to convert a doc file to pdf which has images embedded on the doc file.So doc file contains both text and images.Can anyone give an idea how to this Regards Kasun -- Download Intel® Parallel Studio Eval Try the

Re: [iText-questions] Change Initial view settings

2010-03-03 Thread sase1984
I have tried myself but didn't updating as "FitWidth" in the initial view. PdfAction pageAct = PdfAction.GotoLocalPage(1, new PdfDestination(PdfDestination.Fit), stamper.Writer); stamper.Writer.SetOpenAction(pageAct); Fit results Default and FITBH,FITBV,FITR,FITV,FIT,FITH results

Re: [iText-questions] paragraph getting extra space on top in columntext

2010-03-03 Thread rajeshkatkam
just give me some idea about how to control paragraph spacing at top with any method or property. Thanks. 1T3XT info wrote: > > rajeshkatkam wrote: >> Yes, my label,columntext and PDF has same dimensions. > > ??? > Then your code was completely wrong, wasn't it? > >> addText doesn't work f

Re: [iText-questions] paragraph getting extra space on top in columntext

2010-03-03 Thread rajeshkatkam
just give me some idea about how to control paragraph spacing at top with any method or property. Thanks. rajeshkatkam wrote: > > my code goes like this > http://old.nabble.com/file/p27766675/screen_page.jpg screen_page.jpg > http://old.nabble.com/file/p27766675/screen_pdf.jpg screen_pdf

Re: [iText-questions] How to set a background color in a signature appearance

2010-03-03 Thread Leonard Rosenthol
I said to DRAW a rectangle NOT to just set the background color! Actually use the "draw" methods... -Original Message- From: JudyZW [mailto:liwenzhou...@yahoo.com] Sent: Wednesday, March 03, 2010 11:59 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] How to se

Re: [iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread drorzp
thanks all of you. sorry for "not seeing the light " sooner. it seems that live cycle create it as something else then a TextField. thanks when livecycle create what it calls master page data it create it not as a text field but only drorzp wrote: > > see attached . http://old.nabble.com/fil

Re: [iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread Bruno Lowagie
drorzp wrote: > see attached . http://old.nabble.com/file/p27772487/pdfTemplate.xml > pdfTemplate.xml Read the XFA specification: "XFA template is the XFA subelement that describes the appearance and interactive characteristics of an interactive form. It was designed from the ground up to be a

Re: [iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread 1T3XT info
drorzp wrote: > see attached file created via the livecycle. > it looks like a texfield to me but it is created in a different place then > textfield2 is created. > so i assume you have the way to look for it and see where it is at. Please answer this very simple question: Can you fill what you se

[iText-questions] How to prevent last row of the table to expand

2010-03-03 Thread Ritu Saxena
I am adding two PdfPTable tables say table1 and table2 to the cells of a master PdfPTable table. Each of the two tables table1 and table2, have different number of rows with cell height not fixed. The height of the last row of the table having the lesser number of rows is expanded to the end of the

Re: [iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread drorzp
see attached . http://old.nabble.com/file/p27772487/pdfTemplate.xml pdfTemplate.xml drorzp wrote: > > see attached file created via the livecycle. > it looks like a texfield to me but it is created in a different place then > textfield2 is created. > so i assume you have the way to look for it

Re: [iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread drorzp
see attached file created via the livecycle. it looks like a texfield to me but it is created in a different place then textfield2 is created. so i assume you have the way to look for it and see where it is at. It is not my fault that livecycle stores it in a different position. i understand wht y

Re: [iText-questions] Japanese Character are garbled in pdftable when generate the pdf (weblogic)

2010-03-03 Thread 1T3XT info
fernandor wrote: > http://old.nabble.com/file/p27771702/3-with-without-tables-InstanceViewReport-7.pdf > 3-with-without-tables-InstanceViewReport-7.pdf You won't like this answer, but the Strings that are shown using the Japanese fonts don't contain any Japanese. They are added as two-byte char

Re: [iText-questions] get a page number from a PdfDictionary

2010-03-03 Thread 1T3XT info
Paulo Soares wrote: > Call PdfReader.consolidateNamedDestinations before getting the bookmarks. Yes, but that's not in the first edition, only in the second edition (section 7.1.2) ;-) -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ---

Re: [iText-questions] Project feasibility with iText?

2010-03-03 Thread Mark Storer
>> stamper.getWriter().getOverContent(1).createTemplate(...); >Wouldn't that assume that the PdfTemplate content needs to show on page 1? You'd think, but no. You need a PdfContentByte associated with the correct Writer to create a template. The above code is one way to do so. You can also:

Re: [iText-questions] Japanese Character are garbled in pdftable when generate the pdf (weblogic)

2010-03-03 Thread 1T3XT info
fernandor wrote: > http://old.nabble.com/file/p27771702/1-Garbled-characters-%0D%0AInstanceViewReport%2528weblogic%2529.pdf > 1-Garbled-characters-InstanceViewReport%28weblogic%29.pdf I get a file not found error for the above file. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/

Re: [iText-questions] get a page number from a PdfDictionary

2010-03-03 Thread 1T3XT info
jcintra wrote: > Hello Paulo, > > if I read the book and still have problems maybe it's something else rather > than what's in the book. I will try to explain better my problem. > When I read the bookmark information I don't get a "Page" but a "Named" with > something like "G4.32xxx". And this is

Re: [iText-questions] get a page number from a PdfDictionary

2010-03-03 Thread Paulo Soares
Call PdfReader.consolidateNamedDestinations before getting the bookmarks. There's also the class SimpleNamedDestination to get the data. Paulo From: jcintra [joao.cin...@gmail.com] Sent: Wednesday, March 03, 2010 6:11 PM To: itext-questions@lists.sourcefo

Re: [iText-questions] get a page number from a PdfDictionary

2010-03-03 Thread jcintra
Hello Paulo, if I read the book and still have problems maybe it's something else rather than what's in the book. I will try to explain better my problem. When I read the bookmark information I don't get a "Page" but a "Named" with something like "G4.32xxx". And this is my problem, I don't under

Re: [iText-questions] Japanese Character are garbled in pdftable when generate the pdf (weblogic)

2010-03-03 Thread fernandor
We did all comparisons and testing that you recommended. Uploading pdfs generated in the following cases: 1- Generated correctly with tomcat 2- Generated wrong with weblogic 3- Generated with weblogic, with table, without table in different sections (without styles) Case 1 and 2, with the same

Re: [iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread 1T3XT info
drorzp wrote: > that exactly the problem > I have created the fdf using a tool called life cycle > this tool alow you to define headers Maybe, but you're not using it correctly!!! > if you look at the atached file which is the source(fdf SUMMCRDOC1) you will > see at the top left corner a text b

Re: [iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread drorzp
that exactly the problem I have created the fdf using a tool called life cycle this tool alow you to define headers if you look at the atached file which is the source(fdf SUMMCRDOC1) you will see at the top left corner a text box. this is the text box i refer to. this is probably since itextshar

Re: [iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread 1T3XT info
drorzp wrote: > look at this sample and it will be clearer > http://old.nabble.com/file/p27771102/SUMMCRDOC1.pdf SUMMCRDOC1.pdf > there is 2 fields defined TextField1 , TextField2 That is simply NOT true! There is ONE field in that form: topmostSubform[0].Page1[0].TextField2[0] > TextField1 is

Re: [iText-questions] get a page number from a PdfDictionary

2010-03-03 Thread 1T3XT info
jcintra wrote: > Could you please send me some code to do this? You subject contains the question: "[can I] get a page number from a PdfDictionary". The answer is no: the concept of "page number" doesn't exist in PDF. The page number is determined based on the order in which a page dictionary app

Re: [iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread drorzp
look at this sample and it will be clearer http://old.nabble.com/file/p27771102/SUMMCRDOC1.pdf SUMMCRDOC1.pdf there is 2 fields defined TextField1 , TextField2 TextField1 is defined as header TextField2 is defined in the body this one : stamper.AcroFields.SetField("TextField2", "Dror"); -> work

Re: [iText-questions] get a page number from a PdfDictionary

2010-03-03 Thread Paulo Soares
Chapter 13.4.4 from the book has this rather cryptic title: "Retrieving bookmarks from an existing PDF file". No wonder you couldn't find it. Paulo From: jcintra [joao.cin...@gmail.com] Sent: Wednesday, March 03, 2010 4:56 PM To: itext-questions@lists.sou

Re: [iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread drorzp
same result. in addition when i look at the content of the stamper.AcroFields collection i dont see the header textboxes. 1T3XT info wrote: > > drorzp wrote: >> i have tried it with 5.0.0 same results. >> i use the stamper like this " >> stamper.AcroFields.SetField("TextField1", "Dror"); >>

Re: [iText-questions] get a page number from a PdfDictionary

2010-03-03 Thread jcintra
Could you please send me some code to do this? I'm new to iText and I'm completly lost. I already got the iText book and read the site, but I still don't get how to get a bookmark page. Thanks in advanced. Paulo Soares wrote: > > SimpleBookmark will get the outlines for you in a legible way

Re: [iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread 1T3XT info
drorzp wrote: > i have tried it with 5.0.0 same results. > i use the stamper like this " > stamper.AcroFields.SetField("TextField1", "Dror"); > but maybe there is a way to reference it in another way as example : > stamper.AcroFields.SetField("PageArea1.TextField1", "Dror"); > ? It works, but yo

Re: [iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread drorzp
i have tried it with 5.0.0 same results. i use the stamper like this " stamper.AcroFields.SetField("TextField1", "Dror"); but maybe there is a way to reference it in another way as example : stamper.AcroFields.SetField("PageArea1.TextField1", "Dror"); ? Paulo Soares-3 wrote: > > iTextSharp 4.

Re: [iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread Paulo Soares
iTextSharp 4.0.8.0 is two years old. Try it with the latest release. Paulo From: drorzp [dzeplovi...@lintechsoftware.com] Sent: Wednesday, March 03, 2010 3:43 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] iTextSharp Header & Stam

Re: [iText-questions] Converting files to PDF and TIFF

2010-03-03 Thread 1T3XT info
kasun pramu wrote: > Thank you for your ideas and suggestions guys. I have not looked the > open office source yet mike, will have a look on it too. > If you guys have any other thoughts or suggestions please let me know It works, but your form is quirky. Translate the following Java code to C#

Re: [iText-questions] Converting files to PDF and TIFF

2010-03-03 Thread kasun pramu
Thank you for your ideas and suggestions guys. I have not looked the open office source yet mike, will have a look on it too. If you guys have any other thoughts or suggestions please let me know Regards Kasun On Wed, Mar 3, 2010 at 7:50 PM, Mike Marchywka wrote: > > > > > > > >

[iText-questions] iTextSharp Header & Stamper

2010-03-03 Thread drorzp
Hi all , I am glad to be a part of this grouop and hopefully I will be able to receive / contribute to the group. I have an urgent Question here it is : I am using LifeCycle to add tags to a pdf document. Then I use the C# API (iTextSharp 4.0.8.0) to enter values into the tags place holders (see

Re: [iText-questions] Japanese Character are garbled in pdftable when generate the pdf (weblogic)

2010-03-03 Thread 1T3XT info
fernandor wrote: > hi, thanks for quick response. > > Let me guess: in the example WITHOUT table, the data is hardcoded. > --> No, in both cases come from the database. In the case without tables, we > added the information to a pdf section, instead of a pdftable. Hmm, then my guess was wrong. I

Re: [iText-questions] How to set a background color in a signature appearance

2010-03-03 Thread JudyZW
Thank you Leonard for the reply. I tried the following code and still got the transparent background in the signed signature. Please advise. PdfTemplate n0 = sap.getLayer(0); n0.setBoundingBox(rect); n0.setColorFill(Color.WHITE); Rectangle whiteRec = new Rectangle(sposition[1],sposition[2],spositi

Re: [iText-questions] Japanese Character are garbled in pdftable when generate the pdf (weblogic)

2010-03-03 Thread fernandor
hi, thanks for quick response. Let me guess: in the example WITHOUT table, the data is hardcoded. --> No, in both cases come from the database. In the case without tables, we added the information to a pdf section, instead of a pdftable. In the example WITH table, the data comes from a database.

Re: [iText-questions] Leading in a list

2010-03-03 Thread 1T3XT info
Stephan, Frank wrote: > Hi, > > How can I set the leading for a list. If I add the list to a paragraph, > the list becomes normal text. Take a look at the documentation: http://www.flickr.com/photos/itextinaction/4330321372/in/set-72157623225023967/ ListItem extends Paragraph. -- This answer is

[iText-questions] Leading in a list

2010-03-03 Thread Stephan, Frank
Hi, How can I set the leading for a list. If I add the list to a paragraph, the list becomes normal text. Greetings Frank -- Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling,

Re: [iText-questions] paragraph getting extra space on top in columntext

2010-03-03 Thread 1T3XT info
rajeshkatkam wrote: > Yes, my label,columntext and PDF has same dimensions. ??? Then your code was completely wrong, wasn't it? > addText doesn't work for us, as HTML contains image like below. Then use addElement(). > string box_content = " tiny_mce/plugins/emotions/img/smiley-cool.jpg > ";

Re: [iText-questions] How to Append a PDF to a document Values are not retained

2010-03-03 Thread wasegraves
Look at the Properties of your Form W-4. See where it says there is a restriction, Document Assembly = Not Allowed. Please heed Bruno's advice, re: readability of your posted message. Best regards, Bill Segraves From: itxtusr To: itext-questions@lists.source

Re: [iText-questions] paragraph getting extra space on top in columntext

2010-03-03 Thread rajeshkatkam
Yes, my label,columntext and PDF has same dimensions. addText doesn't work for us, as HTML contains image like below. string box_content = " tiny_mce/plugins/emotions/img/smiley-cool.jpg "; Thanks for your suggestions. 1T3XT info wrote: > > rajeshkatkam wrote: >> I am converting html

Re: [iText-questions] Converting files to PDF and TIFF

2010-03-03 Thread 1T3XT info
kasun pramu wrote: > Will i be able to do this only using itext or do i need to use any other > thirt party library for this purpsose. iText doesn't produce TIFF files. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ---

Re: [iText-questions] Converting files to PDF and TIFF

2010-03-03 Thread Mike Marchywka
> Date: Wed, 3 Mar 2010 19:36:53 +0600 > From: kasun0...@gmail.com > To: iText-questions@lists.sourceforge.net > Subject: [iText-questions] Converting files to PDF and TIFF > > Hi all, > I am new to IText.I am developing a java application where a method take

Re: [iText-questions] Change Initial view settings

2010-03-03 Thread 1T3XT info
sase1984 wrote: > Is this application for all pages or do we need to set page action for each > page? An open action is an action that is triggered when the document is opened... Try it out and see for yourself. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.in

[iText-questions] MultiColumnText height

2010-03-03 Thread Ovidiu Lazar
Hi everyone, This is my first subscribtion to a mailing list, I'm trying to figure out how it works, so I'm posting my question as suggested in my welcome email :) The question is: I have a MultiColumnText which spans several pages. Typically, on the last page it does not fill all of it. SO, w

[iText-questions] Converting files to PDF and TIFF

2010-03-03 Thread kasun pramu
Hi all, I am new to IText.I am developing a java application where a method take a list of files that can be of type .doc, .txt, .rtf, .html, .TIFF, .odt .The list of files is iterated over and each one is converted and added to a single TIFF file. The new TIFF file is then returned. And another me

Re: [iText-questions] Change Initial view settings

2010-03-03 Thread sase1984
Is this application for all pages or do we need to set page action for each page? Regards, Selvakumar 1T3XT info wrote: > > sase1984 wrote: >> Dear All, >> >> I have the pdf which is in “Defalut” magnification and need to be >> modified >> to “FitWidth”. How to change this in general document

Re: [iText-questions] Change Initial view settings

2010-03-03 Thread 1T3XT info
sase1984 wrote: > Dear All, > > I have the pdf which is in “Defalut” magnification and need to be modified > to “FitWidth”. How to change this in general document settings using > ITextsharp? Create a PdfAction that jumps to a page with a PdfDestination and use that as Open Action. -- This answe

Re: [iText-questions] paragraph getting extra space on top in columntext

2010-03-03 Thread 1T3XT info
rajeshkatkam wrote: > I am converting html of my label to PDF. In the first screen i had shown the > page with label and how it looks in the browser. OK. > I am setting the dimensions for the columntext, But you're setting the dimension in an awkward location in your code. > because i have to g

[iText-questions] Change Initial view settings

2010-03-03 Thread sase1984
Dear All, I have the pdf which is in “Defalut” magnification and need to be modified to “FitWidth”. How to change this in general document settings using ITextsharp? Document Properties -> Initial View -> Magnification -> FitWidth Regards, Selvakumar -- View this message in context: http:

Re: [iText-questions] How to set a background color in a signature appearance

2010-03-03 Thread Leonard Rosenthol
Draw a white rectangle after setting fill color. -Original Message- From: JudyZW [mailto:liwenzhou...@yahoo.com] Sent: Wednesday, March 03, 2010 6:41 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] How to set a background color in a signature appearance Hello,

Re: [iText-questions] paragraph getting extra space on top in columntext

2010-03-03 Thread rajeshkatkam
I am converting html of my label to PDF. In the first screen i had shown the page with label and how it looks in the browser. I am setting the dimensions for the columntext, because i have to get the PDF with exact dimensions of the label(height and width) ie, if label is 4in x 4in then pdf shoul

Re: [iText-questions] paragraph getting extra space on top in columntext

2010-03-03 Thread 1T3XT info
rajeshkatkam wrote: > > my code goes like this > http://old.nabble.com/file/p27766675/screen_page.jpg screen_page.jpg > http://old.nabble.com/file/p27766675/screen_pdf.jpg screen_pdf.jpg > > string box_content = " \"tiny_mce/plugins/emotions/img/smiley-cool.jpg\" > "; > box_content = box_co

Re: [iText-questions] paragraph getting extra space on top in columntext

2010-03-03 Thread rajeshkatkam
my code goes like this http://old.nabble.com/file/p27766675/screen_page.jpg screen_page.jpg http://old.nabble.com/file/p27766675/screen_pdf.jpg screen_pdf.jpg string box_content = " \"tiny_mce/plugins/emotions/img/smiley-cool.jpg\" "; box_content = box_content.Replace("tiny_mce/", Serve

Re: [iText-questions] DestOutputProfile

2010-03-03 Thread 1T3XT info
Nirmal Fernando wrote: > I've downloaded it > but there's no such word in that :( Please don't talk non sense on this mailing list. That is not appreciated. Moreover it gives you a bad name. Read page 634 (642 of 756) of this document: http://

Re: [iText-questions] DestOutputProfile

2010-03-03 Thread Nirmal Fernando
I've downloaded it but there's no such word in that :( On Wed, Mar 3, 2010 at 1:00 PM, 1T3XT info wrote: > Nirmal Fernando wrote: > > > > How can we include "DestOutputProfile" Object to a PDF file? > > http://itextpdf.com/examples/index.php

Re: [iText-questions] Filling UP Pdf forms --- not working -- iTextSharp disable Extended Features

2010-03-03 Thread Paulo Soares
It works with the example and file at http://1t3xt.info/examples/browse/?page=example&id=348 (code changed to C#, of course). Paulo - Original Message - From: "darthrix" To: Sent: Tuesday, March 02, 2010 8:13 PM Subject: [iText-questions] Filling UP Pdf forms --- not working -- iTe

Re: [iText-questions] onSection event

2010-03-03 Thread 1T3XT info
Swapna Guntu wrote: > I have created a PDF with onSection event which pushes the headers to > the next page when the contents are almost at the end of the page. > > if(document.getPageSize().getHeight() - paragraphPosition >575) >document.newPage(); What you're doing is fo