Re: [iText-questions] How to underline whitespace ?

2010-07-06 Thread 1T3XT info
Leonard Rosenthol wrote: > Why would you underline whitespace? The "real" question may be: how do I create a LineSeparator? For instance: in a TOC you have a title on one side, and a page number on the other side. In between, there can be a dotted line (in iText, this would be created by a Dotte

Re: [iText-questions] AddFileAttachment

2010-07-06 Thread merco
I've upgraded my code to use ver 5.0.2.0 but the problem is still here. I've also tried different code, without succes: Dim Fn As String = IO.Path.GetFileName(Allegato) Dim Fn1 As String = "" Dim B() As Byte Dim ePDF As System.Text.Encoding = System.Text.Encoding.GetEncodi

Re: [iText-questions] How to underline whitespace ?

2010-07-06 Thread Leonard Rosenthol
Why would you underline whitespace? From: Adam Mork [mailto:ad...@windward.net] Sent: Tuesday, July 06, 2010 7:27 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] How to underline whitespace ? Hi, I cannot find a way to underline whitespace by itself. It only works if ther

[iText-questions] How to underline whitespace ?

2010-07-06 Thread Adam Mork
Hi, I cannot find a way to underline whitespace by itself. It only works if there is a non-whitespace chunk following the whitespace chunk in the phrase. Is this expected behavior ? Any workarounds ? Thanks Adam Mork --

Re: [iText-questions] Append pdf to one created by ByteArrayOutputStream

2010-07-06 Thread QuietRiot
Figured it out: It was this line here: PdfCopyFields copy = new PdfCopyFields(buffer2); -- View this message in context: http://itext-general.2136553.n4.nabble.com/Append-pdf-to-one-created-by-ByteArrayOutputStream-tp2279726p2279944.html Sent from the iText - General mailing list archive at

Re: [iText-questions] Word EPS and PDF

2010-07-06 Thread Leonard Rosenthol
You should talk to the providers of your Word->PDF converter about what options they provide From: Igor Erdoiza [mailto:igor.erdo...@gmail.com] Sent: Tuesday, July 06, 2010 1:08 PM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Word EPS and PDF You're really helping

Re: [iText-questions] Can I have differnt Page sizes in a single document using Itextsharp?

2010-07-06 Thread 1T3XT info
kaiomarz engineer wrote: > How can I add different sized Pages to a PDF using Itextsharp. > > When im creating a document, the Pagesize is set for an entire document > in the constructor itself. But there's a method to change the page size. The new page size will be active on the NEXT page. --

Re: [iText-questions] Word EPS and PDF

2010-07-06 Thread 1T3XT info
Igor Erdoiza wrote: > If I knew that I could insert a textbox in the Word dcoument with an > associated text (respecting a given prefix) and then when I treated the > PDF, I would be able to locate that textbox, I think I would be able to > replace it as I needed. I'm sorry, I only know how to

[iText-questions] Can I have differnt Page sizes in a single document using Itextsharp?

2010-07-06 Thread kaiomarz engineer
How can I add different sized Pages to a PDF using Itextsharp. When im creating a document, the Pagesize is set for an entire document in the constructor itself. I have to create a report in PDF, whose page sizes will change dynamically ,e.g : first page will be a A4, second a Letter,third A4-land

Re: [iText-questions] Word EPS and PDF

2010-07-06 Thread Igor Erdoiza
You're really helping me. I'm free to decide what kind of element has to be inserted in the word document. I mean, I can insert what I want in the word document (textbox, table... with a known prefix...) and then, be able to manage that element in the PDF. The problem is that I don't know which is

Re: [iText-questions] Word EPS and PDF

2010-07-06 Thread Leonard Rosenthol
Actually, more than likely, the EPS will be ignored by the converter since the only way to process it properly is with a Postscript interpreter. This is made even more complex by the fact that the most common use for EPS in Word is _NOT_ as a graphic BUT as an instruction set for Acrobat Distil

Re: [iText-questions] Append pdf to one created by ByteArrayOutputStream

2010-07-06 Thread QuietRiot
Thanks for the quick response. I have the latest addition of iTextinAction as well. but I still seem to be having issues. Unfortunately I'm not currently using a development environment so all I get is a blank white screen whenever there are errors. It has to do with the code below. response.se

Re: [iText-questions] Print Issue

2010-07-06 Thread Mayito
Hi, Actually i realized that the paper size in the printer is set to A4, i'm guessing there is no way to modify this parameter via itext, however i tried modifyine the code like this and resizing de templates to A4 and the result is "legible". copy.setPageSize(PageSize.LETTER); PdfWriter test

Re: [iText-questions] Append pdf to one created by ByteArrayOutputStream

2010-07-06 Thread 1T3XT info
QuietRiot wrote: > > Please help. I'm new to this. > > I'm currently creating a PDF file using buffer (byteArrayOutputStream) but I > also have a pdf with acrofields that I want to add to the beginning of this. > How can I do this? Concatenating forms is done with PdfCopyFields. You'll need two

Re: [iText-questions] Word EPS and PDF

2010-07-06 Thread 1T3XT info
Igor Erdoiza wrote: > Thank you very much for your help! > > I've debugged my example and the PDF does not have an acrofield > representing the EPS. That's not good news. > So, as you have said, I will start prying and > learning the usage of the parser :) One of the extra problems,

[iText-questions] Append pdf to one created by ByteArrayOutputStream

2010-07-06 Thread QuietRiot
Please help. I'm new to this. I'm currently creating a PDF file using buffer (byteArrayOutputStream) but I also have a pdf with acrofields that I want to add to the beginning of this. How can I do this? response.setContentType("application/pdf"); Document document = new Document(); ByteArrayO

Re: [iText-questions] Word EPS and PDF

2010-07-06 Thread Igor Erdoiza
Thank you very much for your help! I've debugged my example and the PDF does not have an acrofield representing the EPS. So, as you have said, I will start prying and learning the usage of the parser :) I will look for the book you mentioned. Thanks again for your help. Igor

Re: [iText-questions] AddFileAttachment

2010-07-06 Thread Leonard Rosenthol
I believe that this bug in iText was fixed in the latest version (5.x). Leonard -Original Message- From: merco [mailto:d.merca...@email.it] Sent: Tuesday, July 06, 2010 11:01 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] AddFileAttachment i'm using iTextSharp

Re: [iText-questions] text-as-string extraction from pdf to applet

2010-07-06 Thread Leonard Rosenthol
Then it sounds like the applet is NOT signing the PDF file as a proper/valid PDF signature – but instead is doing simple signing of text. In that case, I don’t see how it can support PDF. You need to contact the providers of that applet. Leonard From: Paolo Russian [mailto:paolo.russ...@italt

Re: [iText-questions] Word EPS and PDF

2010-07-06 Thread Leonard Rosenthol
You will need to check with ASPOSE about how their converter handles the embedded EPS, since AFAIK, Adobe's converters are the only ones that properly handle embedded EPS in Word. Leonard From: Erdoiza Ursua, Igor [mailto:igor.erdo...@d-core.es] Sent: Tuesday, July 06, 2010 9:23 AM To: itext-qu

[iText-questions] AddFileAttachment

2010-07-06 Thread merco
i'm using iTextSharp 4.1.6.0 with this code Dim Fn As String = IO.Path.GetFileName(Allegato) Dim Fs As PdfFileSpecification = PdfFileSpecification.FileEmbedded(_Dest.Writer, Allegato, Fn, Nothing) _Dest.AddFileAttachment(Fn, Fs) And I'm trying to get attachment in Acrobat reader with this scr

Re: [iText-questions] text-as-string extraction from pdf to applet

2010-07-06 Thread Paolo Russian
Forgive me, this is not the documentation about itext or seam, this is the documentation of the applet I need to pass the pdf-as-string to. An applet to sign files with personal certificate. I did a test right now, and commenting my bean wich tries to binary read the pdf file and convert it in u

Re: [iText-questions] Word EPS and PDF

2010-07-06 Thread 1T3XT info
Erdoiza Ursua, Igor wrote: > The issue is that I’m trying to convert a Word document that includes an > EPS as image to a PDF that includes a signing field (Acrofield) > representing the EPS from the doc. If you have a PDF with an AcroField, you can get its position with the method getFieldPosi

[iText-questions] Word EPS and PDF

2010-07-06 Thread Erdoiza Ursua, Igor
Hi everyone: First of all, I want to apologize for my English. I have to convert a Word document to PDF in Java... it's not as simple as that :-). I got it with ASPOSE API. The issue is that I'm trying to convert a Word document that includes an EPS as image to a PDF th

Re: [iText-questions] SetFullCompression results in unreadable PDF

2010-07-06 Thread Teun Ham
Thanks Paulo, Your suggestions works like a charm! Updated VB.Net code: [code] ... Dim output As New System.IO.FileStream(sOutputFileName, IO.FileMode.Create) Dim b As Byte() = ms2.ToArray output.Write(b, 0, b.Length) ... [/code] -- View this message in context: http://itext-general.2136553.n

Re: [iText-questions] text-as-string extraction from pdf to applet

2010-07-06 Thread 1T3XT info
Paolo Russian wrote: > > This applet accepts the pdf if passed as string: the documentation says > literally: > > Parameters: > > DocumentURL: String value containing the document url to be signed. // > IT WORKS, giving parameter > [ or you can use ..] > Document: String value containing the

Re: [iText-questions] text-as-string extraction from pdf to applet

2010-07-06 Thread Paolo Russian
But the prioblem is that it works with given pdf url or path, there must be something wrong during the string conversion.. because I must convert that to a string sooner or later! I'm also trying to get pdf file in binary format but in the moment I convert it in a string it get suddendly corrup

Re: [iText-questions] Add new field to existing PDF

2010-07-06 Thread 1T3XT info
szczupak wrote: > Hi all, > Does anyone know how to add new text field to existing document using Itext > ? I tried resolve this just as in this tutorial > http://www.ujihara.jp/iTextdotNET/examples/AcroForm.cs but new field wasn't > visible. That's an iTextdotNET example. iTextdotNET isn't supp

Re: [iText-questions] Fwd: text-as-string extraction from pdf to applet

2010-07-06 Thread 1T3XT info
Paolo Russian wrote: > To make it short, extracting bytes from the pdf I can't get all of the > characters and get a lot of ?? instead of the correct original ones. Your long text contains a lot of sideways and terminology I've never heard of. This is confusing AND in the end the question isn

Re: [iText-questions] SetFullCompression results in unreadable PDF

2010-07-06 Thread Paulo Soares
This line is wrong: output.Write(ms2.GetBuffer(), 0, ms2.GetBuffer.Length) it should be (in C#): byte[] b = ms2.ToArray(); output.Write(b, 0, b.Length) Paulo From: Teun Ham [teun...@hotmail.com] Sent: Tuesday, July 06, 2010 1:10 PM To: itext-questions@

Re: [iText-questions] text-as-string extraction from pdf to applet

2010-07-06 Thread Paulo Soares
Unless you code it as base64 but the pdf is still binary just coded differently. Paulo From: Leonard Rosenthol [lrose...@adobe.com] Sent: Tuesday, July 06, 2010 1:10 PM To: paolo.russ...@italtbs.com; Post all your questions about iText here Subject: Re: [i

Re: [iText-questions] text-as-string extraction from pdf to applet

2010-07-06 Thread Leonard Rosenthol
PDF is a binary file format - you can't treat it as a string. -Original Message- From: Paolo Russian [mailto:paolo.russ...@italtbs.com] Sent: Tuesday, July 06, 2010 5:32 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] text-as-string extraction from pdf to applet H

[iText-questions] SetFullCompression results in unreadable PDF

2010-07-06 Thread Teun Ham
To all, This is my first-time to post on this mailing list: We are using Visual Studio.Net 2008 and iTextSharp (version 4.1.6.0) to add a Barcode39 to our existing PDFs. The following routine will create a new PDF, based upon an existing PDF, with a Barcode. The only thing which is strange: whe

Re: [iText-questions] Search & replace in iText

2010-07-06 Thread 1T3XT info
Lu, Tao (MOH) wrote: > Hi, Guys, > > I have an existing PDF doc, I need to replace all occurrence of "USA" to > "CANADA". Any idea how to do that in iText? You won't find any software that can achieve that, due to the very nature of PDF. If you want to make sure, please read ISO-32000-1, and y

Re: [iText-questions] itext TIFF with an old JPEG compression

2010-07-06 Thread 1T3XT info
selc...@online.de wrote: > Hello, > > can I convert an TIFF Image with an Old JPeg Compression into a PDF with the > new itext library? > Where can i find a list, which compressions the itext can convert? There's no such list. Also it isn't clear if you already tried to create a com.itextpdf.t

Re: [iText-questions] itext TIFF with an old JPEG compression

2010-07-06 Thread Leonard Rosenthol
Given the OJPEG was a bad idea to start with and it’s support by ANY TIFF consumer is limited – why not just use an image conversion solution to convert them all to modern TIFFs (or some other format) and then use iText to process them accordingly? Leonard From: selc...@online.de [mailto:selc.

Re: [iText-questions] Reading content of Inline PDF

2010-07-06 Thread Leonard Rosenthol
This has nothing to do with iText - you should be asking this on a forum dedicated to PDF and/or Acrobat/Reader development. From: Senthilvel [mailto:mailtosenthil...@gmail.com] Sent: Tuesday, July 06, 2010 3:15 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Reading conte

Re: [iText-questions] text in acrofield

2010-07-06 Thread 1T3XT info
lukasjob wrote: > Hi 1T3XT, I tried using a monospace font just as a test, and it works fine > but I must use Verdana it's a project requirement. > Please could you be more specific about that COMB property? I couldn't find > any example of that. Listing 8.7 in the second edition of iText in Actio

Re: [iText-questions] Possible bug using ENCRYPTION_AES_128 and DO_NOT_ENCRYPT_METADATA

2010-07-06 Thread Paulo Soares
I'll look into this. Paulo From: smilyface [softw...@heindoerfer.com] Sent: Tuesday, July 06, 2010 10:13 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Possible bug using ENCRYPTION_AES_128 and DO_NOT_ENCRYPT_METADATA There s

Re: [iText-questions] What type of links it is?

2010-07-06 Thread 1T3XT info
Vajahat Ali wrote: > http://itext-general.2136553.n4.nabble.com/file/n2278254/CONTENTSDOC.pdf > CONTENTSDOC.pdf > > Hi Itext: > > I have attached a one page pdf file which has some links. > Kindly tell me how to get the url of that links. It seems to be some sort of > form. Not really. The link

Re: [iText-questions] Possible bug using ENCRYPTION_AES_128 and DO_NOT_ENCRYPT_METADATA

2010-07-06 Thread smilyface
There seems to a problem with the parameter PdfWriter.EMBEDDED_FILES_ONLY too. Check out the test file. Best regards, Frank http://itext-general.2136553.n4.nabble.com/file/n2279255/TestMain.java TestMain.java -- View this message in context: http://itext-general.2136553.n4.nabble.com/Possibl

[iText-questions] Add new field to existing PDF

2010-07-06 Thread szczupak
Hi all, Does anyone know how to add new text field to existing document using Itext ? I tried resolve this just as in this tutorial http://www.ujihara.jp/iTextdotNET/examples/AcroForm.cs but new field wasn't visible. -- View this message in context: http://itext-general.2136553.n4.nabble.com/A

[iText-questions] Fwd: text-as-string extraction from pdf to applet

2010-07-06 Thread Paolo Russian
Hello, I have a closed source java applet to digitally sign files with usb keys /cards etc, and I'm adding this to our itext-generated pdfs section of our jboss seam application. This applet works by feeding it by a real url of a real pdf file or by providing a string-representation of the pdf fil

[iText-questions] text-as-string extraction from pdf to applet

2010-07-06 Thread Paolo Russian
Hello, I have a closed source java applet to digitally sign files with usb keys /cards etc, and I'm adding this to our itext-generated pdfs section of our jboss seam application. This applet works by feeding it by a real url of a real pdf file or by providing a string-representation of the pdf f

[iText-questions] itext TIFF with an old JPEG compression

2010-07-06 Thread selcuks
Hello, can I convert an TIFF Image with an Old JPeg Compression into a PDF with the new itext library? Where can i find a list, which compressions the itext can convert? Thanks. -- This SF.net email is sponsored by

[iText-questions] Reading content of Inline PDF

2010-07-06 Thread Senthilvel
Hi , I am having two pages namely Main.aspx and View.aspx page. I am having iFrame to display the inline pdf in Main.Aspx page. The SRC of iframe is view.aspx page. In load event of view.aspx page, i am loading the content of document from the database. View.aspx-Page Load event