No other sites found yet.  I am just starting to do some work in .net .  IF
I find any other resources I will forward them on to you.

 

John Williams

 

Lineage

150 Lawrence Bell Dr. Ste 100, Williamsville, NY 14221

Office 716.631.3345  |  Fax 716.631.3238

 

From: SALAZAR, DANTE [mailto:digitron...@cwpanama.net] 
Sent: Wednesday, April 13, 2011 1:42 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Error opening pdf document

 

Thanks John

Now I can print tables but with some limitations

What are the equivalences (in .net) for 

table.setBorderWidth(1),  table.setPadding(5) and  table.setSpacing(5)

 

The documentation contained in the link don't have nothing about
DirectContent, do you know another site where I can found this?. For .NET of
course.

 



 

2011/4/12 John Williams <jwilli...@trustlineage.com>

Try this link…

 

http://www.mikesdotnetting.com/Article/80/Create-PDFs-in-ASP.NET-getting-sta
rted-with-iTextSharp

 

 

John Williams

 

Lineage

150 Lawrence Bell Dr. Ste 100, Williamsville, NY 14221

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 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 <http://asp.net/> . There are a lot of syntaxis diferences between
java methods and .net methods.  Specialy I need to progress using
Directcontent and tables.
Do you have experience with itextsharp in .net?. Can you send me some
examples or documentation?

 

2011/4/4 Keith O <kuuji...@hotmail.com>


> Date: Mon, 4 Apr 2011 13:51:57 -0500
> From: digitron...@cwpanama.net
> To: itext-questions@lists.sourceforge.net
> Subject: [iText-questions] Error opening pdf document

>
> 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 have this code
>
> 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 Paragraph(TextBox2.Text))
> doc1.Close()

your problem is completely unrelated to iTextSharp. unless you explicitly
call Response.End(), the .aspx page will append HTML to the stream.

try this test:

[1] instead of opening the PDF save it to disk.

[2] open the PDF with a text editor

you'll see the HTML of your .aspx page. it **shouldn't** be there.

in most cases you should be using a HTTP Handler to send PDF anyway:

http://msdn.microsoft.com/en-us/library/system.web.ihttphandler.aspx

lower overhead than a .aspx page




----------------------------------------------------------------------------
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php

 


----------------------------------------------------------------------------
--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a
reference to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php

 

------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to