Re: [iText-questions] Extra space at the top of image

2011-02-25 Thread Nurettin DAG
This piece of code is a little hard to understand without knowing what the tempString which is the actual content is. However, if you are talking about a little bit of space one reason could be that PdfPCell has a default padding of 2 pixels on each side. If you set cell.setPadding(0); that should

Re: [iText-questions] Document alignment changes automatically from second page

2011-02-25 Thread chitra
Thanks, I got it now. -- View this message in context: http://itext-general.2136553.n4.nabble.com/Document-alignment-changes-automatically-from-second-page-tp3323154p3325134.html Sent from the iText - General mailing list archive at Nabble.com. --

[iText-questions] Extra space at the top of image

2011-02-25 Thread Hari Ramakrishnan
Hi, I get a string html dynamically and I have to generate a PDF for that. Whenever an image is present in the HTML string, I get some extra space at the top of the image which looks quite awkward. Can you please tell me what I am doing wrong? The code I am using is below, PdfPTable pdfTable =

Re: [iText-questions] Adding Fonts to PDFs

2011-02-25 Thread 1T3XT BVBA
Op 25/02/2011 19:51, Craig Hodder schreef: > Thank you very much for your quick response! I will try this and see if I > can understand it. You may also want to try the examples from chapter 6 on the kuujinbo site in combination with the free chapter 6 you can find here: http://affiliate.mannin

Re: [iText-questions] Adding Fonts to PDFs

2011-02-25 Thread Craig Hodder
Thank you very much for your quick response! I will try this and see if I can understand it. Thank you again! --- On Fri, 2/25/11, 1T3XT BVBA wrote: > From: 1T3XT BVBA > Subject: Re: [iText-questions] Adding Fonts to PDFs > To: itext-questions@lists.sourceforge.net > Date: Friday, February 2

Re: [iText-questions] Adding Fonts to PDFs

2011-02-25 Thread 1T3XT BVBA
Op 25/02/2011 19:30, Craig Hodder schreef: > Greetings to all. > > I am wondering how I might add to the font lists used by the BaseFont element > in the code; I have a custom font that I would like to use to add text to a > PDF with. In a previous code snippet, you posted: BaseFont.CreateFont(B

Re: [iText-questions] Difficulty in adding plain text to a PDF

2011-02-25 Thread 1T3XT BVBA
Op 25/02/2011 19:27, Craig Hodder schreef: > It would appear I am missing something very important. You're trying to run. Try walking first. Start with a standalone example, not with a web app. Once the standalone example works, you can easily adapt it into a web app. Why do you need a Document i

Re: [iText-questions] Document alignment changes automatically from second page

2011-02-25 Thread 1T3XT BVBA
Op 25/02/2011 19:09, chitra schreef: > Hi, > > First of all thanks to everyone who responded to my question. > > Nurettin : You really helped me to fix my issue. Instead of 32 pixels , i > set 3 pixels for margins and it is working fine. Why the first page always > working with default values even

[iText-questions] Adding Fonts to PDFs

2011-02-25 Thread Craig Hodder
Greetings to all. I am wondering how I might add to the font lists used by the BaseFont element in the code; I have a custom font that I would like to use to add text to a PDF with. Thank you in advance and I apologise if this seems ignorant. Craig Hodder ShadesOfKnight at yahoo dot com

Re: [iText-questions] Composite form field name - how to change the value?

2011-02-25 Thread qplace
1T3XT BVBA 1t3xt.info> writes: > > What could be the issue? > The issue is that you didn't read the documentation (section 8.2.2 of > "iText in Action"). > See also: http://support.itextpdf.com/node/59 Thank you for the help with the documentation and quick response, I greatly appreciate it.

[iText-questions] Difficulty in adding plain text to a PDF

2011-02-25 Thread Craig Hodder
Greetings to all. I apologise in advance for my ignorance. I am trying to learn, using iTextSharp, how to take an existing PDF and add a bit of text to it in a VB.NET environment. I am waiting for my copy of the book iText In Action to arrive, but wanted to try getting a head start... It woul

Re: [iText-questions] Document alignment changes automatically from second page

2011-02-25 Thread chitra
Hi, First of all thanks to everyone who responded to my question. Nurettin : You really helped me to fix my issue. Instead of 32 pixels , i set 3 pixels for margins and it is working fine. Why the first page always working with default values even though we set different value for margins. And w

Re: [iText-questions] VerticalAlignment in Table cell?

2011-02-25 Thread 1T3XT BVBA
Hello, you have posted a mail to itext-questions@lists.sourceforge.net but you weren't subscribed. You are receiving this answer because I've added your mail address in Bcc: I will do this only once! Further answers will be sent to the mailing-list only (you won't receive them if you don't subscr

[iText-questions] VerticalAlignment in Table cell?

2011-02-25 Thread Sebastian Müller
I'm using this code to draw cells of a table: Cell c22 = new Cell("CYCLO"); c22.Colspan = 5; c22.HorizontalAlignment = Element.ALIGN_LEFT; c22.VerticalAlignment = Element.ALIGN_MIDDLE; c22.BackgroundColor = ColorUtils.

Re: [iText-questions] Signing PDF with Belgian EID card: issuing certificates missing from path

2011-02-25 Thread Vroonen Julien
Hi Andreas, Hi Bram, Hi all, The problem is suspended because our client is not interested in that solution anymore. So I stopped researches and contacts. However, I will try to find a solution to this but I have no time to spend on this these months.. And it is not so obvious ; I tried PKCS7 s

Re: [iText-questions] Composite form field name - how to change the value?

2011-02-25 Thread 1T3XT BVBA
Op 25/02/2011 17:30, qplace schreef: > There is a field in existing pdf document with the name: > > fieldname = topmostSubform[0].Page1[0].changedCondition[0] > > The value of this field is "1" and I know that it is a check box. > > I am making the call: PdfStamper.AcroFields.SetField(fieldname, "Y

[iText-questions] Composite form field name - how to change the value?

2011-02-25 Thread qplace
There is a field in existing pdf document with the name: fieldname = topmostSubform[0].Page1[0].changedCondition[0] The value of this field is "1" and I know that it is a check box. I am making the call: PdfStamper.AcroFields.SetField(fieldname, "Yes"); and the value in this field does not chang

Re: [iText-questions] Javascript in PDF with Russian

2011-02-25 Thread Leonard Rosenthol
You missed my point. The ENTIRE STRING OF JAVASCRIPT needs to be in UTF16BE... -Original Message- From: LIHE [mailto:l...@linck-hvt.com] Sent: Friday, February 25, 2011 9:57 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Javascript in PDF with Russian Thats

[iText-questions] html parsing horizontal line

2011-02-25 Thread Xavi Deop
Hi, using itextSharp 5.0.6, I'm parsing html to create my pdf file and I've tried to draw a horizontal line without success. With border-bottom/border-top nothing is displayed in the pdf. I've also tried but I'm getting an error: (in public LineSeparator CreateLineSeparator(IDictionary attrs) {

Re: [iText-questions] Javascript in PDF with Russian

2011-02-25 Thread LIHE
Thats tricky - how can I convert my string into a javascript readable utf-16be string, i can't pass the bytearry ;) - using .net - but a java hint will help alsp - so i can search for dotnet code... -- View this message in context: http://itext-general.2136553.n4.nabble.com/Javascript-in-PDF-wit

Re: [iText-questions] Javascript in PDF with Russian

2011-02-25 Thread Leonard Rosenthol
JavaScript doesn't use UTF8. It uses either ISO Latin 1 or UTF16BE. From: LIHE [mailto:l...@linck-hvt.com] Sent: Friday, February 25, 2011 4:28 AM To: itext-questions@lists.sourceforge.net Subject: [iText-questions] Javascript in PDF with Russian Anyone knows if JavaScript inside the PDF can ha

Re: [iText-questions] Signing PDF with Belgian EID card: issuing certificates missing from path

2011-02-25 Thread kuehne
Hi Bram, yes, that's the usual problem with the crypto stuff : The simple PKCS1 implementation is easy to adapt to card APIs, but it suffers from many drawbacks. On the other hand the CMS version (aka PKCS7 or detached) use a fully fledged signature container with many problems / compatibilty