Re: [iText-questions] Metadata in signature dictionary

2016-08-12 Thread mkl
Petras, Petras wrote > Our national PDF-based electronic document specification defines metadata > which may be included into signature dictionary. Can you share (a link to) that specification, so we are sure what we are talking about? Given that there is an English version of that document,

Re: [iText-questions] Best way to alter text without losing formatting?

2016-06-15 Thread mkl
Brodster1281 wrote > I'm using iText 5.5.9 since it seems to have the most information online > on how to use, but I'm trying to figure out the best way to change text > without losing the text's formatting. Its for a pretty basic puzzle > project where every letter is the opposite (a is z, b is

Re: [iText-questions] Error pdftextextractor.gettextfrompage

2016-06-15 Thread mkl
Sebastian, Sebastian Salvatico wrote > I'm having an issue with the pdftextextractor.gettextfrompage() method > while trying to read a .pdf. > I have this error "index was outside the bounds of the array". > I've read in several webs that this problem was solved by waiting for a > newer version

Re: [iText-questions] Reading the absolute position of a form field

2016-05-03 Thread mkl
Joel, Joel wrote > Hi Krishna, please can you share your solution to this problem? i am also > facing the same problem, i have to find absolute position of a field and > replace it with an image. > > your assistace will be highly appreciated, > > anyone who can assist,please pitch in. nabble

Re: [iText-questions] Problem when signing PDF hash in PDF readers. Code error 0x2727

2016-05-03 Thread mkl
Diego, Diego C wrote > I am having trouble digitally signing a pdf hash. This is the > implementation and the solution I have found, which is based on Bruno > Lewagie's Digital Signatures for PDF Documents. The idea is to sign the > PDF hash to avoid taking it to the client. > This is the

Re: [iText-questions] PdfPKCS7 .verify() return false

2016-03-08 Thread mkl
mgomez, mgomez wrote > I have been working with itextpdf-5.5.5, and the Integrity check return > false. > > ... > > PdfPKCS7 pkcs7 = fields.verifySignature(name); > > pkcs7.verify();<-- HERE return false > > > > But Adobe Acrobat Reader say: Signed and all signatures are valid. :(

Re: [iText-questions] Strange behavior of a radio button in a pdfStamped form

2016-02-29 Thread mkl
Michel, Michel Béliveau wrote > I use pdfStamper with a Base pdf file to produce a new PDF file . All > works > well, except for a minor behavior problem … ... > > [...] > Let’s say that Language_1 is checked at the beginning > > Choosing Language_2 : all works properly > > Choosing

Re: [iText-questions] Extracted images are upside-down

2016-02-02 Thread mkl
John van de Pol wrote > I am making a program for a friend of mine wich must extract images from a > pdf. > > All the images are upside down, they are NOT rotated!! The reason simply is that the images ARE upside-down in the page resources and are then flipped back up by the transformation

Re: [iText-questions] trying to remove a signature from pdf file

2016-01-21 Thread mkl
Massa Alfonso wrote > Anyone can help me? There is a bug in the signature sw or in the itext > library? The signature field claims it has a widget annotation on the page represented by the object 1 0 indicated by the form field type Annot and subtype Widget (which means that this form field

Re: [iText-questions] iText help resources?

2016-01-14 Thread mkl
Steve, Steve Garcia wrote > Am trying to pull table data out of PDF files that contain non tabular > text as well as the tables. I've successfully parsed the non tabled text > using PdfTextExtractor.GetTextFromPage(), but the resulting text stream is > empty at each table location. The text in

Re: [iText-questions] Replace images in pdf

2015-12-23 Thread mkl
breegee wrote > I changed it to use a stream and it works as far as replacing all of my > images with no error on the pdf. However, the imaging I am putting in > place > shows with a black background. Not sure why or how to fix that. Any > suggestions? Please share the image for analysis.

Re: [iText-questions] Replace images in pdf

2015-12-22 Thread mkl
breegee wrote > I am trying to replace a particular image on several pages in a pdf. It > runs through the code fine but when I open the file I see the first image > replaced and when I scroll to the second page it says there is an error in > the pdf. Unfortunately you did not share your PDF, so

Re: [iText-questions] Replace images in pdf

2015-12-22 Thread mkl
breegee wrote > If I wrap the killindirect in 'if i = 1 then killindirect', only doing it > on > page 1, then there is no error in my pdf. But it's not replacing my image > on page 2 also. I would propose not killing the objects at all while you are in the loop but instead adding them to some

Re: [iText-questions] com.lowagie.text.exceptions.IllegalPdfSyntaxException: Unbalanced save/restore state operators

2015-12-14 Thread mkl
glennr, glennr wrote > I'm not using an old version.  I downloaded version 5.5.8 last Thursday to > upgrade from a really old version I was using.  When I downloaded new > version 5.5.8 is when my problem started. You originally claimed: On Fri, 11 Dec 2015 06:40:27 -0800 (PST), glennr wrote:

Re: [iText-questions] com.lowagie.text.exceptions.IllegalPdfSyntaxException: Unbalanced save/restore state operators

2015-12-14 Thread mkl
glennr wrote > See attached example files with my report. ReportManager is the main > driver class that sets variables and makes the call to generate the > warrant report. This is a prototype so please excuse all the commented > code of different things I am trying. > ReportManager.java >

Re: [iText-questions] PdfSmartCopy cause signature corrupt

2015-10-14 Thread mkl
Eric, Eric Chow wrote > I use PdfSmartCopy to merge two PDF files. > > One of the PDF file contains a Digital Signature. > After I used PdfSmartCopy to merge them, there is not any signature filed > in the side bar of Adobe reader. > > If I click on the signature field in the pdf page, it

Re: [iText-questions] PDFSignature - Document has been altered since signature was applied

2015-04-20 Thread mkl
ptpavankumar, your ServerSignature implementation of the method public byte[] Sign(byte[] message) completely ignores the message argument. Thus, the generated signature does not at all relate to the PDF in question. Regards, Michael -- View this message in context:

Re: [iText-questions] value of selected checkbox is Off

2015-02-09 Thread mkl
TvT, Thomas, TvT wrote for checkboxes and radiobuttons iText only considers the /V (value key): String value = acroFields.getField(fieldName); You only see /OFF thus the /V attribute is probably missing in your PDF since many PDF Tools/Viewers do not set the value for

Re: [iText-questions] value of selected checkbox is Off

2015-02-09 Thread mkl
Thomas, Thomas Harre wrote But what is the difference between the /V and /AS values? Or what do they even stand for? /AS is specified for annotations in general as (Required if the appearance dictionary AP contains one or more subdictionaries; PDF 1.2) The annotation’s appearance state,

Re: [iText-questions] Bug detected in TextRenderInfo.class

2015-02-06 Thread mkl
Sonia, Bilbao Arechabala, Sonia wrote When I called PdfTextExtractor.getTextFromPage(reader, pageNumber) some of the pages returned an IndexOutOfBounds Exception. Can you share a sample file to reproduce the issue? Regards, Michael -- View this message in context:

Re: [iText-questions] Use of iTextSharp dll 4.1.6

2015-02-05 Thread mkl
codemeister2 wrote What you just described is called tortious interference or interference with contractual relations... just in this case is merely more than a year ago... -- View this message in context:

Re: [iText-questions] Resources All on First Page

2014-12-05 Thread mkl
Darren, FDnC Red wrote This is a work in progress but I'm trying to follow the advice from Michael posted here http://stackoverflow.com/questions/15566896/itextsharp-splitted-pages-size-equals-file-size but it's too vague for me so I have a question. In that SO answer I already mentioned

[iText-questions] [SPAM] Re: Is there a way to set the Document encoding?

2014-11-27 Thread mkl
Budokan1987, Budokan1987 wrote public static String stringFormatoUTF8(String stringIN) { try { if (stringIN.length() == 0) { stringIN = ; } byte[] arrayAux =

[iText-questions] [SPAM] Re: Convert PDF to Image

2014-11-21 Thread mkl
Colin, Colin G wrote Is there a way in iTextSharp to convert a PDF to an image format? Jpeg, Tiff, etc... iText(Sharp) does not by default contain such a renderer, so no. It can serve as a framework in which to implement one but that still would mean quite a lot of work. Regards, Michael

[iText-questions] [SPAM] Re: possible bug in PdfReader while decrypting Pdf content

2014-11-21 Thread mkl
Ondrej, Ondřej Smetana wrote I'm using latest 5.5.3 iTextSharp for extracting xml data from Xfa-based form pdf's. It works pretty well but lately I've came accross some pdfs that throw following exception when I tried to load them with PdfReader: ... I've uploaded the problematic pdf here

[iText-questions] [SPAM] Re: Parsing and document co-ordinates

2014-11-17 Thread mkl
John, John Renfrew wrote Is there any method - or scope for one - which along with returning the getResultantText() also returns the x and y of the first character?? The text extraction strategies packaged with iText are meant for plain text extraction only. If you want to extract additional

[iText-questions] [SPAM] Re: Resources All on First Page

2014-11-17 Thread mkl
Darren, FDnC Red wrote The only way around this problem I can see is to parse the content stream on each page looking for the image names (/I1, /I2, /I3, etc) and make a PDF with only those images. Do you see any other way to split this correctly? Essentially that's it. You might want to

[iText-questions] [SPAM] Re: Get image by location

2014-11-06 Thread mkl
kc2scy, kc2scy wrote Once I find my image is there anyway to stop the rendering? example if I had 10 images on a page and the first image is the one I need, I don't want to loop through the other nine images? I would try throwing some RuntimeException, Error, or other Throwable, and catching

[iText-questions] [SPAM] Re: Get image by location

2014-11-05 Thread mkl
kc2scy, kc2scy wrote I’m checking the location of every image until I get the one in the location of the barcode. This just seems a long way to do it. There essentially is no better way to do that. It is possible to put that location checking code into a RenderFilter similar to the

[iText-questions] [SPAM] Re: Can iText recognize invisible text in PDF?

2014-10-30 Thread mkl
Feng, Feng Qing wrote I am using iText to parse text from PDF files. I found that some text are returned but are not visible. For example, I got ... If you provided the PDF in question, your posting might become answerable. Regards, Michael -- View this message in context:

[iText-questions] [SPAM] Re: Java iText Error while check pdf PDF/A-1A

2014-10-24 Thread mkl
Jose, Jose Mª Viota wrote Both of Adobe Reader and Adobe Pro verifies the conformance but iText says me that Annotation of type /Widget should have Contents key First of all the message says SHOULD. If the wording is RFC'ish, this means that this merely refers to a recommendation of the PDF/A

[iText-questions] [SPAM] Re: How to find PDF line height?

2014-10-24 Thread mkl
Feng, Feng Qing wrote In pdf parsing the TL operator sets the vertical difference between lines in the same paragraph. As shown by [Adobe Portable Document Format Reference Manual Version 1.3], the leading is measured by the unit of line heights (like 1.2 or 1.8 times of the current line

[iText-questions] [SPAM] Re: [SPAM] Re: How to determine what is visible

2014-10-21 Thread mkl
Darren, FDnC Red wrote I'm already filtering on operator W and W* to find clipping paths and excluding those paths. Are you saying there's an another way to determine clipping paths that I may not be filtering out? You seem to say that you merely throw away lines from a clipping path. That

[iText-questions] [SPAM] Re: Merge PDFs with forms - PDF version7

2014-10-20 Thread mkl
GN, Bruno, iText mailing list wrote Based on the your PDF viewer may not be able to display this type of document message, it seems that you are dealing with XFA forms. [...] You may be in luck if the forms are hybrid. That is: if they contain a description of the form using both

[iText-questions] [SPAM] Re: How to determine what is visible

2014-10-20 Thread mkl
Darren, Leonard Rosenthol wrote The only way to do that is to basically render the page and then analyze each path. The most common reason (beyond what you¹ve already mentioned) is that they are clipped out - meaning that there is a clipping path in place and these are outside of it.

[iText-questions] [SPAM] Re: itextpdf 5.4.3 throwing com.itextpdf.text.pdf.parser.InlineImageUtils$InlineImageParseException: EI not found after end of image data

2014-10-16 Thread mkl
karine.m, karine.m wrote I am receiving the EI not found error in this specific attached pdf. I am using itextpdf-5.4.3 jar and below is the code: I can reproduce the issue with iText 5.4.3 but not with the current development snapshot. You, therefore, should update your iText version. EI

[iText-questions] [SPAM] Re: [SPAM] Re: Extracting Text

2014-10-15 Thread mkl
Darren, FDnC Red wrote What I don't understand is the correlation between the hex values and the difference array. I don't see anyway to map 0x1d to T even though I know and understand that T= /g55 and 55 + 29 = 84 which is T. Where can I find that 0x1d = /g55? If I knew that I could extract

[iText-questions] [SPAM] Re: Extracting Text

2014-10-13 Thread mkl
Darren, FDnC Red wrote What I don't see is how do I know that the Text Stream [()40.2(\()18.3()0()]TJ maps to the glyph names in the Differences array. First of all that extract from the content stream is incomplete. The pairs of round brackets (i.e. string delimiters) contain the

[iText-questions] [SPAM] Re: Extracting Text

2014-10-09 Thread mkl
Darren, FDnC Red wrote How in the world do I extract text from this PDF? It all comes out as gibberish non-printable characters, except when I choose Copy With Formatting in Acrobat. I've tried several different techniques on the web including iText SimpleExtractionStrategy,

[iText-questions] [SPAM] Re: acrofields count is 0

2014-10-08 Thread mkl
tanshishu, tanshishu wrote it worked fine in some pdf, but there was problem in some other pdf. That obviously indicates that there is some relevant distinction between those sets of files. Have you tried to compare them to find that distinction? If you tried without success or if you simply

[iText-questions] [SPAM] Re: acrofields count is 0

2014-10-08 Thread mkl
TvT, TvT wrote Try this: AcroFields acroFields = stamper.getAcroFields(); Maplt;String, AcroFields.Itemgt; fields = acroFields.getFields(); 2014-10-08 9:45 GMT+02:00 lt; tanshishu@ gt;: AcroFields acroFields = pdf.AcroFields; but the returned acrofields is null. If indeed the

[iText-questions] [SPAM] Re: PdfReader close the given InputStream

2014-10-07 Thread mkl
Andrea, AndreaC. wrote What is confusing me is the JavaDoc sentence in PdfReader class: * @param is the CODE InputStream /CODE containing the document. The stream is read to the * end but is not closed That JavaDoc comment dates back to 2004, i.e. some 0.*.* version and has

[iText-questions] [SPAM] Re: PdfReader close the given InputStream

2014-10-06 Thread mkl
Andrea, AndreaC. wrote I'm very confused about the new * PdfRead * class version. ... It seems that now isn't possible to read through an InputStream without closing it. Is it correct? What I'm wrong? It's hard to contradict your source code references. Indeed, if you instantiate a

[iText-questions] [SPAM] Re: MakeSignature.signDetached problems with Certification chain

2014-10-01 Thread mkl
Bruno, Irune Prado wrote The chain did in fact have three levels (signing cert - intermediate - root) but I was just providing all but the signing cert in the chain ¬.¬ As I did in fact provide the correct PrivateKey, both Adobe and the validation service where quite confused with the private

[iText-questions] [SPAM] Re: PdfDocument.close doesn't work in unix

2014-10-01 Thread mkl
Dhulipd, Dhulipd2984 wrote We are using iText jars itextpdf and itextpdfa jars with version 5.5.1 to generate tagged PDF , facing below exception in unix environmnet but it is working fine in windows. java.lang.RuntimeException: The page 2 was requested but the document has only 1 pages.

[iText-questions] [SPAM] Re: Problem After Singning PDF

2014-09-19 Thread mkl
Aritz, Aritz_85 wrote I have a PDF with 6 empty signature fields, and also it has several annotations (links) from a TOC. The problem is when Adobe renders the signed PDF, I get a warning (Annotation Warning) that advices ‘link annot on page 3’. But it only happens for non-certified

[iText-questions] [SPAM] Re: [SPAM] Re: CTM + re

2014-09-19 Thread mkl
Darren, FDnC Red wrote I guess another way of saying what you said is that the points returned from the content stream are Cartesian points. I keep forgetting PDF puts 0,0 in the BL instead of TL. PDF does not automatically put the origin (0,0) in the bottom left, it may be anywhere, even

[iText-questions] [SPAM] Re: [SPAM] Re: Problem After Singning PDF

2014-09-19 Thread mkl
Aritz, Aritz_85 wrote When attachments have no appearance, just created as PdfAnnotation.createFileAttachment, it displays a 'tack' icon, But building my own appearance, I would like to add a custom image. PdfAnnotation has the instance method setAppearance which allows to set a given

[iText-questions] [SPAM] Re: CTM + re

2014-09-18 Thread mkl
Darren, FDnC Red wrote 1) Am I transforming this rectangle by the matrix correctly? Well, you are not transforming the rectangle but merely the two corner points on one diagonal (rectXPt, rectYPt) and (tempEndXPt, tempEndYPt). In case you merely want to consider transformations like the one in

[iText-questions] [SPAM] Re: pdf shifted down

2014-09-17 Thread mkl
John, John Hancock wrote I am creating a batch of one-page pdfs from a larger pdf using com.lowagie.text.pdf.PdfWriter.getImportedPage(PdfReader, int) The one page pdf's that come from getImportedPage are shifted down and to the right so that part of the original page is lost. Is there a way

[iText-questions] [SPAM] Re: Detect Lines in PDF

2014-09-08 Thread mkl
Darren, FDnC Red wrote I'm attaching the sample PDF that I'm parsing, the Program.cs that I'm using, and an XML file which is the output of MuPDF's mudraw.exe which I'm using as ground truth data because the stroke_path matrix exactly matches where the lines are in the PDF. I am

[iText-questions] [SPAM] Re: Sign and PDF with SmartCard and web browser only

2014-09-05 Thread mkl
arnabroy, arnabroy wrote same error file corrupted please help STEP1: creating the hash of the pdf file in the server This is wrong. In your original attempt you started by creating a PdfStamper and calculating the hash of the range stream: PdfStamper stamper =

[iText-questions] [SPAM] Re: Sign and PDF with SmartCard and web browser only

2014-09-04 Thread mkl
arnabroy, arnabroy wrote i am actually signing the document hash in the client browser by using capicom dll in javascript * and not by itextsharp * . the actual document is in the server side. so, the signed hash is embedded in the pdf file by using itextsharp in the server. You claim

[iText-questions] [SPAM] Re: [SPAM] Re: Detect Lines in PDF

2014-09-03 Thread mkl
Darren, FDnC Red wrote The problem is that gs.ctm is always the identity matrix so the matrix.Multiply just sets it to whatever operands were parsed out. I was expecting some actual translation. Well, so it is not always the identity matrix but instead contains the translation given by those

[iText-questions] [SPAM] Re: Detect Lines in PDF

2014-09-01 Thread mkl
Darren, FDnC Red wrote I figured out I could setup a PDFContentStreamProcessor and get all line values from the Pdf operators like this snippet below. The only remaining problem is I can't get the CTM so my line coordinates are off. Listener listener = new Listener();

[iText-questions] [SPAM] Re: Encrypting signed pdf file

2014-08-27 Thread mkl
Metho, metho wrote Currently we store signed pdf in our database and need to sent encrypted version over the net, but encrypting it using PDFReader and PdfStamper seems to break certificates existing(adobe reader says they are not valid). Is there some workaround for that? You

[iText-questions] [SPAM] Re: method PdfCopy.fixTaggedStructure throws NullPointerException

2014-08-13 Thread mkl
Alexandre, Bruno, iText mailing list wrote On 8/12/2014 8:27 AM, Pichtchikov, Alexandre wrote: What is the best way to check if my pdf tagged properly? It takes a human to do that. No machine can ever know if a PDF is properly tagged. Compare the PDF/UA specification with the Matterhorn

[iText-questions] [SPAM] Re: method PdfCopy.fixTaggedStructure throws NullPointerException

2014-08-13 Thread mkl
Alexandre, Pichtchikov, Alexandre wrote Can I send examples as attachment using the same email address? Yes, simply send them attached to an e-mail to the mailing list. Be aware, though, of the size restrictions many SMTP servers have. Sizes larger than 15 MB after encoding might be rejected.

[iText-questions] [SPAM] Re: Signing PDF

2014-08-07 Thread mkl
Valentin, Valentin Ivanov wrote java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V at com.itextpdf.xmp.impl.XMPMetaParser.createDocumentBuilderFactory(XMPMetaParser.java:423) That actually looks like non-matching XML library

[iText-questions] [SPAM] Re: MarginTextFinder

2014-07-10 Thread mkl
Marco, Schärfke Marco, Dr. wrote I use the TextMarginFinder to detect text area. In principle it works as expected but for some documents, the upper border is wrong (this is true for text with upper German Umlauten like Ä,Ü in the first text line). iText uses the Ascent and Descent values

[iText-questions] [SPAM] Re: Reduce PDF file size

2014-07-08 Thread mkl
Amsala Suresh, Suresh Amsala wrote I want to compress a *PDF file size from MB's to KB's* (if the file size is 5 MB then it should be compressed in to KB's like 500 KB or 600 KB). What information in those PDFs is superfluous in your context and can be thrown away? Regards, Michael PS:

[iText-questions] [SPAM] Re: itext with dynamic headers

2014-07-08 Thread mkl
Randy Hoover, Randy E. Hoover wrote I am calling the event when the CreatePDF method is called and looping thru each day (setting the member variable in foreach loop) ... the EndOfPage event is called during creation of PDF from stream after CreatePDF ... hence the only stored value in the

[iText-questions] [SPAM] Re: Extracting content from Pdf document throws exception

2014-07-08 Thread mkl
göktürk mavuş wrote for some pdf documents, it throws an exception which is shown at below of the code. I donot understand why this exception is sent for some document but for some other it is not thrown. Moreover and urgently, how can I solve this problem? ...

[iText-questions] [SPAM] Re: PdfIndirectReference null from ImageRenderInfo.getRef() ...

2014-06-17 Thread mkl
Gian, giansluca wrote after this, my answer change a little bit, is there a way to retrive an image Object directly if i don't have a ref ? .. like: PdfObject pdfobj = reader.getPdfObject(index i) ... As you meanwhile found out yourself, your problems occurs for embedded, inline images.

[iText-questions] [SPAM] Re: Question

2014-06-03 Thread mkl
Ngoc Tai giao wrote I scan a ticket to pdf file (See attach file Doc1.pdf)In iTextSharp.text.pdf, I don't know how to capture hand written number 195 on field COUNTED QTY. Your PDF on its single page contains merely a bitmap image. Thus, all you can expect from a PDF library is that you can

[iText-questions] [SPAM] Re: image extracted from pdf file is 180 degree rotated (upside-down)

2014-06-03 Thread mkl
Gian, giansluca wrote i'm trying to extract some images from a pdf file implementing RenderListener interface. all works well but some images that i get are upside-down. inside a pdf i can see the same images correct .. i would ask if there is a way to know if image that i getting is

[iText-questions] [SPAM] Re: put /ProcSet to /AP Dictionary

2014-05-27 Thread mkl
Florian, Gruber, Florian wrote Why exactly would digital signatures in PDFs based on specs prior to v1.7 no longer considered to be safe? In addition to Bruno's answer consider that *ProcSet is considered obsolete since PDF 1.4*. Thus, the verification software either is based on PDF 1.3 or

[iText-questions] [SPAM] Re: PDF External Signature

2014-05-02 Thread mkl
mdemir, mdemir wrote I want to external signature for pdf. My codes: ... Error: modified or corrupted after the document is signed See the answer to the parallel post on stackoverflow: http://stackoverflow.com/a/23391722/1729265 Regards, Michael -- View this message in context:

[iText-questions] [SPAM] Re: pdf extractpages function

2014-04-24 Thread mkl
Stephen LeCompte wrote Question: How come Adobe rectangle does not get extracted with iTextSharp? Version: itextsharp-all-5.5.0 I have an Adobe PDF that has a rectangle highlighting some data on the 2nd page (provided as an attachment) and yet when I do an ExtractPages using the

[iText-questions] [SPAM] Re: [SPAM] Re: pdf extractpages function

2014-04-24 Thread mkl
iText Info wrote On 4/24/2014 8:21 AM, mkl wrote: You'll find some background information in this stackoverflow answer: http://stackoverflow.com/a/15945467/1729265 In some cases (if only one PDF document is at play), one should use PdfStamper. You are right of course. Unfortunately Stephen

[iText-questions] [SPAM] Re: Exception during parsing pdf

2014-03-29 Thread mkl
vishalm wrote I just found out that the code depends on the jre version. It works properly if I use jre 1.6, but does not execute (and returns exception) if I run it using jre 1.7 I had tested using Java 7 and it worked all right. You probably added incompatible libraries to the Java 7 JRE

[iText-questions] [SPAM] Re: Exception during parsing pdf

2014-03-28 Thread mkl
Vishal Mittal, vishalm wrote I am using the latest i-text pdf This currently is 5.5.0. Or do you mean the development 5.5.1-SNAPSHOT? to parse / read the pdf and am getting the following exceptions I tried both 5.5.0 and 5.5.1-SNAPSHOT, and in neither case I got an exception but instead the

[iText-questions] [SPAM] Re: negative values while trying to extract the editable rectangle regions from Fillable PDF

2014-03-21 Thread mkl
Barath, Barathvaj wrote We are getting negative values while trying to extract the editable rectangle regions from the attached pdf file. I assume you mean the negative Top and Bottom values. They are completely correct. What is your issue with negative numbers here? Regards, Michael PS:

[iText-questions] [SPAM] Re: Not able to Extract the AcroFields FRom Fillable PDF

2014-03-21 Thread mkl
Barath, Barathvaj wrote For Some Fillable PDF, we are not able to extract AcroFields and it count appears to be Zero. Please find the attached Fillable PDF named ACORD_137CA_2007_01.unlocked for your reference and also attached other similar PDF named ACORD_137CA_2007_01_locked in which we

[iText-questions] [SPAM] Re: How to move some text in an existing PDF, from left to right?

2014-03-13 Thread mkl
roquegil, roquegil wrote I would to catch some existing information in a specific area, and move it to the right. ... At this moment I've found one solution which is not ideal but should works. A good generic solution is difficult indeed. Even though the content to move visually

[iText-questions] [SPAM] Re: how to extract PDF watermark content using iText apis

2014-03-13 Thread mkl
pittypan, pittypan wrote http://superuser.com/questions/455462/how-to-remove-and-extract-a- http://superuser.com/questions/455462/how-to-remove-a-watermark-from-a-pdf-file watermark-from-a-pdf http://www.rasteredge.com/how-to/vb-net-imaging/pdf-watermark-creating/ What do you try to

[iText-questions] [SPAM] Re: Encrypt without owner password and random password generation

2014-03-11 Thread mkl
Andrea, Andrea wrote I found what seemed a little discrepancy with the spec and I asked why, that's it. I spent time re-reading the spec, comparing it with your implementation and writing a detailed email because I thought it was useful for me to understand it but might also be good for

[iText-questions] [SPAM] Re: Encrypt without owner password and random password generation

2014-03-11 Thread mkl
Andrea wrote I don't think your argument is valid, according to it you could, absurdly, always replace the owner password with a random string (even when the user provided it) and still strictly don't contradict the spec (there is an owner password, *a random string*, algorithm 3.3 applies).

[iText-questions] [SPAM] Re: Encrypt without owner password and random password generation

2014-03-08 Thread mkl
Andrea, Andrea wrote encryption is performed without an owner password being specified. I read the specs, the mailing list and looked at the code and my understanding from the specs is that If there is no owner password, use the user password instead. As far as I can tell this doesn't happen

[iText-questions] [SPAM] Re: Unable to open a PDF due to unsupported filter

2014-03-04 Thread mkl
Abedellatif, Abedellatif Hussein wrote What do you mean with the document failed validation? I opened the file using adobe reader with no issues Adobe Reader opening a PDF without complaint does not mean the file is valid. Actually Adobe Reader is very forgiving and ignores very many errors.

[iText-questions] [SPAM] Re: How to read underline text from TextRenderInfo

2014-02-28 Thread mkl
Barath, Barathvaj wrote What are the Parser class that i need to extend to achieve the functionality . I extended IRenderListner , i used GlyphRenderListner. But I not able to get the vector graphics. First and foremost you have to enhance PdfContentStreamProcessor to also process operators

[iText-questions] [SPAM] Re: iText - create PDF/A Problem

2014-02-28 Thread mkl
TvT wrote The reader is implicitly closed when closing the stamper so there is no need to close it explicitely. In the recent past more and more implicit close calls have been removed (as these calls break some use cases). Thus, I would advice to explicitly close the relevant objects. Regards,

[iText-questions] [SPAM] Re: PDF Size Limitation

2014-02-28 Thread mkl
Paulo, your screenshot looks like there are four bytes preceding the PDF header. Probably your portlet emits some unasked-for additional bytes? http://itext-general.2136553.n4.nabble.com/file/n4659820/image2.gif Regards, Michael -- View this message in context:

[iText-questions] [SPAM] Re: [java] A4 page size is wrong in PageSize.A4

2014-02-27 Thread mkl
linuxunil wrote page size source http://en.wikipedia.org/wiki/ISO_216 Allow me to quote from that page: Tolerances The tolerances specified in the standard are: * ±1.5 mm for dimensions up to 150 mm, * ±2.0 mm for dimensions in the range 150 to 600 mm, and * ±3.0 mm for dimensions above

[iText-questions] [SPAM] Re: How to read underline text from TextRenderInfo

2014-02-26 Thread mkl
Barath, Barathvaj wrote I want to identify whether the text is underlined or not. Is there any way that i can find out whether the text is underlined like font or fillcolor. In contrast to the font, the color, the rendering mode, etc, being underlined or not in PDF is not a property of the

[iText-questions] [SPAM] Re: [java] A4 page size is wrong in PageSize.A4

2014-02-26 Thread mkl
linuxunil wrote 8.26 X 11.69 in (INCORRECT! 8.3 X 11.7 in) Which source tells you 8.3 X 11.7 in is the exact and only A4 size? First of all, 8.3 X 11.7 in is the 8.26 X 11.69 in rounded to one decimal digit, and even 8.26 X 11.69 in is not exact, merely rounded. Please be aware that the An

[iText-questions] [SPAM] Re: Merging PDF documents with signature

2014-02-06 Thread mkl
Gilberto, roquegil wrote Then removing the signature can solve my problem if the appearance of the signature is Keeped. I'v juste tried to remove the signature from the reader You misunderstood Bruno when he wrote blowagie wrote flattening the signature appearance is indeed possible (if

[iText-questions] [SPAM] Re: Merging PDF documents with signature

2014-02-06 Thread mkl
Gilberto, roquegil wrote So can you send me some code example of duplicating signature appearance, in order to insert it in the PDF page, before deleting existing signature? You don't need to explicitly delete the signature at all, flattening the signature field removes that field as a side

[iText-questions] [SPAM] Re: When merging several pdf read from a database, highlighting is lost on subsequent documents

2014-01-24 Thread mkl
Scott, Carter, Scott wrote I have an implementation of iTextSharp, where we are combining multiple pdf documents that are saved individually within our database. If you view each document alone, the highlighting displays fine. However, when merging documents with iTextSharp, the first

[iText-questions] [SPAM] Re: PdfPageLabels

2014-01-21 Thread mkl
Saravanana, sarankup wrote one file returns as null values with I use labels = PdfPageLabels.getPageLabels(reader); I a sure the PDF has page labels. Please advise how to resolve the issue. I want to get the PDF page labels instead of null. Provide the PDF in question for inspection,

Re: [iText-questions] Unable-to-save-pdf-template-after-filling-acrobat-fields

2014-01-06 Thread mkl
Surya, surya wrote I am doing one sample project using iTextSharp (using version 5.4.5.0) to fill acrobat fields in PDF template. Please also provide the PDFs in question (input, output). Regards, Michael -- View this message in context:

[iText-questions] [SPAM] Re: LTV problem?

2013-12-28 Thread mkl
Eric, Eric Chow wrote The sample1.pdf is signed by the certificate that generated by keytool and the sample2.pdf is signed with the smartcard (PKCS#11). sample1.pdf (58K) http://itext-general.2136553.n4.nabble.com/attachment/4659598/0/sample1.pdf sample2.pdf (48K)

[iText-questions] [SPAM] Re: LTV problem?

2013-12-27 Thread mkl
Eric Chow, Eric Chow wrote I tried to use keytool to generate a keystore and sign the PDF. It shows LTV-enabled in Adobe reader. I also use the same method to sign the PDF with PKCS#11 (Smartcard) but the output signed PDF not LTV-enabled Please provide samples of both to compare their

[iText-questions] [SPAM] Re: LTV problem?

2013-12-26 Thread mkl
Eric Chow wrote I used the following code to add the LTV to the existed signed PDF. The attached PDF is the result. But it shows LTV not enabled . in the Adobe Reader XI. test_signed_LTV.pdf (346K) http://itext-general.2136553.n4.nabble.com/attachment/4659584/0/test_signed_LTV.pdf

[iText-questions] [SPAM] Re: LtvTimestamp on XFA-Based Document

2013-12-26 Thread mkl
Chanin Laohaphan, Chanin Laohaphan wrote I wonder if LtvTimestamp actually supports adding a document timestamp to an XFA-based file. I'm afraid it most likely is the other way around. PAdES style document time stamps don't care about how PDFs are built, they may be added to any PDFs in

[iText-questions] [SPAM] Re: Pdfpkcs7 and ASN1 in c#

2013-12-26 Thread mkl
rezakh68, rezakh68 wrote I have a Cms in ASN1 Structure and a pdfpkcs7 object and i want to set this cms to the Pdfpkcs7 obj I'm not sure I correctly understand you. Am I right to assume that you generate a CMS container externally which shall be used for an integrated PDF signature? In that

[iText-questions] [SPAM] Re: iTextSharp adding images

2013-12-23 Thread mkl
Eco Lopes, Eco Lopes wrote I'm using PdfStamper to copy a page from a source and then add an image and some text to it. The problem is the copied content isn't being copied right: the original text formatting changes and seems to get the wrong encoding. Can you help me with this? In addition

[iText-questions] [SPAM] Re: LTV problem?

2013-12-18 Thread mkl
Eric, Eric Chow wrote tsaClient = new TSAClientBouncyCastle(TSA_URL, TSA_ACCNT, TSA_PASSW, 6500, sha256); [...] v.merge(); On Wed, Dec 18, 2013 at 3:45 AM, mkl lt; mkl@ gt; wrote: In that case can you supply a PDF resulting from your code calling addVerification? I meant

[iText-questions] [SPAM] Re: LTV problem?

2013-12-18 Thread mkl
Eric, Eric Chow wrote Do you mean the output PDF (signed PDF)? I attach it here. Please check! I tried to use iText-rups to show the document structure, but cannot see the DSS catalog. test_signed.pdf (295K)

[iText-questions] [SPAM] Re: Get total number of signed Signatures

2013-12-18 Thread mkl
Nick, Nick Russler wrote at the moment i am calculating the total number of (signed) Signatures this way: int signatureCount = reader.getAcroFields().getSignatureNames().size(); would this code have the same effect: int signatureCount = reader.getAcroFields().getTotalRevisions(); or

  1   2   3   4   5   6   7   8   >