" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

To Run Javascript On Generated PDF In NetSuite

Posted on November 24th, 2015 by Vijai Vaishnav

In NetSuite you can generate the pdf, along with that you can also add form elements in your document like text box, drop-down list, and radio buttons to make your pdf more interactive. Also you can run JavaScript’s on your generated pdf. Here in this tip you would come to know how to run it. […]

How to convert a TIFF file to pdf using iText library in Java

Posted on November 24th, 2015 by Pranav Kumar

Tip to convert TIF file to pdf using iText library. I am going to explain how we can convert a TIF/TIFF file to PDF document using iText API. Before moving to the main subject of this tip I would like to give a small introduction of iText API. What is iText ?? iText is a […]

Use of ‘prawn’ gem to generate PDF in Rails

Posted on November 23rd, 2015 by Shatabdi Mohapatra

Add this gem to the gemfile of your application and run the ‘bundle’ command. gem ‘prawn’ Create a PDF Mime::Type inside config/initializers/mime_types.rb. Mime::Type.register “application/pdf”, :pdf   I have created a respond block with HTML and PDF format inside my controller. Inside the format.pdf block, the send_data method is called. respond_to do |format| format.html format.pdf do […]

Embed good looking charts/graphs into your PDF

Posted on November 23rd, 2015 by Dinesh Sahoo

While working with chart/graphing solutions for creating good looking graphs, we face difficulty to embed the graphs into PDF reports. Charting solutions allow us to create HTML versions of charts and most of the good looking charts consist of basically javascript and flash content, which is normally difficult to embed into the PDFs. I would […]

How write to an existing PDF using PHP

Posted on November 23rd, 2015 by Subhranil Dalal

In PHP, normally we create PDF using FPDF class by plotting all data against the (x,y) co-ordinates or  create the html layout and convert it to a pdf using HTML to pdf. But when we are filling up forms with a number of fields such as an insurance claim form it becomes difficult as we […]

Create A PDF To Show Document In Table Format Using C#

Posted on November 23rd, 2015 by Ashabari Jena

I was trying to create a pdf document which should show document in table format in C#. So at first I added iTextSharp library to my application. Then three namespaces: using iTextSharp.text; using iTextSharp.text.pdf; using iTextSharp.text.html;   Then added code: Document doc = new Document(PageSize.A4); PdfWriter.GetInstance(doc,newFileStream(“/hello.pdf”,FileMode.Create)); doc.Open();     Then tried to add table to […]

HTML to PDF conversion using iTextsharp

Posted on November 23rd, 2015 by Smruti Sahoo

The following code snippet demonstrates how to convert a html file into PDF format using iText library in VB.NET. [VB.NET CODE STARTS] First we need to add reference to iTextSharp library. ‘ Add references Imports System.IO Imports iTextSharp.text Imports iTextSharp.text.pdf ‘ Read html file to a string Dim sr As StreamReader = New StreamReader(“YOUR HTML […]

How to resolve resource (CSS, Image) embedding problems?

Posted on November 23rd, 2015 by Saroj Sahu

Details: CFDOCUMENT tag in ColdFusion can be used to create PDF output from a text block containing CFML or HTML. We use images and styles to be embed into the PDF through HTML. Sometimes while trying to embed images and styles to the PDF, we may face issues like, “Invisible images”, “Styles not reflecting”, etc., […]

Java: Merging multiple PDFs into a single PDF using iText.

Posted on November 23rd, 2015 by Debabrata Pati

iText is a library that allows you to generate PDF files on the fly. Please find more details on iText on below link. http://www.lowagie.com/iText/ Here is a code snippet which takes multiple PDFs stream as input and merging them to a new PDF file. The snippet uses iText java library.   /**********************************************************/ import java.io.File; import […]