Re: [iText-questions] [question]how to get whole content of existing pdf?

2010-04-13 Thread 1T3XT info
Franky Cheng wrote: > Yes, We also thought word-spacing is pretty hard,so we decided to abandon > it.What you mentioned "many different ways" are enough for us,Could you > point me which chapter they belongs,then I will check your sample code. Optional content: chapter 15 (not available yet) Rend

Re: [iText-questions] Split PDF File with Working Links

2010-04-13 Thread 1T3XT info
Ali Vajahat wrote: > Hi IText: > > I am facing an issue in splitting pdf file. > > The file splits successfully. but there is a small issue. > When i split the PDF file , all links work fine except those links whose > target(destination) are not in the split file. Of course not. > Actually i a

[iText-questions] Split PDF File with Working Links

2010-04-13 Thread Ali Vajahat
Hi IText: I am facing an issue in splitting pdf file. The file splits successfully. but there is a small issue. When i split the PDF file , all links work fine except those links whose target(destination) are not in the split file. Actually i am reading these links in SWTools(pdf2swf). It returns

Re: [iText-questions] [question]how to get whole content of existing pdf?

2010-04-13 Thread Franky Cheng
> Yes, there's sufficient documentation in chapter 12 > of the second edition of "iText in Action". Thanks, I will read those code~ > Although "word-spacing" may be English, I don't know what it means in > the context of a PDF file. Is it the white space between existing words? > That's very h

Re: [iText-questions] Embed Font in PDF

2010-04-13 Thread Leonard Rosenthol
Won’t work. You could create a “droplet” with Acrobat’s Preflight that she could just drop the PDFs on to fix them. If you want to use iText, it’s going to take a lot more work involving some of the lower level pieces in the code. But doable. Leonard From: Huaichen Yang [mailto:huaic...@gmai

Re: [iText-questions] Embed Font in PDF

2010-04-13 Thread Huaichen Yang
Hi Leonard, Thanks very much for your advise. I got another idea how to handle this issue: Step 1: Create a blank PDF using Acrobat and embed the full font in it. Step 2: Use iText to merge the blank PDF with the PDF file from the online library website, and I hope that final PDF can retain the who

Re: [iText-questions] "Subject" listed as a "keyword", or "what's wrong with createXmpMetadata()?"

2010-04-13 Thread Ernesto Duncan
Hello, I have the same problem. I'm created PDF/A-1b PDFs. When I set the keywords via document.setKeywords(..), createXmpMetaData() will set the document.setSubject(subject) subject as the keywords. At least in the overview of Adobe's preflight tool: Metadata -> Description->Keywords is like the

Re: [iText-questions] Embed Font in PDF

2010-04-13 Thread Mark Storer
IIRC, iText forces subsetting in some circumstances... CJKV (Chinese, Japanese, Korean, Vietnamese) fonts tend to be Quite Large, megabytes instead of kilobytes. To avoid generating Really Big PDFs unnecessarily, iText forces you to subset them. I don't know that there's a way to make iText fu

Re: [iText-questions] Embed Font in PDF

2010-04-13 Thread Leonard Rosenthol
However, since you have Acrobat, you can just use it to automatically embed the fonts in one (or more) documents. Use Batch and/or Preflight to do it. -Original Message- From: Huaichen [mailto:huaic...@gmail.com] Sent: Tuesday, April 13, 2010 1:23 PM To: itext-questions@lists.sourceforg

Re: [iText-questions] Embed Font in PDF

2010-04-13 Thread Leonard Rosenthol
That font is private to Acrobat - you do NOT have the right to use it with iText (or other software/solutions). -Original Message- From: Huaichen [mailto:huaic...@gmail.com] Sent: Tuesday, April 13, 2010 1:23 PM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Embed F

[iText-questions] Embed Font in PDF

2010-04-13 Thread Huaichen
Hi, I'm trying to figure out how to embed the full set of the font into a PDF file using iText. I got some PDF files from a public library website. The publisher has stripped all fonts in order to make them smaller. Some Chinese characters didn't display correctly on iPad+GoodReader. To troubl

Re: [iText-questions] [question]how to get whole content of existing pdf?

2010-04-13 Thread 1T3XT info
Franky Cheng wrote: > >> No, the page content can refer to external objects (XObjects) >> and those are also part of the content. > >> What do you mean when you say "I want to get the whole byte content"? >> Do you want to sign the PDF? In that case, iText can generate a SHA-1 >> digest of the PD

Re: [iText-questions] HELP NEEDED: PDF V9.x Dynamic Form

2010-04-13 Thread 1T3XT info
Miller, Billy C CTR USAF AFSOC 623 AOC/CSDI wrote: > Hi: > > Ok... I have purchased the second edition of the book, looked at the > examples in chapter 13. You need chapter 8. You want the data as shown in listing 8.22. That snippet is part of the output of listing 8.20. Looking at listing 8.21,

Re: [iText-questions] HELP NEEDED: PDF V9.x Dynamic Form

2010-04-13 Thread Miller, Billy C CTR USAF AFSOC 623 AOC/CSDI
Hi: Ok... I have purchased the second edition of the book, looked at the examples in chapter 13. However, I'm still unable to get the fields and values from a already completed form. I'm not filling it out, I'm not placing movies, fonts or anything else in the form just need to extract the data

Re: [iText-questions] [question]how to get whole content of existing pdf?

2010-04-13 Thread Franky Cheng
> No, the page content can refer to external objects (XObjects) > and those are also part of the content. > What do you mean when you say "I want to get the whole byte content"? > Do you want to sign the PDF? In that case, iText can generate a SHA-1 > digest of the PDF file for you. Yes,that's

Re: [iText-questions] How to get CCITT image from PDF

2010-04-13 Thread Phan, Kelvin
From: Phan, Kelvin Sent: Tuesday, April 13, 2010 11:46 AM To: 'itext-questions@lists.sourceforge.net' Subject: How to get CCITT image from PDF Dear iText Guru, I am having issue of how to retrieve CCITT image from PDF. Could you please provide some example of retrieving it? I am stuck after ge

[iText-questions] How to get CCITT image from PDF

2010-04-13 Thread Phan, Kelvin
Dear iText Guru, I am having issue of how to retrieve CCITT image from PDF. Could you please provide some example of retrieving it? I am stuck after getting the decode param. Code Snippet: PdfReader pdfReader = new PdfReader(inBytes); for(int i=0; i < pdfReader.getXrefSize(); i++){

Re: [iText-questions] Please Help me

2010-04-13 Thread Mark Storer
That isn't possible in PDF. If two fields share a name, they ALWAYS share a value. You'd have to rename one of them first (which is also difficult in iText IIRC). If you renamed them "city.2" and "city.5" for example, you could set their values independently. You can do this, but must dive b

[iText-questions] Please Help me

2010-04-13 Thread Mahmoud Eid
Dear all, I use itextsharp, and I want to use the function "SetField()" to insert a value for fieldname, but my problem is that I want to insert fieldname and fieldvalue in specific page, like the following example: I have in my pdf file two fields named city in page 2 and 5, and I want only set

Re: [iText-questions] itext/rtf question

2010-04-13 Thread Bruno Lowagie
X wrote: > Is the iText/rtf solution being maintained ? No, the original creators of the RTF package have their hands full with their paid jobs. > Is there any future enhancement in the works ? No, we did a survey among paying customers and nobody used the RTF package. As no money is made by the R

Re: [iText-questions] PADES LVT (part 4) Doc Time-stamp

2010-04-13 Thread Leonard Rosenthol
Adobe Acrobat/Reader 9 do not support Document Timestamp signatures. At this time, the only tool available for validating such signatures is from CryptoLog. Leonard From: Jan Hudak [mailto:hudakja...@gmail.com] Sent: Tuesday, April 13, 2010 7:27 AM To: itext-questions@lists.sourceforge.net Subj

[iText-questions] PADES LVT (part 4) Doc Time-stamp

2010-04-13 Thread Jan Hudak
Hi, I am trying to implement the ETSI TS 102 778-Part 4, related to the extension of Long Term Validation of Signatures using iText. I sucessfully added DSS to the signed PDF document(reader use informations stored from DSS). Now I'm trying add Document Time-stamp but when I open PDF in adobe rea

Re: [iText-questions] Error using pdfsmartcopy

2010-04-13 Thread John Polley
Mark, Thanks for the response. Not sure if you saw the attached that explains that my error was the result of an itext bug. Regards From: Mark Storer [mailto:msto...@autonomy.com] Sent: Monday, April 12, 2010 11:57 AM To: Post all your questions about iText here Subject: Re: [iText-qu

Re: [iText-questions] "Post-it" like rectangle overlapping table text?

2010-04-13 Thread thomas . rochon
Hey! It works like a charm!My problem was all about picking the correct canvas (PdfPTable.TEXTCANVAS).Thank you so much for your support and patience.Best regards,Thomas Steria Mummert Consulting AG Vorsitzender des Aufsichtsrates: Jürgen Sponnagel - Vorstand: Oliver Nazet (Vors.), Dr. Reinhard Li

Re: [iText-questions] adding a pagebreak to a table

2010-04-13 Thread Wain, Matthew
Hi Слава Красильников (as per 1T3Xt suggestion) If you use the writeSelectedRows(), perhaps you can work out in advance when the next trigger is going to occur? If so you can work out how many row's to write, stop that table and then create the new one on the newPage. All the best, Matthew -

Re: [iText-questions] adding a pagebreak to a table

2010-04-13 Thread Wain, Matthew
You could add one row to the document at a time, or add effectively one table to the page at a time, emulating it as a row. Then whilst in your loop you would simply check for your trigger to start a new page. That way the document is always upto date and ready for 'newPage' at any time. Be a

Re: [iText-questions] "Post-it" like rectangle overlapping table text?

2010-04-13 Thread 1T3XT info
thomas.roc...@steria-mummert.de wrote: > I already tried to, but the PdfPTable is always printed ontop of the > rectangle That's explained in the book (chapter 5 of the second edition). > I tried as followed: > > 1.: create an instance of Document OK > 2.: creating an instance of PDFWriter O

Re: [iText-questions] adding a pagebreak to a table

2010-04-13 Thread 1T3XT info
Слава Красильников wrote: > Matthew is right. I need to start table from a mew page in the mid of > the previous page. > So, i have to write some number of rows at one page, and i don't know > the exact number of them at the moment of creating document, and on > some trigger i need to start writing

Re: [iText-questions] adding a pagebreak to a table

2010-04-13 Thread Слава Красильников
Matthew is right. I need to start table from a mew page in the mid of the previous page. So, i have to write some number of rows at one page, and i don't know the exact number of them at the moment of creating document, and on some trigger i need to start writing following rows from the next page.

Re: [iText-questions] "Post-it" like rectangle overlapping table text?

2010-04-13 Thread thomas . rochon
>So you're not talking about an annotation,>but about real content?>>In that case it's also simple to achieve what you need.>If you know the coordinates, you can create a Rectangle object>and add that to the document.>>If you don't know the coordinates, you can retrieve them in>a cell event, and us

Re: [iText-questions] [MAVEN] iText 5.0.2 is online

2010-04-13 Thread Bruno Lowagie
Bruno Lowagie wrote: > You can read more about this release here: > http://itextpdf.com/history.php?branch=history.50&node=502 > You can download the new release from SourceForge: > https://sourceforge.net/projects/itext/files/ I forgot to add this URL: http://maven.itextpdf.org/ That's where you

Re: [iText-questions] adding a pagebreak to a table

2010-04-13 Thread 1T3XT info
Wain, Matthew wrote: > Perhaps he needs to clarify what he needs, as it seemed to me > (and I'm often wrong ;-) ), that he would have a table spanning many pages, > then at some point he needs it to start a new page mid page, > as opposed to just writing a load of row's and the page's automatically

Re: [iText-questions] adding a pagebreak to a table

2010-04-13 Thread Wain, Matthew
Perhaps he needs to clarify what he needs, as it seemed to me (and I'm often wrong ;-) ), that he would have a table spanning many pages, then at some point he needs it to start a new page mid page, as opposed to just writing a load of row's and the page's automatically splitting as such across

Re: [iText-questions] adding a pagebreak to a table

2010-04-13 Thread 1T3XT info
Слава Красильников wrote: > Hi. > I have encountered a subj problem. I am constructing quite large > pdfptable (from ) from an array of strings, which are taken from the > database. And on some trigger i need the table to be continued on new > page. I insert document.newPage(), but that doesn't see

[iText-questions] iText 5.0.2 is online

2010-04-13 Thread Bruno Lowagie
Hello all, I'm revising the final manuscript of "iText in Action - 2nd Edition". Normally, the final review by external reviewers should start next week. The examples that come with the book contain new functionality, so it was time to make a new release: iText 5.0.2. Chapter 15 of the book ha

Re: [iText-questions] adding a pagebreak to a table

2010-04-13 Thread Wain, Matthew
Hi, document.newPage() should work. Perhaps it's that you need to end the current table you're using (so that it doesn't try to write it to the the next available location), and create a new table for the new page? (I'm unsure if this works but very easy to code a new table to start adding dat

[iText-questions] adding a pagebreak to a table

2010-04-13 Thread Слава Красильников
Hi. I have encountered a subj problem. I am constructing quite large pdfptable (from ) from an array of strings, which are taken from the database. And on some trigger i need the table to be continued on new page. I insert document.newPage(), but that doesn't seem to work. Are there any other metho

Re: [iText-questions] What version of Adobe Acrobat?

2010-04-13 Thread 1T3XT info
Karen Keller wrote: > After doing a little more investigative work, it does seem to be > something with my program that is causing the problem, and not the > version of the PDF document. > > The error is "There was an error opening this document. The file is > damaged and could not be repaired.

Re: [iText-questions] "Post-it" like rectangle overlapping table text?

2010-04-13 Thread 1T3XT info
thomas.roc...@steria-mummert.de wrote: > I need it much simpler. It's a given requirement, that a colored > rectangle with textual content should > overlap some of the table's cells (partially). The "text annotation" > hint was great and helpful, but I > have to deal with the given requirements.

Re: [iText-questions] "Post-it" like rectangle overlapping table text?

2010-04-13 Thread thomas . rochon
>thomas.roc...@steria-mummert.de wrote:>> Hi list members!>> >> I created a table with several cells (textual content) with iText.>> Now I'd like to put "Post-it" like comments (rectangle with text >> comment) above the table cells,>>In PDF language: you want to add "sticky notes" a.k.a. "text>anno

Re: [iText-questions] [question]how to get whole content of existing pdf?

2010-04-13 Thread 1T3XT info
Franky Cheng wrote: > 1.What I want is to get the whole byte content of a pdf,and with it I can > compute a SHA-1 code of this pdf file. I check API and only found > getPageContent(), is that mean I need to make a for loop to get all content > of a pdf?... No, the page content can refer to exte

[iText-questions] [question]how to get whole content of existing pdf?

2010-04-13 Thread Franky Cheng
Hi, all guys. These days I try to help my classmate to make a pdf work.I'm a newbie on Itext(in fact I did not use java often;)). But our time is really short,so if any of my qusetions are silly,forgive me...I search ed for 2 days on google and I read some chapters of Bruno's book (part1,2) but