Re: [iText-questions] Missing document root problem reading PDF

2015-03-31 Thread Paulo Soares
(Please use StackOverflow to post a question. The mailing-list is being abandoned) Using what version of iText? Paulo On Tue, Mar 31, 2015 at 3:50 PM, Richard Tallent richard.tall...@erm.com wrote: Hi, I’m trying to read these three PDF files, and iText comes back with the same error:

Re: [iText-questions] Need urgent help

2015-03-01 Thread Paulo Soares
So you want to make an omelet without any eggs. Those fonts don't have any chinese characters inside, your task is impossible. You'll need another font, arialuni.ttf for example. Paulo On Sat, Feb 28, 2015 at 7:42 PM, Ashesh K Sinha sinhaashe...@gmail.com wrote: Hi All, I need one urgent help

Re: [iText-questions] generated pdf containing the Thai characters on Windows 2008 different form on Win 2003

2014-11-12 Thread Paulo Soares
That's a font issue, currently itext doesn't support Indic languages (there's work in progress in this area). If it works somehow you got lucky. Paulo On Wed, Nov 12, 2014 at 9:52 AM, Jing F Fan fjfj...@cn.ibm.com wrote: Dear all, When we used iText to generate pdf containing the Thai

Re: [iText-questions] Wrong Arabic vocalization placement

2014-10-16 Thread Paulo Soares
There's work being done in that area. It will require the use the GPOS table to place precisely the text. The font processing is being redone, this year. Paulo On Thu, Oct 16, 2014 at 5:57 PM, vadamovsky vadamov...@gmail.com wrote: I'm using iTextSharp v5.5.3. This is my code: /

Re: [iText-questions] Extracting Text

2014-10-09 Thread Paulo Soares
The text in not extractable and not even Acrobat can do it. When I export the file to a word doc it places an image, not text. Paulo On Wed, Oct 8, 2014 at 7:36 PM, FDnC Red fdnc...@yahoo.com wrote: How in the world do I extract text from this PDF? It all comes out as gibberish non-printable

Re: [iText-questions] Identity-H is notworking in Unix

2014-09-30 Thread Paulo Soares
FontFactory.getFont() is returning the default font. Make sure that you've registered the right font directories. Paulo On Tue, Sep 30, 2014 at 3:19 PM, Dhulipd2984 dhulipudi.purn...@gmail.com wrote: Hi, We are generating tagged PDF using iText version 5.5.1 , we are using Identity-H

Re: [iText-questions] Identity-H is notworking in Unix

2014-09-30 Thread Paulo Soares
The font name you requested doesn't match any of the registered fonts. Register explicitly the directory where the font is. I can't help you more, you know the font name and the fonts you have, I don't. Paulo On Tue, Sep 30, 2014 at 4:59 PM, Dhulipd2984 dhulipudi.purn...@gmail.com wrote: Hi ,

Re: [iText-questions] Arabic text in itext PDF is displayed Blank in Solaris OS

2014-09-26 Thread Paulo Soares
The OS doesn't matter as long as you can load the font and the text that you are feeding iText with is really arabic instead of garbage which is quite common when extracting text from a database with the wrong encoding. Paulo. On Fri, Sep 26, 2014 at 6:20 AM, Patricia Sandra Kagoo

Re: [iText-questions] Table 'loca' does not exist (Android)

2014-09-14 Thread Paulo Soares
command, and the error is only triggered when the document is closed. Do you think there might be a simple way of checking the font at the moment I am creating the font? Best regards, Michael Am 14.09.2014 um 01:12 schrieb Paulo Soares: That's a problem with the font, it contains color bitmaps

Re: [iText-questions] Table 'loca' does not exist (Android)

2014-09-13 Thread Paulo Soares
That's a problem with the font, it contains color bitmaps and won't even open in windows. Paulo On Sat, Sep 13, 2014 at 10:17 PM, Michael Totschnig mich...@totschnig.org wrote: Hello, For generating PDFs from text input by user on Android I am using the systems TTF files found in

Re: [iText-questions] size of the itext barcode decreases when printed on pdf generated with insetsoft reporting libraries

2014-06-19 Thread Paulo Soares
I know that I'm answering to spam but it's interesting to note that even commercial iText is a cheaper way to produce linear and 2D barcodes even if you don't need the PDF part. Paulo On Thu, Jun 19, 2014 at 4:48 AM, babard arronwa...@gmail.com wrote: Hi, How about the java code 128

Re: [iText-questions] Can't get destination page in SimpleBookmark.getBookmark(reader)

2014-06-19 Thread Paulo Soares
You have named destinations in the PDF. The line Named=table.4 points to a dictionary/array of names that maps the names to pages. You may call PdfReader.consolidateNamedDestinations() to convert the names to page numbers and have the expected Page=?. Paulo On Thu, Jun 19, 2014 at 11:35 PM,

Re: [iText-questions] Problems when using iTextSharp in a multithreaded application.

2014-05-28 Thread Paulo Soares
I suspect that the embedding of the full font file is not thread safe, only the subset. I'll check it out. Paulo On Wed, May 28, 2014 at 11:02 AM, iText mailing list i...@1t3xt.infowrote: On 5/28/2014 11:11 AM, Kostas wrote: Note that we are using iTextSharp version 5.4.5.0. Hmm...

Re: [iText-questions] Character has wrong shape in the pdf

2014-01-07 Thread Paulo Soares
The character is wrong or is an alternate representation? For the moment iText doesn't look at the GSUB table in the font to get the characters. Paulo On Mon, Jan 6, 2014 at 9:31 PM, Bill Groom bgr...@razcall.com wrote: Hello, I just discovered that I forgot to add a subject to the

Re: [iText-questions] Fonts are merged although they should not

2013-08-28 Thread Paulo Soares
PdfSmartCopy will consolidate structures if they are the same and wouldn't do it for this case (they are different). PdfStamper will never consolidate structures. Please provide the original PDF and a small standalone example so that the eventual problem can be reproduced. Paulo On Wed, Aug 28,

Re: [iText-questions] Passing Credentials to create instance of the image

2013-08-26 Thread Paulo Soares
Load the image first to a byte array using whatever Java has to authenticate. Paulo On Mon, Aug 26, 2013 at 2:44 PM, balarkadsrk balarkad...@gmail.com wrote: Hi, I need to generate an image in the PDF from a url. The url from which i need to get the image requires authentication. While i am

Re: [iText-questions] Non-breaking Space Problem

2013-08-21 Thread Paulo Soares
That's a limitation in Document.add(). Use ColumnText and it will work correctly. Paulo On Wed, Aug 21, 2013 at 3:33 PM, Kenworthy, Rob rob.kenwor...@cra-arc.gc.ca wrote: Hello, ** ** We are having an issue with non-break spaces. I'll attach a test case and provide a

Re: [iText-questions] NullPointer in itext 5.4.3

2013-08-14 Thread Paulo Soares
Please post your PDF, I suspect it is broken. 5.4.3 checks a lot more things than 2.1.7. Paulo On Wed, Aug 14, 2013 at 7:03 PM, eugene eugen.ra...@gmail.com wrote: So I am trying to do a very simple read of a pdf file. As simple as this: public String getSource(String pdfLink) throws

Re: [iText-questions] [Some questions about text in PDF]

2013-07-30 Thread Paulo Soares
First, check if Acrobat can extract the text. If it can and iText can't please post the PDF. We'll talk after that. Paulo On Tue, Jul 30, 2013 at 2:05 PM, Ke Xu xu059...@gmail.com wrote: Hi guys: I meet a problem when i try to extract CJK(Chinese, Japanese, Korean)text from PDF. Maybe

Re: [iText-questions] Form is messed up with .CopyAcroForm and itextsharp - has been working with 5.1.2.0

2013-07-16 Thread Paulo Soares
It would help to have the PDFs. Paulo On Tue, Jul 16, 2013 at 9:49 AM, LIHE l...@linck-hvt.com wrote: I am combinding 2 pdfs. One with AcroForms inside, one with some action inside, with the following lines of code. It has been working with 5.1.2.0 - now I updated to 5.4.2.0 and the forms

Re: [iText-questions] ImageRenderInfo.getImage() return empty bytes

2013-07-12 Thread Paulo Soares
You'll have to provide the PDF. Paulo On Fri, Jul 12, 2013 at 1:03 AM, ashish sog...@gmail.com wrote: Hi, I am using ImageRenderInfo for parsing PDFs and getting ImageBytes but for my perticular PDF file which has one big PNG image in it nothing else, the ImageRenderInfo.getImage() gives

Re: [iText-questions] Signed PDF fails to verify in iText (Java), but succeeds in iTextSharp and Acrobat Reader

2013-07-04 Thread Paulo Soares
Make sure that you are using BouncyCastle 1.49. There was a problem with 1.48 with some certificates. Paulo On Thu, Jul 4, 2013 at 5:40 PM, Stephan Wagner (calac) stephan.wag...@calac.net wrote: Hi, first of all I'm not what one calls a digital signature expert but I'm wondering if somebody

Re: [iText-questions] Bombardier aircraft manual index on iPad

2013-06-28 Thread Paulo Soares
GoodReader may use iText but we've nothing to do with it. Paulo On Thu, Jun 27, 2013 at 8:34 PM, David Gray wol...@live.co.za wrote: Good day My query is directed to Paulo I am trying to display a group of pdf files containing the Bombardier AFM for the CRJ 200/700 in the GoodReader

Re: [iText-questions] [SPAM] Error on PDF decryption

2013-06-26 Thread Paulo Soares
You'll have to provide more information, like a complete stack strace. Paulo On Wed, Jun 26, 2013 at 3:14 PM, Valentin Ivanov vliva...@bobs.bg wrote: Hi, decryption/encryption using BC 1.46 an iText 5.2.1 is working fine. Encryption using BC 1.49 and iText 5.4.2 is working fine, but

Re: [iText-questions] Extract CMap from pdf file!

2013-06-26 Thread Paulo Soares
This is an easy one, the ToUnicode cmap is in the font dictionary. You can get the font dictionary from the page resources. Of course, there's a direct way to extract text from a PDF using iText without having to reinvent the wheel. Paulo On Wed, Jun 26, 2013 at 5:30 PM, Mohammed Mostafa

Re: [iText-questions] iText 5.4.2 / requirements

2013-06-26 Thread Paulo Soares
You'll need at least the Java jdk 1.5. About the IDE, that's your choice: I use Netbeans, Bruno uses Eclipse, others use IntelliJ IDEA, etc. Paulo 2013/6/26 Robin Tremblay (BIA) robin.trembl...@justice.gouv.qc.ca: Hi, I would like to use iText 5.4.2 in my Java application. What are the

Re: [iText-questions] Extract CMap from pdf file!

2013-06-26 Thread Paulo Soares
Do you get the right characters, irrespective of ordering when using PdfTextExtractor? If you don't, the cmap won't help you as it's already used in text extraction. Can you post a PDF? Paulo On Wed, Jun 26, 2013 at 6:20 PM, Mohammed Mostafa mohammed_mostafa1...@hotmail.com wrote: Hello Mr

Re: [iText-questions] font too fat with WINANSI encoding and cannot be copy pasted with IDENTITY_H encoding

2013-06-23 Thread Paulo Soares
The encoding has nothing to do with the way the fonts are displayed. All the encoding used in iText allow for text extraction, maybe the problem is in the viewer (if it's not Acrobat). I suppose you are using a recent iText version and not simulating bold and embedding the fonts. The usual advice

Re: [iText-questions] NumberFormatException and StringIndexOutOfBoundsException

2013-06-06 Thread Paulo Soares
I can't render your PDF with Acrobat. Paulo On Thu, Jun 6, 2013 at 10:36 AM, Dmitry Katsubo dm...@mail.ru wrote: Hi Michael, Indeed I was using outdated version if iText, sorry for that. After update to latest 5.4.2, NumberFormatException is still there, check test PDF. Tested with: java

Re: [iText-questions] PDFStamper weird situation.

2013-06-04 Thread Paulo Soares
Call PdfStamper.Writer.CloseStream=false to keep the stream open after PdfStamper.Close(). Paulo On Tue, Jun 4, 2013 at 9:10 PM, k...@dataverse.gr wrote: I've commented out pdfStamper.Close() because when executed it seemed to close the memory stream, so I couldn't save it to a file anymore

Re: [iText-questions] itext certificateinfo encoding problem

2013-05-27 Thread Paulo Soares
This may be something that worked correctly in BouncyCastle 1.47, was changed in 1.48 and will be reverted to the old behavior in the upcoming 1.49. I say correctly because there's no right way of doing it as discussed in a BC thread. Please post your PDF. Paulo On Mon, May 27, 2013 at 10:25 AM,

Re: [iText-questions] iText for iOS

2013-05-22 Thread Paulo Soares
Thare's also http://xamarin.com/monotouch. It's cross platform for iOS, Android and Windows devices. Paulo On Wed, May 22, 2013 at 10:59 AM, TvT tvtre...@nepatec.de wrote: No problem doing that offline. I have seen (custom) solutions offering that (working offline) and using the html5/image

Re: [iText-questions] iText for iOS

2013-05-22 Thread Paulo Soares
whether it be direct, indirect or consequential, arising from information made available and actions resulting there from ** ** *From:* Paulo Soares [mailto:pgpsoa...@gmail.com] *Sent:* 22 May 2013 12:43 *To:* Post all your questions about iText here *Subject:* Re: [iText-questions] iText

Re: [iText-questions] iText for iOS

2013-05-22 Thread Paulo Soares
** ** *From:* Paulo Soares [mailto:pgpsoa...@gmail.com] *Sent:* 22 May 2013 18:12 *To:* Post all your questions about iText here *Subject:* Re: [iText-questions] iText for iOS ** ** This is for generating PDFs in the device, offline. iTextSharp would reside in the device. Paulo

Re: [iText-questions] iText for iOS

2013-05-22 Thread Paulo Soares
or dissemination is prohibited. DiPAR SYSTEMS (Pty) Ltd accepts no liability whatsoever for any loss whether it be direct, indirect or consequential, arising from information made available and actions resulting there from ** ** *From:* Paulo Soares [mailto:pgpsoa...@gmail.com] *Sent

Re: [iText-questions] Fwd: problem when parsing traditional chinese

2013-05-19 Thread Paulo Soares
Fixed. Get it from the SVN if you're in a hurry. Paulo On Fri, May 10, 2013 at 11:55 AM, Paulo Soares pgpsoa...@gmail.com wrote: The font encoding is described in this case in the /CIDSystemInfo key and iText is looking elsewhere for it. It will be fixed. Paulo On Fri, May 10, 2013 at 2

Re: [iText-questions] New revision issues

2013-05-17 Thread Paulo Soares
The first signature is not invalidated, it's just Acrobat 's way of saying it's not the last. I think Acrobat started behaving like this in 8. If you extract the first revision it will still verify ok. Paulo On Fri, May 17, 2013 at 8:26 AM, twain ant.mari...@gmail.com wrote: Hi all, I have a

Re: [iText-questions] Fwd: problem when parsing traditional chinese

2013-05-10 Thread Paulo Soares
The font encoding is described in this case in the /CIDSystemInfo key and iText is looking elsewhere for it. It will be fixed. Paulo On Fri, May 10, 2013 at 2:18 AM, jian li lijian@gmail.com wrote: 26442.pdfhttps://docs.google.com/file/d/0B_8Un3D_FFhlNDlsQnUyblVIamM/edit?usp=drive_web

Re: [iText-questions] bug/itextsharp/wrong colors in extracted picture from PDF

2013-05-10 Thread Paulo Soares
Please supply the pdf. Paulo On Fri, May 10, 2013 at 12:36 AM, Pavel Přeček pavel.pre...@seznam.cz wrote: Hello All, I'd like to report a bug on wrong colorspace in exported pictures from PDF. Please find attached samples. Image properties in my PDF are Colorspace: /DeviceCMYK

Re: [iText-questions] PDF file size limit in iText

2013-05-06 Thread Paulo Soares
The limitation was lifted in 5.2.0. Paulo On Mon, May 6, 2013 at 9:41 AM, naveen ks naveen...@gmail.com wrote: Hi All, I have a requirement to process PDF files of larrge size (2GB+) and I was reading that iText 2.x had a limitation on the file size to 2GB. Can anyone let me know if this

Re: [iText-questions] problem with Lanuage Support

2013-04-17 Thread Paulo Soares
Pashto is not supported but it doesn't look that difficult to change ArabicLigaturizer.cs to make it work. Paulo On Tue, Apr 16, 2013 at 10:21 AM, zafar ali zafar_k...@yahoo.com wrote: Dear Sir I am working with itextSharp in asp.net C#. i generated a pdf File in Arabic, Farsi it is ok.

Re: [iText-questions] Some issues with PdfPKCS7.java concerning cert parsing

2013-04-15 Thread Paulo Soares
I'm revising the verification, there are some contradictory statements from users (and from BC). Next week I'll have a solution. Paulo On Mon, Apr 15, 2013 at 10:11 AM, Stefan Santesson ste...@aaa-sec.com wrote: To clarify; From: Stefan Santesson ste...@aaa-sec.com Reply-To: Post all your

Re: [iText-questions] [SPAM] Re: iText PdfPKCS7.verify somethig wrong !!!

2013-04-11 Thread Paulo Soares
BC 1.48 has the patch in place. If it fails it's something else. I'll check. Paulo On Thu, Apr 11, 2013 at 12:25 PM, mkl m...@wir-sind-cool.org wrote: jackd, jackd wrote I'm running into the same issue where some pdfs are reported as modified, even when they haven't been modified. Here's

Re: [iText-questions] Stamper not closing pdf?

2013-04-10 Thread Paulo Soares
Maybe there was an exception that you are not catching. Paulo On Wed, Apr 10, 2013 at 7:22 AM, Mester József mesterj...@gmail.com wrote: Hello I have a little pdf filling program. Data come from csv . Pdf filled with no error. But when I want open there is an error message: Trailer not

Re: [iText-questions] Stamper not closing pdf?

2013-04-10 Thread Paulo Soares
Are you sure PdfSamper.close() is reached? All the incomplete file cases that we know of are caused by uncatch and usually eaten exceptions. Paulo On Wed, Apr 10, 2013 at 2:45 PM, Mester József mesterj...@gmail.com wrote: 2013.04.10. 15:27 keltezéssel, Paulo Soares írta: Maybe

Re: [iText-questions] Fwd: Issue in rendering Custom Urdu Font

2013-03-26 Thread Paulo Soares
PDF library. The only difference is that their Library has feature to use HTML/CSS font code and specify tag by using fontFamily which made it work. How could it be done in iTextSharp? /A On Mon, Mar 25, 2013 at 8:35 PM, Paulo Soares pgpsoa...@gmail.com wrote: I mean that to display

Re: [iText-questions] ICC Profile for Images

2013-03-26 Thread Paulo Soares
Please attach the image, don't paste it in the mail. Paulo On Tue, Mar 26, 2013 at 2:43 PM, Mandeep mmashi...@bhs-consultants.comwrote: Hi, Here is an image with the sRGB IEC61966-2.1(8bpc) profile , Thanks again for looking into it. Regards Mandeep Please provide an image with that

Re: [iText-questions] ICC Profile for Images

2013-03-26 Thread Paulo Soares
understand, Regards Mandeep On 2013-03-26, at 12:05 PM, Paulo Soares pgpsoa...@gmail.com wrote: I'm sorry to insist but please zip the image to make sure that it's not changed by the mail client. Paulo On Tue, Mar 26, 2013 at 3:03 PM, Mandeep mmashi...@bhs-consultants.com wrote: Here

Re: [iText-questions] Fwd: Issue in rendering Custom Urdu Font

2013-03-26 Thread Paulo Soares
this approach solve the issue? http://www.mindfiresolutions.com/HTML-to-PDF-conversion-using-iTextsharp-1088.php On Tue, Mar 26, 2013 at 3:17 PM, Paulo Soares pgpsoa...@gmail.com wrote: Your font doesn't have the required chars. If it works elsewhere it's because another font is being used

Re: [iText-questions] Issue in rendering Custom Urdu Font

2013-03-25 Thread Paulo Soares
From what I can see that font only has the isolated arabic forms. Paulo On Mon, Mar 25, 2013 at 8:14 AM, Adnan Siddiqi kad...@gmail.com wrote: Hi I had asked this question on Stackoverflow before I cane to know about mailing list. My concern is posted here:

Re: [iText-questions] Fwd: Issue in rendering Custom Urdu Font

2013-03-25 Thread Paulo Soares
the font. On Mon, Mar 25, 2013 at 2:49 PM, Paulo Soares pgpsoa...@gmail.com wrote: From what I can see that font only has the isolated arabic forms. Paulo On Mon, Mar 25, 2013 at 8:14 AM, Adnan Siddiqi kad...@gmail.com wrote: Hi I had asked this question on Stackoverflow before I cane

Re: [iText-questions] ICC Profile for Images

2013-03-25 Thread Paulo Soares
Please provide an image with that profile so that the problem can be reproduced. Paulo On Mon, Mar 25, 2013 at 6:08 PM, Mandeep mmashi...@bhs-consultants.com wrote: Hi, I am currently working on generating pdf using Itext, and I am not able to save the ICC profile of the image in the pdf that

Re: [iText-questions] Scale the width of a Phrase

2013-03-23 Thread Paulo Soares
Chunk.setHorizontalScaling() Paulo On Sat, Mar 23, 2013 at 5:39 PM, Juan Pedro Muñoz Gea juanp@upct.es wrote: Hi, Is it possible to scale the width of a Chunk, a Phrase or a Paragraph? That is, I would like to insert a Phrase in one document whose width is the 70 % of its original

Re: [iText-questions] Empty output when using PdfTextExtractor.getTextFromPage

2013-03-22 Thread Paulo Soares
It should work. Check that you have itext-asian.jar in your classpath. It's in the download bundle extrajars. Paulo On Fri, Mar 22, 2013 at 12:53 AM, Frederic Laruelle f...@inkwireapp.com wrote: Having trouble extracting text from a particular pdf doc with itext: here's my java (Groovy) code

Re: [iText-questions] [SPAM] Re: Differences btw text extraction from iText and Acrobat Reader?

2013-03-20 Thread Paulo Soares
Fixed in the SVN. Paulo On Wed, Mar 20, 2013 at 12:17 PM, mkl m...@wir-sind-cool.org wrote: wwkloo, wwkloo wrote When create the PDF with another program, the text can be extracted by iText and Acrobat Reader XI correctly. - 1: 0xD841 0xDD47 - 2: 0x92DB However, the character is not

Re: [iText-questions] iTextSharp ? - wide charachters

2013-03-12 Thread Paulo Soares
You need a substitution font. Look for AcroFields.AddSubstitutionFont(). thsi assuming you have a static form. If the form is dynamic you'll need XFAWorker. Paulo On Mon, Mar 11, 2013 at 9:04 PM, Paul Hermans paul.herm...@benemtech.com wrote: I am attempting to fillin a form field with the

Re: [iText-questions] Still no hint

2013-03-07 Thread Paulo Soares
Here the author of the mystic 1. This value is the page height to position the view at the top. As the destination page size is generally not known the 1 was an arbitrary big enough value greater then the destination page. Why -32768 would work better is a mystery to me. Paulo On Mar 7,

Re: [iText-questions] LTV signature in a single revision

2013-02-13 Thread Paulo Soares
Post your code, please. Paulo On Wed, Feb 13, 2013 at 4:45 PM, ardamose123 ardamose...@gmail.com wrote: Last week, I was tinkering with iText code in the repo and came up with a solution to enable LTV. There was two problems in this case: The HSM I'm using doesn't have the complete

Re: [iText-questions] Japanese Character Encoding Problem

2013-02-08 Thread Paulo Soares
What is the unicode for those chars? Maybe they can't be represented in UCS-2 and need UTF-16. Paulo On Fri, Feb 8, 2013 at 10:09 AM, Natarajan, Gopalakrishnan [CCC-OT_IT NE] gopalakrishnan.natara...@citi.com wrote: Hi, We are generating the pdf containing Japanese character . Some of the

Re: [iText-questions] PdfPKCS7.IsRevocationValid bug report

2013-01-11 Thread Paulo Soares
I think this is my fault. I thought that it referred to the TSA imprint that also had SHA-1 hardcoded and was fixed some time ago. It was another one. Paulo On Fri, Jan 11, 2013 at 12:36 PM, iText Info i...@1t3xt.info wrote: Op 11/01/2013 12:22, aszo...@szomor.hu schreef: Our TSA provider use

Re: [iText-questions] how to display telugu font by using itext pdf

2013-01-01 Thread Paulo Soares
Tomorrow you'll have something in the SVN to support this. Paulo On Jan 1, 2013 8:04 AM, NVS koniki.pras...@gmail.com wrote: Hi, The data in the database is in the format like #3125;#3149;#3119;#3125;#3128;#3134;#3119; #3126;#3134;#3094;,

Re: [iText-questions] iTextSharp, Powershell and Headers Footers

2013-01-01 Thread Paulo Soares
You are using an unsupported version (pre 5) but your comment about events and delegates still stands for other cases. I'll investigate the option to have events and delegates. Paulo On Dec 31, 2012 9:09 PM, Tim Bernhardson tbern...@sunmaid.com wrote: Found the problem…iTextSharp implements

Re: [iText-questions] Signing PDF with Smart Card

2012-12-31 Thread Paulo Soares
If you are in .NET and your card is registered in the Windows Certificate Store use X509Certificate2Signature.cs. If you only have a PKCS11 compatible DLL use http://sourceforge.net/projects/pkcs11net/ and follow the code at http://itextpdf.com/book/digitalsignatures, it's for java but the methods

Re: [iText-questions] Question on Itext

2012-12-21 Thread Paulo Soares
Tiles are not supported. Paulo On Thu, Dec 20, 2012 at 2:09 PM, Rosy rose rose.ros...@gmail.com wrote: Hi All, I am trying to convert the tiff file into pdf file but the conversion fails if the tiff file has tiles. Kindly suggest solution for the same. Regards Rosy

Re: [iText-questions] OutOfMemory using PdfGraphics2D

2012-12-03 Thread Paulo Soares
You are using an old iText version that is not supported. Anyway, with 250.000 shapes into a 5x5 meters PDF sheet you may need gigas of heap space, no miracles here, everything will be in memory before being written to disk. Paulo On Mon, Dec 3, 2012 at 12:02 PM, Paco (Dem) egodemiu...@gmail.com

Re: [iText-questions] [SPAM] Re: Why my itextsharp creat pdf file very large?

2012-11-27 Thread Paulo Soares
As the font is being used in the context of a form it is not being subset because you may need to fill the form later and all the font must be available. The form is being flattened at the end so the best way to deal with this is to get the field locations, delete the fields, and use ColumnText to

Re: [iText-questions] require java program to decode iText generated code39 barcode on PDF

2012-11-19 Thread Paulo Soares
iText can´t read barcodes. Paulo On Mon, Nov 19, 2012 at 2:38 AM, Rohan Purohit rohan.puro...@prosoftgroup.com wrote: Hi, I was able to use i-Text pdfStamper to generate and append code39 symbology barcodes on successive pages of a PDF document. Now I was trying to read back the encoded

Re: [iText-questions] How to insert bold text in VerticalText

2012-11-13 Thread Paulo Soares
You must compile the code from the SVN. Paulo On Tue, Nov 13, 2012 at 7:46 AM, Xavier xjourn...@excub.com wrote: can't find the error in my config. I have itextpdf-5.3.4.jar in my classpath If I remove itextpdf-5.3.4.jar before compiling or executing the process stops with erros meaning

Re: [iText-questions] Will itextsharp 5.3.4 work in Windows 8?

2012-11-12 Thread Paulo Soares
It won't work in Windows Store apps. If there's enough demand I'm sure a version will come out as it did for Android. Paulo On Mon, Nov 12, 2012 at 9:38 PM, drj1...@aol.com wrote: Hi, I am developing apps in Windows 8 , I just got an email that version 5.3.4 is now available. I want to

Re: [iText-questions] How to insert bold text in VerticalText

2012-11-12 Thread Paulo Soares
It works. See the attached PDF. Paulo On Mon, Nov 12, 2012 at 2:58 PM, Xavier xjourn...@excub.com wrote: I build a new config with the 1.5 jdk and the latest iText package (5.3.4) and I think I still have the problem using the source code posted yesterday. My test word in the vertical don't

Re: [iText-questions] How to insert bold text in VerticalText

2012-11-11 Thread Paulo Soares
It's fixed in the SVN. Paulo On Sun, Nov 11, 2012 at 5:25 PM, Xavier xjourn...@excub.com wrote: OK, here is my test code; In this test, the word Test is printed first with a document.add() and then in a VerticalText, one in normal glyph and the second one withe bold glyph. Of course, at the

Re: [iText-questions] How to insert bold text in VerticalText

2012-11-10 Thread Paulo Soares
Produce a small complete example exhibiting the behavior so that it can be reproduced. Well see then if there's a bug or something else. Paulo On Sat, Nov 10, 2012 at 8:12 AM, Xavier xjourn...@excub.com wrote: I Hope the book today from amazon. But... not sure my problem comes from chinese

Re: [iText-questions] Signing a PDF with itext using an ARX CoSign device

2012-11-07 Thread Paulo Soares
Yep. It needs a makeSignature() for already assembled containers rather than just raw signatures. I'll see if I can add this next week together with the deferred signature support. The adapter would be very helpful. Paulo On Wed, Nov 7, 2012 at 5:54 AM, Bruno Lowagie br...@lowagie.com wrote: Op

Re: [iText-questions] Unknown ecnryption type R=6

2012-11-07 Thread Paulo Soares
ISO 32000-2 is still a DIS. Let's wait until it's a standard. Paulo On Wed, Nov 7, 2012 at 7:25 PM, mcnamaragio mcnamara...@gmail.com wrote: Hello, I am receiving error message Unknown ecnryption type R=6 when I try to open one of the password protected files with itextsharp. As I found

Re: [iText-questions] Limitations in the amount of PdfPTables in a document?

2012-11-06 Thread Paulo Soares
Your code is hopelessly wrong. You are mixing direct content and document, mixing text with drawing and images. Buy the book, you really need it. Paulo On Tue, Nov 6, 2012 at 5:05 PM, chrishowell chris.how...@clicktravel.com wrote: To add. I have a document, and a PdfContentByte. I'm adding

Re: [iText-questions] Words wrapping problems in Korean

2012-11-01 Thread Paulo Soares
Is should work. Please provide a small code sample so that the problem can be reproduced. Paulo On Oct 31, 2012 12:38 AM, vicchugu vchugu...@pearsonkt.com wrote: I'm using font 'Batang.ttf' for Korean text. All text is displayed OK on the pdf file. Words are not wrapping correctly. Some

Re: [iText-questions] Words wrapping problems in Korean

2012-10-30 Thread Paulo Soares
What font and encoding are you using? Paulo On Tue, Oct 30, 2012 at 7:09 PM, vicchugu vchugu...@pearsonkt.com wrote: I'm generating pdf's files in English and Korean languages. English version looks fine. In Korean version words not wrap to new line (they are splitted before wrapping

Re: [iText-questions] X509Certificate - NotBefore and NotAfter

2012-10-24 Thread Paulo Soares
What is the class? If it's a BC class you'll have to direct the question to them. Paulo On Tue, Oct 23, 2012 at 11:50 PM, José Santiago Bonilla Pazmiño josebonillapazm...@gmail.com wrote: Hi, I am using iTextsharp, and found the following issue with signature verification. According to the

Re: [iText-questions] I am using version 5.1.2 : renderInfo.getText() gives empty String

2012-10-24 Thread Paulo Soares
Update to the latest version and post something for us to see. Paulo On Wed, Oct 24, 2012 at 3:39 AM, anand035 anand001_1...@yahoo.com wrote: I am using version 5.1.2 -- View this message in context:

Re: [iText-questions] Row span and RTL bug

2012-10-24 Thread Paulo Soares
I'll have a look. Paulo On Tue, Oct 23, 2012 at 10:31 PM, Vahid Nasiri vahid_nas...@yahoo.com wrote: Hello, Setting the row span works fine in LTR conditions, but when I set the run direction to RTL, currentColIdx will be -1. = private void

Re: [iText-questions] Help with iTextSharp 5.3.3 -- posible BUG

2012-10-22 Thread Paulo Soares
Looks like a BouncyCastle problem or a certificate problem. It would be helpful to post the certificate (public key only) to be sure. Paulo On Mon, Oct 22, 2012 at 6:31 PM, Javier Gardella javiergarde...@gmail.com wrote: Hello. I'm having an issue using iTextSharp 5.3.3. trying to sign a PDF

Re: [iText-questions] Possible bug in TextRenderInfo v5.3.3

2012-10-14 Thread Paulo Soares
Already fixed in the SVN. Paulo On Fri, Oct 12, 2012 at 8:58 PM, Alekz ! alek...@hotmail.com wrote: Hello all, I've been playing around with the LocationTextExtractionStrategy class, trying to combine iText text extraction capabilities to build a Select Text tool (like the one in Acrobat

Re: [iText-questions] iTextSharp digital signature using smart card

2012-09-25 Thread Paulo Soares
There's already a class to do that called X509Certificate2Signature.cs. Paulo On Tue, Sep 25, 2012 at 2:09 PM, sanduche sandu...@gmail.com wrote: I would say that this is C# and iTextSharp problem (not supporting digital signatures out of box with built in classes). Anyway I solved problem

Re: [iText-questions] Using iTextSharp to write data to PDF works great, but Acrobat Reader asks 'Do you want to save changes' when closing file

2012-09-25 Thread Paulo Soares
GetBuffer() is the internal working array and is always larger than the actual data size. ToArray() will make a buffer copy with only the data byte, that's why it's the correct way to do it. I would be more comfortable with the ToArray() outside the 'using' statement. Paulo On Tue, Sep 25, 2012

Re: [iText-questions] Creating NormalAndBoldFont Text Combined Using PdfContentByte showText()

2012-09-12 Thread Paulo Soares
So much work... Use ColumnText.showTextAligned(). It uses a Phrase that is composed of Chunk that can have any styles, fonts or color. Paulo On Wed, Sep 12, 2012 at 3:07 PM, pgandhi prajit...@gmail.com wrote: Hi, I'm trying to create a overlay text as shown in figure.Difficult part is i had

Re: [iText-questions] Bulk Processing

2012-08-29 Thread Paulo Soares
iText is a library, you'll have to write Bulk. It's a dozen lines of code to get all the files in the directory and feed them to PdfEncryptor. Paulo On Wed, Aug 29, 2012 at 4:32 PM, Michael Pasek michael_pa...@manulife.com wrote: Any chance this package provides support to bulk encrypt a large

Re: [iText-questions] PdfReader constructor

2012-08-28 Thread Paulo Soares
Works for me in C#. Can you post the PDF you use? Paulo On Tue, Aug 28, 2012 at 2:52 PM, José Santiago Bonilla Pazmiño josebonillapazm...@gmail.com wrote: Thanks Michael, I think there is some diference between Java and C#. I tried this code without running anything else than the copy and

Re: [iText-questions] PdfReader constructor

2012-08-28 Thread Paulo Soares
, chain, null, null, null, 0, CryptoStandard.CADES); El martes, 28 de agosto de 2012, Paulo Soares escribió: Works for me in C#. Can you post the PDF you use? Paulo On Tue, Aug 28, 2012 at 2:52 PM, José Santiago Bonilla Pazmiño josebonillapazm...@gmail.com wrote: Thanks Michael, I

Re: [iText-questions] PdfReader constructor

2012-08-28 Thread Paulo Soares
, let me know so that I can change my downloaded source code meanwhile. Regards, Jose. El martes, 28 de agosto de 2012, Paulo Soares escribió: It's a bug both in Java and C#. It only happens with PDFs with compressed object streams. It will be fixed tomorrow. Paulo On Tue, Aug 28, 2012

Re: [iText-questions] CFF Subsetting in iText PDF

2012-08-28 Thread Paulo Soares
Thank you for the info, we'll implement your solution. Paulo On Tue, Aug 28, 2012 at 11:00 PM, Schwanitz, Bill bschwan...@extensis.com wrote: Hi Everyone, I’m not certain this is the right place to post this. Please let me know I there is a more appropriate venue. I will admit,

Re: [iText-questions] Indic Ligaturizer for iTextSharp

2012-08-16 Thread Paulo Soares
I'm very much curious about this. It will also be a good pretext to support the open type tables and have a good quality rendering. Paulo On Thu, Aug 16, 2012 at 2:04 PM, iText Info i...@1t3xt.info wrote: Op 16/08/2012 14:44, blackhorn schreef: Kindly let me know whether this could be of use

Re: [iText-questions] Problem with Setting Arabic characters with Arial Unicode MS Font type

2012-07-27 Thread Paulo Soares
PM, Paulo Soares pgpsoa...@gmail.com wrote: That's the way it works with the code you are using. Paulo On Thu, Jul 26, 2012 at 4:53 PM, Harsha Kaundinya hsk.1...@gmail.com wrote: HI, I am facing a problem while assigning Arial MS Unicode Font to Arabic Characters. Once the PDF

Re: [iText-questions] Problem with Setting Arabic characters with Arial Unicode MS Font type

2012-07-26 Thread Paulo Soares
That's the way it works with the code you are using. Paulo On Thu, Jul 26, 2012 at 4:53 PM, Harsha Kaundinya hsk.1...@gmail.com wrote: HI, I am facing a problem while assigning Arial MS Unicode Font to Arabic Characters. Once the PDF is generated all the Arabic words are in TimesNewRoman

Re: [iText-questions] Convert Bytes of Any file Types without knowing extension to a pdf file

2012-07-26 Thread Paulo Soares
7 days should be enough the find a solution, it was the time it took to create the world and there was a bit more work involved. It's usually possible to find the right file type by examining the first few bytes, that's what iText does with images. Other than that, it was nice to meet you but this

Re: [iText-questions] iText 5.3 signature verification

2012-07-24 Thread Paulo Soares
I'll do an update this weekend of http://itextpdf.sourceforge.net/howtosign.html although the verification part is mostly the same..CAdES verification is not yet supported (it will not check the hashed certificate). Paulo On Tue, Jul 24, 2012 at 6:22 PM, aszo...@szomor.hu wrote: Dear Andreas,

Re: [iText-questions] Luna SA (HSM) Integration with iTextSharp

2012-07-23 Thread Paulo Soares
You are following up a 2 year old thread and many things changed in iText since then. If you are using a HSM the key is not exportable and you'll need specific software from the HSM manufacturer. Have a look at the class iTextSharp.text.pdf.security.X509Certificate2Signature. Paulo On Mon, Jul

Re: [iText-questions] [SPAM] Re: [SPAM] Re: iText-5.3.0 digital signature problem?

2012-07-19 Thread Paulo Soares
The check for SunPKCS11 was to fix a problem many years ago that I'm sure is not relevant anymore. Should a specific provider be used just for hashing or should a new interface be introduced that would take care of the hashing? The interface could call the BC functions directly and wouldn't even

Re: [iText-questions] [SPAM] Re: [SPAM] Re: iText-5.3.0 digital signature problem?

2012-07-19 Thread Paulo Soares
I'll go the interface way, after all there's already an interface for the signatures and I'll add one for the hashing. Paulo On Thu, Jul 19, 2012 at 11:01 AM, Andreas Kuehne kue...@trustable.de wrote: Hi Paulo, introducing a new 'hashing' interface is a good approach. Even the strangest

Re: [iText-questions] Problem with large Pdf reading with PdfReader

2012-07-13 Thread Paulo Soares
PdfReader reader; RandomAccessFileOrArray raFileOrArray = new RandomAccessFileOrArray(/tmp/large-file.pdf); reader = new PdfReader(raFileOrArray, null); Paulo On Fri, Jul 13, 2012 at 11:47 AM, Hanmant Sapkal hanmant.sap...@gmail.com wrote: Hello, We are facing a problem while reading large

Re: [iText-questions] Problem printing PDFs generated by i-Text

2012-07-13 Thread Paulo Soares
Works ok with a Xerox 5675 and an Epson AL-C3900. Maybe you have a printer driver problem. Paulo On Fri, Jul 13, 2012 at 1:09 PM, Chaudhary Himanshu (KFSC 241) himanshu.chaudh...@credit-suisse.com wrote: Hi There I used i-Text5.0.2 to generate PDFs from scanned TIFFs but when we are

  1   2   3   4   5   6   7   8   9   10   >