Community discussion forum

Dynamically Generating PDFs in .NET

This is a comment thread discussing Dynamically Generating PDFs in .NET
  • 10 years ago

    This thread is for discussions of Dynamically Generating PDFs in .NET .

  • 2 years ago

    I'm sure this isn't a great place to ask for a resolution to my itextsharp issues, but you seem to be the only person I've stumbled across who might know the answer (I'm sure you're well-aware that there is a serious dearth of documentation and information available about itextsharp otherwise).

    We are doing much the same as your post suggests (using itextsharp to fill fields in a pre-defined PDF and send it down to the user user) and we have just about given up on being able to use itextsharp to fill a PDF form textbox with rich-text-encoded text and I was wondering if you might have any suggestions for us.

    Acrobat makes it trivial to setup a textbox field in a PDF form to accept RTF content (just set the props on the field to 'use RTF text' in the forms designer) but when we use itextsharp to fill this field with RFT-encoded content, the RTF syntax is reproduced in its entirety with in the textbox in the PDF (e.g., we get '{\rtf\01\hello\etc....}' instead of the text with the formatting applied).

    Have you (or anyone else who might view this blog post) ever tried this and come across the same issue?  Other than this, we find itextsharp to be a quite useful tool for systems that need to collect data in one format (e.g., via a web form, a winform, whatever) and then display that back to the user in any pre-conceived format in an organizational-specific paper-form equivalent).

    Happy coding to all~!

    -Steve B.

  • 1 year ago

    Hi,

     So, to include this in an ASP.net web app, would I need to have Acrobat installed on the Web Server??

    thanks

     

    Steve S

    SteveDotSchilzATsbcglobalDOTnet

     

  • 1 year ago

    No - you don't need Acrobat at all - just the iTextSharp library.

  • 1 year ago

    very good

  • 4 months ago
  • 2 months ago

    Just as an additional note for those of you using this to populate PDF templates that wish to retain the "Extend Features in Adobe Reader" option, you will need to use the following constructor when creating the PdfStamper object:

    PdfStamper stamper = new PdfStamper(pdfReader, Response.OutputStream, '\0', true);

    From the Java 1T3XT FAQ at http://1t3xt.info/tutorials/faq.php?branch=faq.itext&node=enabled_form.

  • 2 months ago

    I realise this isn't exactly using .NET, but an excellent solution I've found in many cases is to use SQL Server Reporting Services for document generation. Of course, you have to know that your system has access to a reporting server but if you're building a system which will be used within a company's enterprise then this is likely.

    Just thought it worth mentioning :0)

  • 22 days ago

    jsr solution the software developing company is going to organize an entrance test for free software training. the test is held on 14 November 2009 at quest institute of Chandigarh mohali (landra) . this test is absolutely free. and the students who will pass out this examination will get free software training. for the registrations please visit following link:- [url=http://training.jsrsolutions.com/registration.aspx] BTech Training[/url]

Post a reply

Enter your message below

Sign in or Join us (it's free).

We'd love to hear what you think! Submit ideas or give us feedback