[iText-questions] Show pdf document in a second aspx page

2014-01-23 Thread SALAZAR, DANTE
In a web application, I generate a pdf document in two different ways: 1. With the instructions Response.ContentType = application/pdf Response.AddHeader(Content-Disposition, attachment; filename=itext.pdf) I show the document in a pdf window, (not a web page) separated

Re: [iText-questions] Vertical Position of the first paragraph

2013-08-15 Thread SALAZAR, DANTE
? 2013/8/15 Leo Donahue - RDSA IT leodona...@mail.maricopa.gov From: SALAZAR, DANTE [mailto:digitron...@cwpanama.net] Subject: [iText-questions] Vertical Position of the first paragraph How can I set the vertical position of the first paragraph? I can use GetVerticalPosition and SpacingBefore

[iText-questions] Vertical Position of the first paragraph

2013-08-14 Thread SALAZAR, DANTE
How can I set the vertical position of the first paragraph? I can use GetVerticalPosition and SpacingBefore to set the vertical position of successive paragraphs, but not for the first one. -- Get 100% visibility into

Re: [iText-questions] Vertical Position of the first paragraph

2013-08-14 Thread SALAZAR, DANTE
wr.SetVerticalPosition=620. Question 2, why don't works SpacingBefore in this case. Thanks 2013/8/14 Leo Donahue - RDSA IT leodona...@mail.maricopa.gov From: SALAZAR, DANTE [mailto:digitron...@cwpanama.net] Subject: [iText-questions] Vertical Position of the first paragraph How can I set the vertical

[iText-questions] Printing in bold

2013-07-18 Thread SALAZAR, DANTE
I am writing a form using ShowText First I defined: basefont bf and PdfContentByte cb Then I set the font and size of cb:cb.SetFontAndSize(bf, 12) Finally I fill in the form with: cb.SetTextMatrix(100, 200) cb.ShowText(Text to be printed 1) cb.SetTextMatrix(100,

Re: [iText-questions] Font of the Add(paragraph) method

2013-07-12 Thread SALAZAR, DANTE
, SALAZAR, DANTE wrote: How can I asign Time_Roman to the paragraph method? Font f = new Font(bf, 12); Paragraph p = new Paragraph(text, f); // Or: Paragraph p2 = new Paragraph(); p2.Font = f; p2.Add(text); doc.Add(p); doc.Add(p2); Best regards, Raf Hens iText Software

[iText-questions] Font of the Add(paragraph) method

2013-07-11 Thread SALAZAR, DANTE
I am generating a report combining ShowText and Doc.Add(paragraph) For text printed with ShowText function I set the font to Times_Roman with the instructions: bf = BaseFont.CreateFont(BaseFont.TIMES_ROMAN, BaseFont.CP1252, False)

[iText-questions] Printing a paragraph at the end of a document

2013-06-26 Thread SALAZAR, DANTE
I am generating a report consisting in a group of short fields, like Name, Phone number, age, etc; but at the end I need to show a wider field of commentaries (3 to 5 lines) For the first short fields I am using function ShowTextAlignedKerned, to print at specifics xy positions To print the last

Re: [iText-questions] Error opening pdf document

2011-04-14 Thread SALAZAR, DANTE
Thanks a lot Keith It contains almost all I need No problem with C#. I can translate to VB easy 2011/4/14 Keith O kuuji...@hotmail.com Date: Tue, 12 Apr 2011 10:01:30 -0500 From: digitron...@cwpanama.net To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] Error

Re: [iText-questions] Error opening pdf document

2011-04-13 Thread SALAZAR, DANTE
Office 716.631.3345 | Fax 716.631.3238 *From:* SALAZAR, DANTE [mailto:digitron...@cwpanama.net] *Sent:* Tuesday, April 12, 2011 11:02 AM *To:* Post all your questions about iText here *Subject:* Re: [iText-questions] Error opening pdf document Thanks Keith I solved the problem using

Re: [iText-questions] Error opening pdf document

2011-04-12 Thread SALAZAR, DANTE
Thanks Keith I solved the problem using response.end() at the end Unfortunately I havenĀ“t had any further progress in my practices with iTextsharp, because I don't find any examples and documentation written for asp.net. There are a lot of syntaxis diferences between java methods and .net

Re: [iText-questions] getDirectContent

2011-04-08 Thread SALAZAR, DANTE
on a page 2011/4/8 1T3XT BVBA i...@1t3xt.info Op 8/04/2011 3:38, SALAZAR, DANTE schreef: Dim doc1 As New Document() Dim writer As PdfWriter Dim cb AsPdfContentByte writer = PdfWriter.GetInstance(doc1, Response.OutputStream) cb = writer.getDirectContent() This doesn't look like Java. I think

[iText-questions] getDirectContent

2011-04-07 Thread SALAZAR, DANTE
When I use this code everything is OK Response.ContentType = application/pdf Response.AddHeader(Content-Disposition, attachment; filename=itext.pdf) Dim doc1 As New Document() PdfWriter.GetInstance(doc1, Response.OutputStream) doc1.Open() doc1.Add(New Paragraph(TextBox1.Text)) doc1.Add(New

[iText-questions] Error opening pdf document

2011-04-04 Thread SALAZAR, DANTE
I am using itextshap version 5.0.4.0 to generate a pdf file, to print an output of some data generated by an aspx page In a sumary way, the page have two textboxes and a button I fill some data in textboxes and then click the button to get the output in a pdf window Inside the button click event I