RE: [iText-questions] Is it possible to change line properties of existing PDF using iText?

2005-12-21 Thread Paulo Soares
I had a look at a PDF converted from acad and it can be done quite easily, I've done thing like this recently to change colorspaces and other tricks. Note that I'm only considering changes to the line width of strokes. If you have a fill that needs to be fattened things will be more complex.

Re: [iText-questions] Rebuild trailer not found. Original Error: PDF startxref not found

2005-12-21 Thread Bruno Lowagie
Mauro Pelucchi wrote: Dear Bruno... I cannot change the architecture of the application... and before to write some new code I prefer to find the error The application crash in this function... PdfReader(URL url) --> readPdf() --> readXref()... There some kind of timestamp in the name of

[iText-questions] Problems to print a 300dpi png on some printer

2005-12-21 Thread Schneider Christian S. (KBIB 21)
Title: Problems to print a 300dpi png on some printer Hi We have the folowing problem:  We load a 300 dpi logo on every page on our pdf.  On the screen everything looks ok. But when you print the pdf file there are some printers which are not able to print the logo. Instead of the logo t

Re: [iText-questions] Rebuild trailer not found. Original Error: PDF startxref not found

2005-12-21 Thread Mauro Pelucchi
Dear Bruno... I cannot change the architecture of the application... and before to write some new code I prefer to find the error The application crash in this function... PdfReader(URL url) --> readPdf() --> readXref()... Other idea.. Thanks Mauro Il giorno mer, 21/12/2005 alle 13.33 +0100

Re: [iText-questions] Is it possible to change line properties of existing PDF using iText?

2005-12-21 Thread Leonard Rosenthol
At 02:22 AM 12/21/2005, dark wrote: What they want is followings;  They want that the thickness of all PDF lines which color is a specific color is changed. For examples, a drawing (like AutoCAD dwg format) has three layer; All lines on the first layer is green, second is red and third is blue. W

Re: [iText-questions] Rebuild trailer not found. Original Error: PDF startxref not found

2005-12-21 Thread Bruno Lowagie
Mauro Pelucchi wrote: Ok... this is my code... It's somebody else's code... I not write this applicationthere was already... and I must resolt this problem Reading somebody else's code can be very difficult. Rewriting the code will probably be easier. (It's what I would do whe

Re: [iText-questions] Problem with acrobat 7.0

2005-12-21 Thread Bruno Lowagie
Hilbert Rémy (GFDI) wrote: Hi, Thanks for the quick reply .. Sorry but I don't see how I can create a "Traditional form" or disable the XFA form creation. What means a "traditional form"? Must I install a Plug-in? No. Go to http://groups.google.be/advanced_search?hl=en search for the word

Re: [iText-questions] Embed pdf in Document

2005-12-21 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: In fact we are converting a document that contains an inline EPS 'image' to PDF. If we use 'document.add(Image.getInstance("bla.ps")' we get 'Null token encountered; last unknown identifier was errordict'. Are the javacc grammers somewere in the itext source tree, mayb

Re: [iText-questions] Embed pdf in Document

2005-12-21 Thread Nick_Van_den_Bleeken
In fact we are converting a document that contains an inline EPS 'image' to PDF. If we use 'document.add(Image.getInstance("bla.ps")' we get 'Null token encountered; last unknown identifier was errordict'. Are the javacc grammers somewere in the itext source tree, maybe we can find the problem.

Re: [iText-questions] Rebuild trailer not found. Original Error: PDF startxref not found

2005-12-21 Thread Mauro Pelucchi
Hi, At the first I think to resolv the problem by the adding of the System.gc() before call the builder method... I made 100 test...and all works fine... but after 2 days(about 20 file for day...) crash... Il giorno mer, 21/12/2005 alle 11.46 +0100, Bruno Lowagie ha scritto: > Mauro Pelucchi

Re: [iText-questions] Rebuild trailer not found. Original Error: PDF startxref not found

2005-12-21 Thread Mauro Pelucchi
Ok... this is my code... This method create the final PDF file... public String createOrder(String orderN,String env){ try{ System.gc(); System.out.println("Sto processando l'ordine : " + orderN) ; java.util.Date date = new Date(); long

Re: [iText-questions] Rebuild trailer not found. Original Error: PDF startxref not found

2005-12-21 Thread Bruno Lowagie
Mauro Pelucchi wrote: The application is in production... I cannot do this trial... But the application work fine for 2/3 days and afterCRASH!!! It is a web application (on WEBSPHERE cluster). The user insert the order number and my application print the PDF... ...after crash for one user...

Re: [iText-questions] Rebuild trailer not found. Original Error: PDF startxref not found

2005-12-21 Thread Bruno Lowagie
Mauro Pelucchi wrote: Ehm... I read information from Oracle DATABASE This information isn't PDF? and after create the PDF --> the error come from the PDFBuilder class. What is the PDFBuilder class? I made the PDF in 3 steps: --> BUILD the header --> BUILD the detail (the PDF is a prin

RE: [iText-questions] Rebuild trailer not found. Original Error: PDF startxref not found

2005-12-21 Thread Mauro Pelucchi
The application is in production... I cannot do this trial... But the application work fine for 2/3 days and afterCRASH!!! It is a web application (on WEBSPHERE cluster). The user insert the order number and my application print the PDF... ...after crash for one user...crash for every user and

Re: [iText-questions] Rebuild trailer not found. Original Error: PDF startxref not found

2005-12-21 Thread Mauro Pelucchi
Ehm... I read information from Oracle DATABASE and after create the PDF --> the error come from the PDFBuilder class. I made the PDF in 3 steps: --> BUILD the header --> BUILD the detail (the PDF is a print of a sales order) --> MERGE the two pdf created... I can open the PDF generater with ACROB

[iText-questions] Re: [itextsharp-questions] Acroform & character spacing,

2005-12-21 Thread Laurent ARNAL
Paulo Soares wrote: That can't be solved as the fields don't have any information on character spacing. You can set the char spacing in the PdfAppearance but it will disappear when you edit the field. You may try to use a text field with the comb option. -Original Message- From: [EMAIL

Re: [iText-questions] Rebuild trailer not found. Original Error: PDF startxref not found

2005-12-21 Thread Bruno Lowagie
Mauro Pelucchi wrote: Hi, in an application that read information from an Oracle database and create a PDF I get this error: Rebuild trailer not found. Original Error: PDF startxref not found Anyone has any idea? The PDF is corrupt. If you read the PDF from Oracle and write the bytes to a fi

RE: [iText-questions] Rebuild trailer not found. Original Error: PDF startxref not found

2005-12-21 Thread Paulo Soares
My usual advice: save the pdf directly from the DB to file and see what you get. Can you open it with Acrobat? > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Mauro Pelucchi > Sent: Wednesday, December 21, 2005 10:23 AM > To: itext-questions > Su

[iText-questions] Rebuild trailer not found. Original Error: PDF startxref not found

2005-12-21 Thread Mauro Pelucchi
Hi, in an application that read information from an Oracle database and create a PDF I get this error: Rebuild trailer not found. Original Error: PDF startxref not found Anyone has any idea? Thanks -- Mauro Pelucchi <[EMAIL PROTECTED]> ---

Re: [iText-questions] Embed pdf in Document

2005-12-21 Thread Bruno Lowagie
[EMAIL PROTECTED] wrote: Hi All, Is it possible to embed a pdf file in an other pdf file that you are currently creating with iText, and if so how? I'm not sure what you mean by embedding. Do you want an attachment inside the PDF like this: writer.addAnnotation( PdfAnnotation.createFileAt

RE: [iText-questions] Is it possible to change line properties of existing PDF using iText?

2005-12-21 Thread Paulo Soares
iText can't process/print dwg files. What you want to do may or may not be possible depending on the pdf. If you can, post one of those pdf for inspection. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Vineet Reynolds > Sent: Wednesday, Decembe

[iText-questions] Embed pdf in Document

2005-12-21 Thread Nick_Van_den_Bleeken
Hi All, Is it possible to embed a pdf file in an other pdf file that you are currently creating with iText, and if so how? I.e. we are generating a PDF with iText using the Document class, and want to inlcude a pdf just like you can include an image, or paragraphs for example. I found the conca

Re: [iText-questions] Is it possible to change line properties of existing PDF using iText?

2005-12-21 Thread Vineet Reynolds
If I'm not wrong, it is easier ( and better ) to make an in-memory copy of the dwg file, make changes to the line properties there, and then print to PDF using iText. That is way better than searching for line properties in a PS or PDF stream. This will also enhance your software structure by allow

Re: [iText-questions] Problem with acrobat 7.0

2005-12-21 Thread Bruno Lowagie
Hilbert Rémy (GFDI) wrote: Hi, I am using your java api to fill a pdf form automatically in a Web environment. So I writen some classes who fill a template. When I create the template with the Adobe acrobat 7.0 Professional the method “setField” does not work … (The fields are not setted).

Re: [iText-questions] Pdf Accessibility with itext

2005-12-21 Thread Bruno Lowagie
Raúl Hoyos wrote: Hello, I'd like to create an accessible pdf document, and to do this I read here: http://www.webaim.org/techniques/acrobat/ that I must create a tagged PDF file (specifying a language for the document, including tags, introducing alternative texts for the images and multimed

Re: [iText-questions] error with fonts

2005-12-21 Thread Bruno Lowagie
Vineet Reynolds wrote: AFM files are known to work everywhere. Have you tried using the same AFM files in other PDFs that are not generated by iText [ try Acrobat or some other PDF generator]. I will be tough trying to reproduce the error, so you may have to give us that extra bit of detail. I

[iText-questions] Problem with acrobat 7.0

2005-12-21 Thread GFDI
Hi,   I am using your java api to fill a pdf form automatically in a Web environment.   So I writen some classes who fill a template. When I create the template with the Adobe acrobat 7.0 Professional the method “setField” does not work …  (The fields are not setted).   And when I

Re: [iText-questions] error with fonts

2005-12-21 Thread Vineet Reynolds
AFM files are known to work everywhere. Have you tried using the same AFM files in other PDFs that are not generated by iText [ try Acrobat or some other PDF generator]. I will be tough trying to reproduce the error, so you may have to give us that extra bit of detail. I also think there are utilit

[iText-questions] Pdf Accessibility with itext

2005-12-21 Thread Raúl Hoyos
Hello, I'd like to create an accessible pdf document, and to do this I read here: http://www.webaim.org/techniques/acrobat/ that I must create a tagged PDF file (specifying a language for the document, including tags, introducing alternative texts for the images and multimedia elements,...). Ho