Re: [iText-questions] Opening an Image on click of another image in PDF

2012-02-15 Thread leo.michael
I was ableo to attach the file using PDFAnnotation and on click i was able to open the image. But another issue came up, there was another annotation image on top of my image. Can someone provide some idea to remove that. Please refer the attached image for details. http://itext-general.2136553.n4

Re: [iText-questions] How to open an Image/File on click of link/image in a PDF

2012-02-15 Thread leo.michael
I was ableo to attach the file using PDFAnnotation and on click i was able to open the image. But another issue came up, there was another annotation image on top of my image. Can someone provide some idea to remove that. Please refer the attached image for details. http://itext-general.2136553.n4

Re: [iText-questions] Opening an Image on click of another image in PDF

2012-02-15 Thread leo.michael
Is there anyway we can use PDFAnnotation and succeed. Tried different things but no success. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Re-Opening-an-Image-on-click-of-another-image-in-PDF-tp4390273p4393080.html Sent from the iText - General mailing list archive a

[iText-questions] How to open an Image/File on click of link/image in a PDF

2012-02-15 Thread leo.michael
Hi Team, Im new to IText PDF creation. I have created a PDF document which contains some image and also downloaded this PDF document and few other images to a folder. Now my requirement is to open an image in the folder on click of an image [relative path] in the PDF file. Below is the code s

[iText-questions] iText 5.1.4 text extraction issue

2012-02-15 Thread Scott Selvia
I have been parsing a PDF and I have an issue with the text that is returned from the PdfTextExtractor.getTextFromPage method. The reason I'm using this version because of an exception that I am getting with the 5.1.3 version. However when I'm getting the text from the page(s) I have noticed that

[iText-questions] iText 5.1.4 text extraction issue

2012-02-15 Thread sselvia
I have been parsing a PDF and I have an issue with the text that is returned from the PdfTextExtractor.getTextFromPage method. The reason I'm using this version because of an exception that I am getting with the 5.1.3 version. However when I'm getting the text from the page(s) I have noticed that

Re: [iText-questions] PDF Readers and JP2 images

2012-02-15 Thread Leonard Rosenthol
Not sure I understand the question. When you place a JP2K image into a PDF, you specify the resolution/scaling of the image at 100%. If the user scales the page to some other percentage, then it would scale accordingly in the final render. Is there some special feature of JP2K that you are re

Re: [iText-questions] Font subsets document

2012-02-15 Thread Leonard Rosenthol
Assuming that you had the legal right to extract the font data from a PDF (which is NOT a valid assumption in most cases) - then you'd only have those glyphs in the font. Also, not all font data in a PDF is in a format that can be directly used by an OS or other tools - it's not necessarily nat

Re: [iText-questions] Strip Annotations?

2012-02-15 Thread AJ Weber
OK, I'm a little further down the road with this. I've used the text extraction methods to check that I'm in the right place on the page, and separately used PRTokeniser to check the content of the page. However, if I can piece together which tokens of the content I want to remove, how do I go

[iText-questions] PDF Readers and JP2 images

2012-02-15 Thread mschwartzman
I have a question about PDF Readers/Adobe Reader X and JPEG2000. Does anyone happen to know what Adobe Reader does when viewing an JP2 image in terms of the zoom levels. Is Adobe Reader (or any known PDF Reader) capable of displaying different zoom levels or does it simply default to the 1:1 zoom l

Re: [iText-questions] Font subsets document

2012-02-15 Thread Peter van Raamsdonk
Ok clear, I wonder only how font extraction from a pdf would go. This would also result in fonts without all the glyphs I think. In Word 2007 the option to embed the font or have subsets (characters being used) is there but saving to pdf always results in subsets. But it is not an issue for

Re: [iText-questions] Font subsets document

2012-02-15 Thread Leonard Rosenthol
Subset merging is VERY HARD. AFAIK, Adobe's tools are the only ones that do it. (and not all the time, because sometimes you can't match) Leonard From: Peter van Raamsdonk [mailto:peet...@hotmail.com] Sent: Wednesday, February 15, 2012 1:42 PM To: Leonard Rosenthol; Post all your questions ab

Re: [iText-questions] Font subsets document

2012-02-15 Thread Peter van Raamsdonk
I meant combine, all subset parts which belong to a certain font contain all the glyphs (with original text). Text; hello world subset 1 contains hello subset 2 contains world Regards Peter On 15 feb 2012, at 19:11, Leonard Rosenthol wrote: How could you reuse a subset font, if the font does

Re: [iText-questions] Font subsets document

2012-02-15 Thread Leonard Rosenthol
How could you reuse a subset font, if the font doesn't have the glyphs you need??! From: Peter van Raamsdonk [mailto:peet...@hotmail.com] Sent: Wednesday, February 15, 2012 12:49 PM To: Post all your questions about iText here; Leonard Rosenthol; Vahid Nasiri Subject: Re: [iText-questions] Font s

Re: [iText-questions] Font subsets document

2012-02-15 Thread Peter van Raamsdonk
I hoped the FontSelector what Vahid also suggested would do the trick by adding all the subsetted fonts but alas. It would be nice to reuse (subsetted) fonts but it starts with the program that embeds the fonts. Oki I understand, have a nice evening, Peter On 15 feb 2012, at 13:40, Leona

Re: [iText-questions] highlighting text parts

2012-02-15 Thread iText Info
Op 15/02/2012 18:35, marlborino schreef: > Into the layer I can insert the text only through the method > ColumnText.showTextAligned() (am I wrong?) Yes. If you want the text to wrap, you shouldn't use the static methods of ColumnText. You should create a ColumnText object, add content and then us

Re: [iText-questions] highlighting text parts

2012-02-15 Thread marlborino
I tried this solution but I found an issue. Into the layer I can insert the text only through the method ColumnText.showTextAligned() (am I wrong?) which need to set the absolute position of the text. This method doesn't handle the lenght of the text and so it doesn't change the line if the text is

Re: [iText-questions] highlighting text parts

2012-02-15 Thread Leonard Rosenthol
Layers (optional content) would be PERFECT for this job. When you author the PDF, as you are laying out the text, lay out an equivalent version with the background color of the chuck in yellow (or something). Then just swap them as necessary using scripts in your buttons, bookmarks, etc. Leo

[iText-questions] highlighting text parts

2012-02-15 Thread marlborino
Hi all, I work with iText and I need to create a pdf which highlights some text parts dynamically. In detail, I've got a text which contains some interesting parts. I would highlight this parts after any event triggered, like a click over a button or a selection of a checkbox or anything else. In o

[iText-questions] Upcoming book on PDF

2012-02-15 Thread Bruno Lowagie
On 15/02/2012 16:47, Leonard Rosenthol wrote: > Here is something I wrote for my upcoming book on PDF Aha, that's interesting news! I'll be watching the list for news about this! -- Virtualization & Cloud Management Using

Re: [iText-questions] Strip Annotations?

2012-02-15 Thread Leonard Rosenthol
AJ - you seem to be mixing human terminology and PDF terminology. A quick read of the relevant sections of the PDF standard will probably help. Here is something I wrote for my upcoming book on PDF that might be helpful to you: As described in the previous chapter, a PDF file is composed of

Re: [iText-questions] Strip Annotations?

2012-02-15 Thread AJ Weber
It should not give me a blank page. The page is actually a scanned image -- or somehow the entire mediabox is filled with an image of the document (I say somehow, because the Producer info says iText 2.1.4, but there's no actual Contents in the original document's page). The "/Contents" of the

Re: [iText-questions] Strip Annotations?

2012-02-15 Thread Leonard Rosenthol
You can't remove the entire stream - that would give you a blank page! As Bruno said, you need to parse/analyze the page content and determine what is "good" and what is "bad". Leonard -Original Message- From: AJ Weber [mailto:awe...@comcast.net] Sent: Wednesday, February 15, 2012 9:

Re: [iText-questions] Strip Annotations?

2012-02-15 Thread AJ Weber
On 2/14/2012 11:02 AM, Leonard Rosenthol wrote: > Sure, it's possible that they are using some tool that adds text directly to > the content instead of as an annotation. Perfectly valid. > > In which case, removal is MUCH harder (but not impossible) OK...if I need to remove a page's /Contents obj

Re: [iText-questions] Opening an Image on click of another image in PDF

2012-02-15 Thread Leonard Rosenthol
Your best bet is to use a proper URL link with a relative URL - however, it may not actually work in all cases. -Original Message- From: leo.michael [mailto:leo.mich...@in.bosch.com] Sent: Wednesday, February 15, 2012 4:27 AM To: itext-questions@lists.sourceforge.net Subject: [iText-ques

Re: [iText-questions] Font subsets document

2012-02-15 Thread Leonard Rosenthol
Not using standard tools such as Word or Acrobat - no, there is not. Subsetting fonts is a common and standard practice. Leonard From: Peter van Raamsdonk [mailto:peet...@hotmail.com] Sent: Wednesday, February 15, 2012 6:41 AM To: vahid_nas...@yahoo.com; Leonard Rosenthol; itext-questions@lists

[iText-questions] Opening an Image on click of another image in PDF

2012-02-15 Thread leo.michael
Hi, Im new to IText PDF creation. I have created a PDF document which contains some image and also downloaded this PDF document and few images to a folder. Now my requirement is to open an image in the folder on click of an image in the PDF file. Below is the code snippet i tried. String imageN

Re: [iText-questions] Font subsets document

2012-02-15 Thread Peter van Raamsdonk
I finally understand a bit, Word 2007 embedded subsets of the fonts used. Calibri subset (ABCDEE) Verdana,Bold subset (ABCDEE) Verdana subset (ABCDEE) Verdana subset (ABCDEE) I created a font of the basefont not containing all glyphs. The original text has a trademark sign, I can't force

Re: [iText-questions] Urgent HELP with Keystore

2012-02-15 Thread Paulo Soares
No need to, you can verify using one keystore and then verify using another. If you are asking how to merge keystores that is outside the scope of this mailing list. Paulo -Original Message- From: Aritz Muniáin Sánchez [mailto:aritz.muni...@bpmsoasolutions.com] Sent: Wednesday, Februa

Re: [iText-questions] Urgent HELP with Keystore

2012-02-15 Thread Aritz Muniáin Sánchez
I said that these lines of code works fine, but I wanted to know if there is a way to load or include another keystore into default cacerts file. -Mensaje original- De: Paulo Soares [mailto:psoa...@glintt.com] Enviado el: miércoles, 15 de febrero de 2012 11:50 Para: Post all your question

Re: [iText-questions] Urgent HELP with Keystore

2012-02-15 Thread Aritz_85
Ok, so doesn't exist another way to load my own keystore? -- View this message in context: http://itext-general.2136553.n4.nabble.com/Urgent-HELP-with-Keystore-tp4389984p4390052.html Sent from the iText - General mailing list archive at Nabble.com. ---

Re: [iText-questions] Urgent HELP with Keystore

2012-02-15 Thread Paulo Soares
That's a convenience method that returns the default keystore, you don't have to use it. I can't see the problem. Paulo -Original Message- From: Aritz_85 [mailto:aritz.muni...@bpmsoasolutions.com] Sent: Wednesday, February 15, 2012 10:22 AM To: itext-questions@lists.sourceforge.net Sub

[iText-questions] Urgent HELP with Keystore

2012-02-15 Thread Aritz_85
Hi! I have a problem while verifyong pdf signatures and certificates. The problem is that I don't need to load default CAcertsKeystore, i need to load my own Keystore. Currently, I have this code: java.io.FileInputStream fis = new java.io.FileInputStream("C:\\Documents and Settings\\Administrado