Re: [iText-questions] iText and TimeStamp

2009-07-07 Thread Bert Vingerhoets
If you like to sign with a smartcard, you usually have to use an external signature. Check the sample code I posted a few days ago for a possible way to combine this with timestamping. Copy the OCSP part from Paulo's example if you like to use OCSP as well. Regards, Bert Vingerhoets - Research

Re: [iText-questions] iText extracting SWF from PDF.

2009-07-07 Thread keithnuix
Ok, I see, this is the newer way of embedding media into PDF's, possibly not supported by iText yet. The annotation code I linked to was to extract multimedia objects embedded in their native formats as annotations, not the newer way which converts them to SWF RichMedia elements. Anyway, if anyo

[iText-questions] Error when viewing pdf

2009-07-07 Thread Damon Borgnino
Hi, After adding a template to my pdf file using iText I get the following error when trying to read the file with Acrobat: "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem". This er

[iText-questions] Table fixed Height/Cell fixed height in Xml file

2009-07-07 Thread Satya Kadiam
Hi, How we can set the table fixed height, cell fixed height in XML file to process the XMl into PDF? Thanks, SK -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a lim

[iText-questions] Timestamp and OCSP examples

2009-07-07 Thread Paulo Soares
See http://itextpdf.sourceforge.net/howtosign.html for examples on how to sign with timestamps and OCSP in Java and C#. Paulo -- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in p

[iText-questions] change default font size

2009-07-07 Thread Jason Berk
How do I change the default font size from 12 to 9? 90% of the text I write is size 9 and I'd like to get rid of: FontFactory.getFont(BaseFont.HELVETICA, 9); Jason The PEN is now mightier than the PIN. Simply use your PEN instead of your PIN and sign for your PEFCU Visa Check Card purc

Re: [iText-questions] iText and TimeStamp

2009-07-07 Thread redo
It would be really nice! Right now I have successfully extracted TimeStampToken from my TSA but I am confused how it must be encapsulated in pdf document. If you could provide a sample code, I believe it will help a lot. Paulo Soares-3 wrote: > > I'll post tonight an example in Java and C# on

Re: [iText-questions] How do I extract the tag tree from an existing pdf using itext

2009-07-07 Thread Dustin Michaels
Thanks for looking at the PDF Mark. The pdf is a little strange because my boss purposely made it so the tag and content tree views were out of sync in order to test the tag tree parsing code. Not sure if this is causing the weirdness in point number 3 that you wrote. I'm not 100% certain bu

[iText-questions] How to concatenate, number pages and keep image size in proportion ?

2009-07-07 Thread dmholte
I am trying to concatenate two pdf's. The first pdf is a set of "notes" the second pdf is comprised of images. I found an example that seems to work as far as getting the page numbers correctly on all the pages, however only part of the image is displayed on the final pdf. Paginate is set to tr

Re: [iText-questions] How do I extract the tag tree from anexisting pdf using itext

2009-07-07 Thread Mark Storer
>Does anyone have any idea how to associate content with tags especially >when the two trees are not in sync (see attached file for an example). Okay... here's the beginning of the content for your sample page: BT /P <>BDC /CS0 cs 0 scn /TT0 1 Tf 0.001 Tc -0.003 Tw 10.98 0 0 10.98 72 3

Re: [iText-questions] [Itext-releases] iTextSharp 4.1.6 - iText 2.1.7

2009-07-07 Thread glen . hamel
Awesome job guys!!! All of you deserve a huge pat on the back and loads of money from the sale of the books and such.. (Yup, I got my book) Glen Hamel Lead Programmer / Technician Auric Networks Canada, Inc. 570 Orwell Street, Unit 1 Mississauga, Ontario L5A 3V7 Phone 905.361.7621 Fax 905.274.

Re: [iText-questions] Some Help Please

2009-07-07 Thread 1T3XT info
Mohammed Ayesh wrote: > can I insert (MultiColumnText) inside (PdfPCell) No, that's not possible. Maybe if you clarify what your intention is, we could help you further. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info -

Re: [iText-questions] PDF Protection and Signing with iText

2009-07-07 Thread Paulo Soares
PdfReader reader = new PdfReader("/STORE/F16.pdf"); FileOutputStream fout = new FileOutputStream("/STORE/F16-signed.pdf"); PdfStamper stp = PdfStamper.createSignature(reader, fout, '\0'); stp.setEncryption(...); PdfSignatureAppearance sap = stp.getSignatureAppearance(); sap.setCrypto(key, chain, nu

Re: [iText-questions] Some Help Please

2009-07-07 Thread Paulo Soares
There's no automatic mechanism to have multi-columns inside a cell. Paulo > -Original Message- > From: Mohammed Ayesh [mailto:seven.april1...@gmail.com] > Sent: Tuesday, July 07, 2009 2:25 PM > To: itext-questions@lists.sourceforge.net > Subject: [iText-questions] Some Help Please > >

[iText-questions] Some Help Please

2009-07-07 Thread Mohammed Ayesh
*Hello I hope you are Fine and in good Health... **I Have Question and I hope to advice me if this is possible or not ... can I insert (MultiColumnText) inside (PdfPCell) like this --> new PdfPCell(new MultiColumnText(new Paragraph(string, font))); ** Thank you for Helping... M.Ayesh * ---

[iText-questions] PDF Protection and Signing with iText

2009-07-07 Thread santhosh . tr
Hello Friends, I'm stuck at an issue with my code. I want to protect a PDF( User is Allowed to print only) and then Sign it. When tried to do so, i got an exception "com.lowagie.text.DocumentException: The original document was reused. Read it again from file." My code is some thing like

[iText-questions] (no subject)

2009-07-07 Thread santhosh . tr
-- Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter th

Re: [iText-questions] iText and TimeStamp

2009-07-07 Thread Paulo Soares
I'll post tonight an example in Java and C# on how to sign with timestamps and OCSP. However, this may not help you as you're interested in smartcards and that (usually) requires an external signature bypassing the iText code. Paulo > -Original Message- > From: redo [mailto:redoman...@

Re: [iText-questions] iText extracting SWF from PDF.

2009-07-07 Thread Leonard Rosenthol
The SWF's in there aren't attachments or embedded files, they are part of a RichMedia annotation. You will need to write different code to get the data from them. Leonard -Original Message- From: keithnuix [mailto:ke...@nuix.com] Sent: Monday, July 06, 2009 10:24 PM To: itext-question

[iText-questions] iText and TimeStamp

2009-07-07 Thread redo
Could someone provide pseudo code how to add the signature and timestamp to pdf because I have seen some realizations on web (for example http://www.mail-archive.com/itext-questions@lists.sourceforge.net/msg40287.html ) and there are a lot of questions. Currently i would like to get answers on suc

Re: [iText-questions] Setting document header more than once causes unusual problems

2009-07-07 Thread Paulo Soares
Let's see: - HeaderFooter is not supported anymore. - You can't call Document methods in page events. - The way to set headers and footer is through page events This is documented everywhere. Paulo > -Original Message- > From: Jeffrey White [mailto:whitej3...@yahoo.com] > Sent: Tuesday

Re: [iText-questions] Transparent background for whole pdf

2009-07-07 Thread Ian Rashkin
In case anyone needs the same info: I found the answer from PDFTron, and had nothing to do with iText - just a setting in the pdf-to-image conversion command ("--transparent_page", for those in similar need). Thanks to all who helped. -Ian _ From: Ian Rashkin [mailto:irash...@cy

Re: [iText-questions] get page size

2009-07-07 Thread Frauke
Hello, I have the same problem, the resulting PDF does not have the same size as the incoming PDF. The page size and crop box have the same size A4 but the resulting file has a smaller page size. I tried setting the page size and crop box in various ways, following different suggestions from the

[iText-questions] Setting document header more than once causes unusual problems

2009-07-07 Thread Jeffrey White
Hello, and thank you for taking time to analyze this problem. I am trying to create a pdf file where multiple images of documents are translated onto the pages.  I am having a problem where setting the header with document.setHeader() multiple times is causing the header to become distorted afte

[iText-questions] [Itext-releases] iTextSharp 4.1.6 - iText 2.1.7

2009-07-07 Thread News about iText releases
Hello, short message to inform you that iTextSharp 4.1.6 was released: http://sourceforge.net/projects/itextsharp/files/itextsharp/itextsharp-4.1.6.zip We've also updated iText to match the most recent changes that are also in iTextSharp: http://sourceforge.net/projects/itext/files/iText/iText-2.

Re: [iText-questions] Adding page number information in a table

2009-07-07 Thread 1T3XT info
fmarchioni wrote: > Hi all ! > I'm a beginner user of iText, my need is to print a large Tabular data in > PDF. So the example > "AddBigTable" is just perfect. I just need to add some information at the > header/bottom of the > document which contains the page number..(of the document) > > is

Re: [iText-questions] Serach string in pdf

2009-07-07 Thread 1T3XT info
shaik.nooru...@thomsonreuters.com wrote: > Hi Team, > > I want to search a string like ‘buy’, ‘buy coverage’, ‘go forward’ in my > PDF > So please send me the code it will be more helpful for my project Thomson Reuters has a support contract for iText(Sharp), so you can use the support mailing

Re: [iText-questions] Serach string in pdf

2009-07-07 Thread Alexis Pigeon
Hi Noor 2009/7/7 > Hi Team, > > I want to search a string like ‘buy’, ‘buy coverage’, ‘go forward’ in my > PDF > > So please send me the code it will be more helpful for my project > If what you need is the absolute position of such string in the document, that's impossible to achieve with iTe

[iText-questions] Serach string in pdf

2009-07-07 Thread shaik.noorulla
Hi Team, I want to search a string like 'buy', 'buy coverage', 'go forward' in my PDF So please send me the code it will be more helpful for my project Thanks & Regards Noor -- Enter the BlackBerry Dev

[iText-questions] Adding page number information in a table

2009-07-07 Thread fmarchioni
Hi all ! I'm a beginner user of iText, my need is to print a large Tabular data in PDF. So the example "AddBigTable" is just perfect. I just need to add some information at the header/bottom of the document which contains the page number..(of the document) is there a function in iText which o

[iText-questions] Antwort: Re: PdfPTable Absolute Positioning

2009-07-07 Thread Benjamin Rein
Hi tamtam18, you won't get constantly good results when you change beetween absolute and automatic positioning on one page. The page could look good for some content, but you never can be sure for all content. The only exception I can think of is a page content with automatic positioning and ad

Re: [iText-questions] How to sign with a smartcard using anexternalsignature dictionary with iTextSharp, CAPICOM and .NET 1.1

2009-07-07 Thread Paulo Soares
Qualify X509Certificate with the full assembly name as it is done in the C# example and do it with the right assembly name. Paulo > -Original Message- > From: dakhla.0...@hotmail.com [mailto:dakhla.0...@hotmail.com] > Sent: Tuesday, July 07, 2009 9:25 AM > To: Post all your questions a

Re: [iText-questions] How to sign with a smartcard using anexternalsignature dictionary with iTextSharp, CAPICOM and .NET 1.1

2009-07-07 Thread dakhla.0563
Thanks Paulo for your quick response. At the end the code leaves as follow, Public Function GetChain(ByVal cer As Certificate) As System.Security.Cryptography.X509Certificates.X509Certificate() Dim context As ICertContext = CType(cer, ICertContext) Dim ptr As IntPtr = New IntPtr(c

Re: [iText-questions] PdfPTable Absolute Positioning

2009-07-07 Thread 1T3XT info
tamtam18 wrote: > Hello, I am using the following code to place a PdfPTable at an absolute > position: > > float yAbsolutePosition = iTextDoc.bottomMargin() + > iTextPdfPTable.getTotalHeight(); > iTextPdfPTable.writeSelectedRows(0, -1, iTextDoc.leftMargin(), > yAbsolutePosition, pdfWriter.

Re: [iText-questions] Lists into table cells

2009-07-07 Thread 1T3XT info
Antonio Manuel Muñiz wrote: > I am trying, but addCell method only accept String, Phrase and PdfPCell > as parameters, and PdfPCell don't accept a List as parameter. > In iText examples I don't find anything, so I don't see the way to > achieve this. > > I would be very grateful if you tell me h