Re: [iText-questions] With this void method, how can I get a reference to my request?

2007-09-10 Thread Brian McKeever
Yes, not really an iText question. Why don't you pass the request object into the PdfPageSignature constructor? Brian On 9/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > Hi Bruno and Paul, > > I have this code that produces an onEndPage event (i.e. putting the page > number) on each p

Re: [iText-questions] Tiff to PDF iTextSharp Problem

2007-06-22 Thread Brian McKeever
On 6/22/07, Ethan King <[EMAIL PROTECTED]> wrote: > Image img = Image.getInstance(bm, null, true); > > The program justs sits there using 99% of the cpu. I have let it run as > long as 20 minutes without it ever finishing or giving me an error. I would > expect this kind of operation to take just

[iText-questions] Coordinate system for annotations

2007-06-22 Thread Brian McKeever
Hello all, I'd like to apply annotations at specified locations on a pdf page, but I'd like to transform the coordinate system beforehand. I've tried both PdfContentByte.SetTextMatrix and PdfContentByte.ConcatCTM (with arguments (0, -1, 1, 0, 0, img.Width), which should rotate it 270 degrees and

Re: [iText-questions] iText PDF Generation / Removal Question

2007-05-24 Thread Brian McKeever
On 5/24/07, Adam Leszinski <[EMAIL PROTECTED]> wrote: > The short: Basically looking to stamp a PDF template on the fly and present > it to the user without having all these resulting generated PDFs with > sequence numbers to clean up. User wants to download a PDF, we stamp it with > a sequence nu

Re: [iText-questions] table of contents

2007-05-22 Thread Brian McKeever
On 5/22/07, Bruno Lowagie (iText) <[EMAIL PROTECTED]> wrote: > The option I would have used (and probably already proposed on the > mailing list in the past), [...] Thanks for the tip. It worked out pretty nicely. Brian - T

[iText-questions] table of contents

2007-05-21 Thread Brian McKeever
Hello all, My pdf has bookmarks, but the customer would like it to have a table of contents so that they can navigate the document even when it's in paper form. I'd like to form lines where the name of the section is aligned left, the page number is aligned right (or with a tab stop far to the ri

Re: [iText-questions] Smartcard signing with iTextSharp and .NET 2.0

2007-05-21 Thread Brian McKeever
> I've prepared an example on how to sign with smartcards with iTextSharp and > .NET 2.0. This example also shows how to use external signatures. The > example is at > http://itextpdf.sourceforge.net/howtosign.html#signextitextsharp. > > Paulo Thanks! I can't wait to try it out. Brian -

Re: [iText-questions] Question on itext

2007-05-09 Thread Brian McKeever
On 5/9/07, PR, Rajesh (GE Infra, Energy) <[EMAIL PROTECTED]> wrote: > My requirement is that, i should be able to generate a pdf in both > English and Spanish. How do i do such stuff? What does this mean? A single PDF in two languages? Your first question should be "does the PDF format support t

Re: [iText-questions] Generating a PDF from a 3rd Party Applications OutPutStream

2007-04-26 Thread Brian McKeever
On 4/26/07, Kuwik Jeff F Contr AFRS/RSID <[EMAIL PROTECTED]> wrote: > I am currently using a 3rd party tool to generate a document, this document > needs to be turned into a PDF. I have a function that can write out the > document to an OutputStream. Is there anyway to take this outputstream and >

Re: [iText-questions] New Dictionary

2007-04-24 Thread Brian McKeever
> The error message is: > > Exception in thread "AWT-EventQueue-0" java.lang.NoSuchFieldError: HALFTONE > at com.lowagie.text.pdf.PdfHalftone.(Unknown Source) > > not HHALFTONE as showed the previos message. Maybe you're running against the wrong version of iText (i.e. not the version you add

Re: [iText-questions] Reading a PDF file

2007-04-19 Thread Brian McKeever
> Is there a way in iText to avoid having to manually parse the raw bytes > returned from PdfReader.getPageContent() in order to get the text on a page? There's the PRTokeniser class, but you should be aware of the potential difficulties involved in trying to extract text from a PDF (unexpected t

Re: [iText-questions] Best Font to support all European languages ?

2007-04-19 Thread Brian McKeever
On 4/19/07, mister bean <[EMAIL PROTECTED]> wrote: > I can't vouch for this font (I don't use it) so I don't know if it fulfills > your requirements of a small embedded size. Perhaps Pablo or another forum > member can speak to this. Good luck. My post and Paulo's response from a few weeks ago may

Re: [iText-questions] Out-of-the-Box iText Tool to extract Pages from an existing PDF

2007-04-12 Thread Brian McKeever
> Are there any tools provided by iText that will allow me to quickly extract a > specified number range of pages from a large existing PDF document and > output to a new PDF document containing only the specified pages.?? > > I was thinking about using the PdfCopy class for this That's pretty muc

Re: [iText-questions] Using PdfSignatureAppearance.fitText(...) with converted values

2007-04-09 Thread Brian McKeever
On 4/8/07, David Powell <[EMAIL PROTECTED]> wrote: > I have a list of words and the coordinates (i.e. llx,lly, urx, ury) of the > position of each word in the PDF. The coordinate values are specified at a > resolution of 1200 PPI. I converted the coordinate values to PDF default > resolution of 72

Re: [iText-questions] iText C# Font Class

2007-04-02 Thread Brian McKeever
> Thank you - i will look at my references but I'm certain I don't use > System.Drawing.Font. > > If so, is there somethign else I might be doing wrong?? You can attach your source file if you like, but the compiler isn't pulling a System.Drawing namespace reference out of thin air. In any event,

Re: [iText-questions] Generating 'Enhanced' PDF from Image-based PDFs using iText

2007-04-02 Thread Brian McKeever
> > Now what I am attempting to > > do is to read each word and its coordinate from the text file and > > place that particular word in the image-based PDF document at the > > location specified by the coordinates of that word. > Yes, what you are doing is the right way to approach the problem. >

Re: [iText-questions] iText C# Font Class

2007-04-02 Thread Brian McKeever
> Font font = new Font(Font.COURIER, 10, Font.BOLD); > When i compile my project, i get the following error: > Error 4 'System.Drawing.Font' does not contain a definition for 'COURIER' > C:\Myassemblies\Chapter1_iText\Chapter1_iText\Form1.cs > 120 43 Chapter1_iText You want an instance of iTextSha

Re: [iText-questions] How to check if a field is required

2007-03-29 Thread Brian McKeever
> Could someone help me to figure out how to check if a form field is > required? > > I can only find ways to make a field required using API, but not to verify > if a field is required. Take a look at the Ff entry in the field's PdfDictionary. The second bit tells if it's required or not. See t

Re: [iText-questions] How to open a PDF in append mode

2007-03-27 Thread Brian McKeever
> How do i open an existing PDF file if > open(String pathToPDFile); is not allowed... > thanks. > please understand im new with iText. What does "not allowed" mean? Is the file read-only on disk? You should get an exception explaining the situation.

Re: [iText-questions] CCITTFaxDecode support

2007-03-23 Thread Brian McKeever
>> I notice that there is a TIFFFaxDecoder class for reading in compressed >> Tiff files. How hard would it be to get one to call the other? Are >> the algorithms identical or just similar? Is there anything I should >> know before I try to implement it myself? > GetStreamBytes() is there to de

[iText-questions] CCITTFaxDecode support

2007-03-23 Thread Brian McKeever
Is there any reason that iText doesn't include a decoder for CCITTFaxDecode filters? (I'm looking at PdfReader.GetStreamBytes(PRStream, RandomAccessFileOrArray)). I notice that there is a TIFFFaxDecoder class for reading in compressed Tiff files. How hard would it be to get one to call the other?

Re: [iText-questions] Adobe 8 cannot read filled-in form, but OK with Adobe 7

2007-03-22 Thread Brian McKeever
> I can't crash Acrobat 8 on either Mac or Windows with the enclosed > document. > > If someone has a document that can reliably crash Acrobat - PLEASE > send it to me so we can fix Acrobat. > > Leonard > Adobe Systems The one he attached crashes Reader 8.0.0.456 for me 9 times out of 10 (Win XP,

Re: [iText-questions] Signing PDF with Windows Certificates

2007-03-19 Thread Brian McKeever
> itextsharp (and itext) is undergoing some major changes in the crypto area > (see the CVS) and when the next release is out I'll prepare some examples on > how to sign using certificates from the Windows certificate store supporting > non exportable private keys like those coming from smartcards.

Re: [iText-questions] Stamp annotations

2007-03-08 Thread Brian McKeever
> It's almost right. Thanks a lot! That fixed it. > stampImg.SetAbsolutePosition(0, 0); Why do you set it to 0,0? Is this the image's position relative to the annotation position? Brian - Take Surveys. Earn Cash. Influen

[iText-questions] Stamp annotations

2007-03-08 Thread Brian McKeever
Hi All, I'm looking into adding stamp annotations to my pdf documents. The source for the stamps will be a bitmap file. I've read the relevant section of the spec, and below is the code I've come up with. The pdf that comes out does have an annotation in the specified location - you can tell be

Re: [iText-questions] get plain text and links

2007-03-08 Thread Brian McKeever
> Hello! > I'm a newbie on itext and i'd like to know if it's possible to extract > plain text from an existing PDF document! > Further i'd like to know if it's possible to extract all hyperlinks (http://, > https://, ftp://, mailto:)?? What Bruno says is true, but I've had pretty good success ex

Re: [iText-questions] Signing

2007-02-21 Thread Brian McKeever
> Hello! > > Can I create PDF with signing permition onlly? > > Thanks. I think you want to grant the AllowFillIn permission. Table 3.20 (in the version I'm looking at) of the Pdf spec lays out exactly what each permission flag means. You can cross-reference those with the PdfReader source file

Re: [iText-questions] PDF in web page

2007-02-08 Thread Brian McKeever
> I have a sqlserver blob field that contains a pdf file, > I need to retrieve the document and display it on a new web page,using asp.net > 1.0 C#. This has nothing to do with iText. Just get the data and send it back to the browser. -

Re: [iText-questions] Get Signature Field

2007-02-06 Thread Brian McKeever
> > Actually I am not meant to forge a signed PDF. > > Example: 1 pdf contains 2 pages and has signed in each pages. > > User needs to split the pdf become 2 pdf instead. > > I can managed spliting it become 2 pdf but reliazed the signature is > > missing. > when you split a document you are alter

Re: [iText-questions] loading images

2007-02-02 Thread Brian McKeever
> We want to load the images as file from UI and pass to back-end as file > object and then want to use something like > Image.getInstance (File file) to create images. [...] > There is Image.getInstance(String filename) and Image.getInstance(URL url) > in API, but they would require class loader

[iText-questions] Signing PDF with Windows Certificates

2007-01-26 Thread Brian McKeever
Hello everybody, I'm looking into applying a signature to a pdf using iTextSharp, when the certificate is a *non-exportable* Windows Certificate. Since I can't get the PublicKey for this type of Certificate, I'm basing it on the code in Appendix D of the book. The code runs, but the signature d