Re: [iText-questions] how to retreive a paragraph list or chapter/section list from existing pdf document

2011-08-09 Thread 1T3XT BVBA
On 10/08/2011 0:29, vfeki wrote: Need to retrieve all existing paragraphs or chapters/sections from it, so I'll be able to create bookmarks upon that list I retrieve from existing pdf. This is easy if the PDF contains an outline tree. But as you've tried this: Tried to get Outlines, like ...

Re: [iText-questions] Unable to extract Tiff Image

2011-08-09 Thread Mark Storer
"Software should be totally hating on anyone foolish enough to provide it with non-conformant documents. Offenders should have all their personal information, account numbers, and so forth dumped all over the internet. That'll show 'em". The bottom line is that we cannot predict all the amazingl

Re: [iText-questions] Unable to extract Tiff Image

2011-08-09 Thread Kevin Day
Not to be too snarky on this, but the "software should be totally compliant in the face of non-comformant documents" is the reason that IE messed up the browser landscape for so long. That said, why don't you put together a proposal for a code change to handle this specific situation, and I'll tak

[iText-questions] how to retreive a paragraph list or chapter/section list from existing pdf document

2011-08-09 Thread vfeki
Hi All, I'm quite new to iText, I've been reading the book also, but did not find a solution for what I need. I'll explain: I have pdf doc (any pdf document). Need to retrieve all existing paragraphs or chapters/sections from it, so I'll be able to create bookmarks upon that list I retrieve from

Re: [iText-questions] Fwd: FW: Retrieving settings from PDF files using iText

2011-08-09 Thread William Bell
Bill, I think I have been long enough in development and used sufficient forums to know/realise that my post will be read by many! You state... We all view this free list as a "give a penny, get a penny" format. We ask a question when we have one and give an answer when we see a quest

Re: [iText-questions] Unable to extract Tiff Image

2011-08-09 Thread MaryAubaun
Thanks, Leonard. I don't know one way or the other, but just that Acrobat and other viewers show the image fine and I can't extract it, do I tell people "the PDF is non-conforming and therefore I can't extract the tiff from it". It would be like the browser saying "this HTML page is slightly off,

Re: [iText-questions] Fwd: FW: Retrieving settings from PDF files using iText

2011-08-09 Thread William Bell
John, Quite frankly I find your tone offensive as well - why do you feel you need to use terms like 'dick'? How unprofessional. I appreciate that I may have misunderstood how this list works initially. But we listen to Bruno, took on board what he said, brought the book and went away a

Re: [iText-questions] Fwd: FW: Retrieving settings from PDF files using iText

2011-08-09 Thread Bill Ensley
This subject is not my expertise, so I just now picked up on it. This is something that you should understand William: You are not just talking to Bruno, Leonard, and Paolo, you are talking to THOUSANDS of iText developers who listen in on this list. We all view this free list as a "give a pe

[iText-questions] Fwd: FW: Retrieving settings from PDF files using iText

2011-08-09 Thread John Renfrew
William As a fellow Brit please stop acting like a dick Yes, Bruno can appear irascible but if you spent a small amount of time watching the list first you would work out just how much really valuable learning and code interchange happens, there is a great example only today of someone extendi

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread Elías Manchón López
If I produce from scratch a PDF with iText, when I insert a image with transparency what will happen if the document is in 1.3 version? El 09/08/2011 15:09, "1T3XT BVBA" escribió: > On 9/08/2011 15:01, Elias wrote: >> Other solution is produce a document with iText and use other software to >> con

Re: [iText-questions] Another small request Re: Signature validation bug in iText 5.1.1

2011-08-09 Thread Stefan Santesson
Thanks! /Stefan On 11-08-09 5:59 PM, "1T3XT BVBA" wrote: >On 9/08/2011 16:58, Stefan Santesson wrote: >> If would be appreciated if you could add these getters to the code as >>well. > >OK, done! >http://itext.svn.sourceforge.net/viewvc/itext?view=revision&revision=4934 -

Re: [iText-questions] Retrieving settings from PDF files using iText

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 16:57, William Bell wrote: If you would care to read the email you will see that 80%+ is just code - surely someone of your magnificence is not fazed by a little snippet of code? It would take you all of about 1 minute to read it - surely you're not that desperate for money? For t

Re: [iText-questions] Problems with extracting text from PDF using Braille Font

2011-08-09 Thread Saad Shams
You are right. I have found a free font and it converts the braille characters to normal characters. But as you mentioned that fonts are not standard for different geographical regions/natives. So, the only way I can do it right is to process the braille character via image processing. Like conside

Re: [iText-questions] Parsing PDF retrieving layers and images

2011-08-09 Thread Lukas Johansson
Ok, I really feel stupid now. I've seen that reference before and tried to read in with image.get(PdfName.METADATA) and then cast it into any object that would allow me to see the content. Basicly I didn't understand that the object held a stream with the content and that I should use getAsStrea

[iText-questions] FW: Retrieving settings from PDF files using iText

2011-08-09 Thread William Bell
And yes - that is my telephone you just called - but just remember I now have yours! Kind regards William William Bell T: +44 7795 463646 E: wrb...@btinternet.com From: William Bell [mailto:wrb...@btinternet.com] Sent: 09 August 2011 15:57 To: 'i...@1t3xt.info' Cc: 'itext-questions@lis

[iText-questions] Another small request Re: Signature validation bug in iText 5.1.1

2011-08-09 Thread Stefan Santesson
Great! While we are into this, I might just offer two other small additions I had to make to PdfPKCS7 These are not bug fixes, but added functionality. I needed to be able to extract the actual hash and signature algorithm OIDs from PdfPKCS7, but no such function was available. Hence I added two

Re: [iText-questions] Retrieving settings from PDF files using iText

2011-08-09 Thread William Bell
No we don't have a licence and frankly I now have now no intentions of buying one! In over 15 years in the IT industry I have never come across someone who is so unhelpful and so dam right rude - you don't deserve people's support for your work. If you would care to read the email you will

Re: [iText-questions] Page X of Y at differents positions

2011-08-09 Thread d3d3
This is perfect.. thanks a lot for your very quick answer!! -- View this message in context: http://itext-general.2136553.n4.nabble.com/Page-X-of-Y-at-differents-positions-tp3730085p3730204.html Sent from the iText - General mailing list archive at Nabble.com. ---

Re: [iText-questions] Page X of Y at differents positions

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 16:28, d3d3 wrote: I would ask a question about this sample : http://www.itextpdf.com/examples/iia.php?id=104 There is a template named "total" at a fixed position /"createTemplate(30, 16)"/, which contains "Y". For a pdf containing some pages in portait format and other in landscap

Re: [iText-questions] Using Java 1.4.2

2011-08-09 Thread Balder VC
On 9/08/2011 16:17, John Wendler wrote: Hi, Is it possible to use iText with Java 1.4.2. If not, are there other PDF toolkits available that can run on 1.4.2? I don't want to step on your toes but I would advice your client to upgrade it's systems :) 1.4.2 is really getting outdated Thank

Re: [iText-questions] Signature validation bug in iText 5.1.1

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 15:01, Stefan Santesson wrote: > Hi, > > I have discovered a serious bug in the iText 5.1.1 signature > validation process and I have provided a patch that I would suggest > you implement in your next release. (...) > These changes are tested and works like a charm. Thanks! See the c

Re: [iText-questions] Using Java 1.4.2

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 16:17, John Wendler wrote: > Is it possible to use iText with Java 1.4.2. If not, are there other > PDF toolkits available that can run on 1.4.2? Only iText versions prior to iText 5.0.0 will run on a 1.4 JVM. You'll have to use iText 2.1.7, but since iText 2.1.7: - plenty of new fun

[iText-questions] Page X of Y at differents positions

2011-08-09 Thread d3d3
Hi all, I would ask a question about this sample : http://www.itextpdf.com/examples/iia.php?id=104 There is a template named "total" at a fixed position /"createTemplate(30, 16)"/, which contains "Y". For a pdf containing some pages in portait format and other in landscape format, is it possible

Re: [iText-questions] Signature validation bug in iText 5.1.1

2011-08-09 Thread Stefan Santesson
Small update to the comment (underlined): // Carrying the fixed CMS compliant digest comparison result for digest hold in // the messageDigest signed attribute if encapsulated content info (RSAdata) is present. boolean encContDigestCompare = false; A fully st

[iText-questions] Using Java 1.4.2

2011-08-09 Thread John Wendler
Hi, Is it possible to use iText with Java 1.4.2. If not, are there other PDF toolkits available that can run on 1.4.2? Thank you. -- uberSVN's rich system and user administration capabilities and model configuration tak

[iText-questions] Signature validation bug in iText 5.1.1

2011-08-09 Thread Stefan Santesson
Hi, I have discovered a serious bug in the iText 5.1.1 signature validation process and I have provided a patch that I would suggest you implement in your next release. The problem is in the class "PdfPKCS7" in the method verify(). The original code compares the digest of the document with the d

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread Elías Manchón López
Because the design is very complex, I have a base design and I need work with this design, but it's in 1.7 version. 2011/8/9 1T3XT BVBA > On 9/08/2011 15:01, Elias wrote: > > Other solution is produce a document with iText and use other software to > > convert from pdf to pdf/x after, really? >

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 15:01, Elias wrote: > Other solution is produce a document with iText and use other software to > convert from pdf to pdf/x after, really? Why wouldn't you use iText to produce the PDF as a PDF/X document from the start? ---

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread Elias
Other solution is produce a document with iText and use other software to convert from pdf to pdf/x after, really? -- View this message in context: http://itext-general.2136553.n4.nabble.com/Convert-pdf-document-from-version-1-7-to-version-1-3-tp3729440p3729877.html Sent from the iText - General

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread Elías Manchón López
Have you references about http://bfo.com/products/pdf/? 2011/8/9 1T3XT BVBA > On 9/08/2011 14:32, Leonard Rosenthol wrote: > > Some of them have Java APIs, but they are stand alone solutions. > > Isn't it normal that they are stand alone solutions? > If you convert a PDF to PDF/X, aren't there

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread Leonard Rosenthol
I am sure that you can use the information given to search the web for the various companies and products mentioned and look up the info that you need… From: Elías Manchón López mailto:elias.manc...@gmail.com>> Reply-To: Post here mailto:itext-questions@lists.sourceforge.net>> Date: Tue, 9 Aug

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread Elías Manchón López
Do you know some other product like iText but it convert from PDF to PDF/X using Java API? Thanks 2011/8/9 1T3XT BVBA > On 9/08/2011 14:32, Leonard Rosenthol wrote: > > Some of them have Java APIs, but they are stand alone solutions. > > Isn't it normal that they are stand alone solutions? > If

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 14:32, Leonard Rosenthol wrote: > Some of them have Java APIs, but they are stand alone solutions. Isn't it normal that they are stand alone solutions? If you convert a PDF to PDF/X, aren't there many decisions that need to be made? Aren't there plenty of possible issues that can't b

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread Elías Manchón López
Hi Leonard, Do you know some of them with java API?, Could you gime some example?. Thanks!! 2011/8/9 Leonard Rosenthol > Some of them have Java APIs, but they are stand alone solutions. > > From: Elías Manchón López > Reply-To: Post here > > Date: Tue, 9 Aug 2011 05:20:21 -0700 > To: Post he

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread Leonard Rosenthol
Some of them have Java APIs, but they are stand alone solutions. From: Elías Manchón López mailto:elias.manc...@gmail.com>> Reply-To: Post here mailto:itext-questions@lists.sourceforge.net>> Date: Tue, 9 Aug 2011 05:20:21 -0700 To: Post here mailto:itext-questions@lists.sourceforge.net>> Subjec

Re: [iText-questions] Urgent

2011-08-09 Thread 1T3XT BVBA
Using the word URGENT is rude and forbidden. Using a Subject that doesn't tell us anything about your question is forbidden too. You're breaking the rules: http://lowagie.com/rule1 You shouldn't expect a friendly answer! On 9/08/2011 14:03, Punnoose PJ wrote: It is to download a pdf that is

Re: [iText-questions] PKCS#12 Certificate fails when executed from PHP exec

2011-08-09 Thread Petter Brox
El 09/08/2011, a las 13:54, 1T3XT BVBA escribió: > I'm 99% sure this isn't an iText or Java problem, but a permission problem. > For instance: setting a file to 777 is useless if the script doesn't have > access to its directory. You are of course totally right. When I put the certificate inside

Re: [iText-questions] Urgent

2011-08-09 Thread Balder VC
Urgent? what's that? must be http://www.*urgent*.fm/ On 9/08/2011 14:03, Punnoose PJ wrote: I am working on an .aspx page. It is to download a pdf that is generated in the aspx page. .but when hosted in Amazon cloud and my server. I am getting the message on the first invocation Of the a

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread Elías Manchón López
Ok, but are these Java Library? 2011/8/9 Leonard Rosenthol > Or Adobe Acrobat or Callas pdfToolbox or dozens of other commercial > solutions. > > There are no open source solutions for this conversion that I am aware of. > > Leonard > > On 8/9/11 7:59 AM, "1T3XT BVBA" wrote: > > >On 9/08/2011 1

[iText-questions] Urgent

2011-08-09 Thread Punnoose PJ
I am working on an .aspx page. It is to download a pdf that is generated in the aspx page. .but when hosted in Amazon cloud and my server. I am getting the message on the first invocation Of the aspx page. "The process cannot access the file because it is being used by another process". but

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread Leonard Rosenthol
Or Adobe Acrobat or Callas pdfToolbox or dozens of other commercial solutions. There are no open source solutions for this conversion that I am aware of. Leonard On 8/9/11 7:59 AM, "1T3XT BVBA" wrote: >On 9/08/2011 13:55, Elias wrote: >> The printing works use the standard PDF/X-1a: 2001 to pr

Re: [iText-questions] Testing the support

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 13:46, Miriam Laier wrote: > Hello, > > I am a student of Business Information Technology at a German bank > and was asked to find a way to generate PDF-documents out of a java > application. > My employer would like to implement the library I consider most suitable. > Consequently I’

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 13:55, Elias wrote: > The printing works use the standard PDF/X-1a: 2001 to print (PDF 1.3), in > this standard the transparency must be flattened, these are my "layers", I > maded a mistake with the terms. Aha, you want to convert a PDF to PDF/X-1a:2001. That's not what you initially

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread Elias
Sorry for my bad explication: The printing works use the standard PDF/X-1a: 2001 to print (PDF 1.3), in this standard the transparency must be flattened, these are my "layers", I maded a mistake with the terms. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Conve

Re: [iText-questions] PKCS#12 Certificate fails when executed from PHP exec

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 13:41, Petter Brox wrote: fails on the line "ks.load(newFileInputStream("/path/to/cert/certificate.p12"), "password".toCharArray());" when I try to execute the Jar using the PHP exec function I'm 99% sure this isn't an iText or Java problem, but a permission problem. For instance:

[iText-questions] PKCS#12 Certificate fails when executed from PHP exec

2011-08-09 Thread Petter Brox
Hello, I've made a simple jar to protect and sign PDFs where the signing part is copied from this example: http://itextpdf.sourceforge.net/howtosign.html#howtosign. It works great from the command-line (Debian), but fails on the line "ks.load(new FileInputStream("/path/to/cert/certificate.p12"

Re: [iText-questions] Reader capacities

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 13:33, Leonard Rosenthol wrote: > > * Determining if all fonts are embedded is well defined as certainly > doable. Just iterate over all text/fonts in use and check the names. There's a code sample on p503 of the book that explains how to find out if a font is embedded (fully or jus

Re: [iText-questions] Reader capacities

2011-08-09 Thread Leonard Rosenthol
As Bruno said, you'll need to work at a MUCH lower level to accoimplish these things, but they are both doable. However, it will require that you read ISO 32000-1:2008 to understand the details of PDF and then get into the guts of iText. * Determining if all fonts are embedded is well defined

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 13:00, Elias wrote: > The printing works to require me in this version to print. I'm curious to hear what Leonard will say about this. In any case: if "the printing works" is a company, stop working with that company. > >> > Actually you don't want to downgrade the version number o

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread Elias
In first place, thanks by your quick response!! > Either don't do that, or convince us by giving us a very good reason to > downgrade the PDF version of a document. The printing works to require me in this version to print. > Actually you don't want to downgrade the version number of a PDF. > Y

Re: [iText-questions] Add contents in PdfDocument with several pages

2011-08-09 Thread toinon vigier
thanks. 2011/8/9 1T3XT BVBA > On 9/08/2011 11:27, toinon vigier wrote: > > I want to create a PdfDocument with several pages and I want to choose > > the current page of my writer to add contents. > > For instance, I create my document, add a PdfTemplate to the first > > page. I add a new page,

Re: [iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 11:30, Elias wrote: > I'm trying convert a original pdf > document from 1.7 version to 1.3 version. Either don't do that, or convince us by giving us a very good reason to downgrade the PDF version of a document. > For this purpose, I have used the pdfStamper object, when I use the >

Re: [iText-questions] Add contents in PdfDocument with several pages

2011-08-09 Thread 1T3XT BVBA
On 9/08/2011 11:27, toinon vigier wrote: > I want to create a PdfDocument with several pages and I want to choose > the current page of my writer to add contents. > For instance, I create my document, add a PdfTemplate to the first > page. I add a new page, add a PdfTemplate to the second page an

[iText-questions] Convert pdf document from version 1.7 to version 1.3

2011-08-09 Thread Elias
Hello, this is my first post. I'm novice in the use the iText library. I'm trying convert a original pdf document from 1.7 version to 1.3 version. For this purpose, I have used the pdfStamper object, when I use the constructor, I pass the version in the last argument. The final result is a docume

[iText-questions] Add contents in PdfDocument with several pages

2011-08-09 Thread toinon vigier
Hello, I want to create a PdfDocument with several pages and I want to choose the current page of my writer to add contents. For instance, I create my document, add a PdfTemplate to the first page. I add a new page, add a PdfTemplate to the second page and after, I want to add a new PdfTemplate in

Re: [iText-questions] Differents pages size (rotate) at creation time

2011-08-09 Thread d3d3
Ok thank you for the setPageSize() followed by newPage(), I don't know why I never saw that way :) To respond to your question, I thought to create two documents one with the portrait format parameter, the other with landscape.. so without rotation, just creation and mixed pages. And it was so rid