Re: [iText-questions] Table of Contents

2011-04-18 Thread Colin Cheng
You should call PdfReader's consolidateNamedDestinations() in advance. On Mon, Apr 18, 2011 at 12:59 AM, meziano wrote: > Hello, > Using itext 5.0.4 I succed to do the following steps: > -generate a "dynamic" main-document in memory ("dynamic" means here with > an > uknown number of pages) > -a

Re: [iText-questions] Problem of multi-rowspan

2011-04-15 Thread Colin Cheng
Thanks a lot. I'll try it out later. On Fri, Apr 15, 2011 at 8:32 AM, 1T3XT BVBA wrote: > Op 13/04/2011 19:05, Colin Cheng schreef: > > No rush. Take care of your family first. > > I think the problem has been solved. I've uploaded the solution to the > SVN repos

Re: [iText-questions] Problem of multi-rowspan

2011-04-13 Thread Colin Cheng
No rush. Take care of your family first. On Tue, Apr 12, 2011 at 11:20 PM, 1T3XT BVBA wrote: > Op 12/04/2011 20:33, Colin Cheng schreef: > > Thanks for the answer. But I tried the following code, the problem > > persists. > > I know, it's a bug. > I'm w

Re: [iText-questions] Problem of multi-rowspan

2011-04-12 Thread Colin Cheng
b); On Tue, Apr 12, 2011 at 11:33 AM, Colin Cheng wrote: > Thanks for the answer. But I tried the following code, the problem > persists. > > StringBuilder sb = new StringBuilder(); > for(int i=0; i<100; i++) { > >

Re: [iText-questions] Problem of multi-rowspan

2011-04-12 Thread Colin Cheng
; I am not really sure about the details but it might help reading the table > related chapter in the book and learn more about the modes. > > Good luck > Nurettin > > On Tue, Apr 12, 2011 at 2:05 PM, Colin Cheng wrote: > >> Is there anyone can help me? Thanks a lot. >&

Re: [iText-questions] Problem of multi-rowspan

2011-04-12 Thread Colin Cheng
Is there anyone can help me? Thanks a lot. On Mon, Apr 11, 2011 at 4:24 PM, Colin Cheng wrote: > Hi, > > When the cell with multi-row span contains long text, the table will not be > rendered correctly. Thanks for any advice. > > Here is the code: > > this.doc =

[iText-questions] Problem of multi-rowspan

2011-04-11 Thread Colin Cheng
Hi, When the cell with multi-row span contains long text, the table will not be rendered correctly. Thanks for any advice. Here is the code: this.doc = new Document(PageSize.A4); this.writer = PdfWriter.getInstance(doc, new FileOutputStream("test.pdf")); doc.open();

Re: [iText-questions] Character Direction

2011-04-05 Thread Colin Cheng
Can I override the WriteFont() function to accomplish the char rotation? On Sun, Mar 27, 2011 at 12:51 AM, 1T3XT BVBA wrote: > Op 27/03/2011 9:48, Colin Cheng schreef: > > Actually, I need every character to be rotated counterclockwise. So if > > the BaseFont or Font can do th

Re: [iText-questions] Character Direction

2011-03-25 Thread Colin Cheng
Sorry for the question. I realized that chunk is the smallest element. What I want to do is to rotate the whole chunk without using the PdfPCell setRotation function. On Fri, Mar 25, 2011 at 11:06 AM, Colin Cheng wrote: > Hi, > > Is it possible to rotate a single character i

[iText-questions] Character Direction

2011-03-25 Thread Colin Cheng
Hi, Is it possible to rotate a single character in a chunk? Thanks, Colley -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Busin

Re: [iText-questions] problems about chunk

2011-03-24 Thread Colin Cheng
> On Thu, Mar 24, 2011 at 4:21 PM, Colin Cheng wrote: > >> Hi, >> >> I'm not sure if the following issues are bugs or not. >> >> 1. When I try to use Chunk.setGenericTag() function, and the chunk is >> added to a PdfTemplate, then it will not trigger

[iText-questions] problems about chunk

2011-03-24 Thread Colin Cheng
Hi, I'm not sure if the following issues are bugs or not. 1. When I try to use Chunk.setGenericTag() function, and the chunk is added to a PdfTemplate, then it will not trigger the page's onGenericTag event. 2. When the chunk is about to be added to a PdfTemplate, the chunk's setLocalGoto() will

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] [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

[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

[iText-questions] Problem using PdfTextExtractor.getTextFromPage(), ArrayIndexOutOfBoundsException thrown by CMapAwareDocumentFont.decodeSingleCID

2009-09-09 Thread Sophia Cheng
(Apologies for the duplicate posting, but I don't think my mail yesterday was formatted correctly when I looked at SourceForge...it didn't show the text below) Thanks Paulo for answering my earlier question about accessing a secured pdf. I realize now that the error I was getting when trying to r

[iText-questions] Working with an existing secured pdf

2009-09-04 Thread Sophia Cheng
Hello, Hopefully this isn't a stupid question... Here is what I am trying to do. I have a folder of journal articles (in pdf format) that have been downloaded (legally) for research. What am I trying to do is to write a little java app that will go through each article and extract the digital o

Re: [iText-questions] About display Chinese Character

2007-01-16 Thread Tommy Cheng
Sorry, typo mistake. NOT table.addCell(b[i].getChiName()) ; SHOULD BE table.addCell(new Phrase(b[i].getChiName(), font)) ; Thanks again. Regards, Tommy Cheng --- Tommy Cheng <[EMAIL PROTECTED]> wrote: > Dear Bruno, > > Thanks for your kindly help. > I overwrite the serve

Re: [iText-questions] About display Chinese Character

2007-01-16 Thread Tommy Cheng
ic, 12); PdfPTable table = new PdfPTable(2); table.addCell("Ref. No."); table.addCell("Chinese Name"); for (int i=0; b!=null && i wrote: > Tommy Cheng wrote: > > However, it shows me below exception > > > > Exception in thre

[iText-questions] About display Chinese Character

2007-01-16 Thread Tommy Cheng
sult is fail to show the Chinese character. Please help to give me some more suggestions. I do think iText is a great product but I need some help. Thanks a lot. Regards, Tommy Cheng _ 捇誥轎煤G蚘眊ㄜ笢

[iText-questions] Problem printing code39 barcode in Adobe 7.0

2005-07-05 Thread Cheng
I use iText to generate PDF's with code39 barcodes. These PDF's can be opened and printed in Acrobat Reader 5.0. Since upgrading to Adobe 7.0 with update 7.0.1, the same PDF's can be opened but cannot be printed. I get the error "The instruction at "0x2d864aa2" referenced memory at "0x0008".

[iText-questions] Horizontal lines in multi-column text

2005-02-26 Thread Lee Cheng Wei (Miguel)
Hello everyone, I'm a newbie at iText and wonder if there's any kind soul to help me out with a problem. I have several paragraphs (or images) that should go in columns with the restriction that every paragraph (or image) should be separated by a horizontal line. Of course, I want iText to a

[iText-questions] setPageSize() problem

2002-11-11 Thread amy cheng
Now, i have 3 pages, the first and third are portraition, the second is landscape.  if i write something in first page, everything works fine. but if i don't write anything in the first page(comment document.add(new Paragraph("Hello World sun"));) and set page size to A4 rotate directly, the second

[iText-questions] blank window when i use servletoutputstream

2002-10-17 Thread amy cheng
Hi, all, My browser is MSIE 5.0 and i try to run following servlet on tomcat but still get blank window. is there anybody give me a hand? thanks   import java.io.PrintWriter;import java.io.IOException;import java.io.ByteArrayOutputStream;import java.io.File; import java.util.Date; import javax.ser

[iText-questions] Re:how to print pdf to printer on client sidedirectly?

2002-10-15 Thread amy cheng
i am sorry i didn't make clear in last email. what i try to do is: when the brower user click print button on a web page, some pdf documents will be printed directly to local default printer without any intervention like preview or display printer dialog .   is there any better way to realize it?

[iText-questions] how to print pdf to printer on client side directly?

2002-10-15 Thread amy cheng
hi,all, I'm currently doing a project which migrate application from VB to JSP/Servlet. I want to print serveral kinds of documents to printer on client side directly without any user interaction such as preview(display), show select printer dialog etc; Also some printers on client side are not net