pdf-generation

Trouble with ITextSharp - Converting XML to PDF

Okay... I'm trying to use the most recent version of ITextSharp to turn an XML file into a PDF. It isn't working. The documentation on SourceForge doesn't seem to have kept up with the actual releases; the code in the provided example won't even compile under the newest version. Here is my test XML: <Remittance> <RemitHeader> <Paye...

PHP and C# communication on IIS7 (to generate dynamic PDF)

Background: I couldn't find any decent free HTML to PDF conversion utilities in C#. There are 100s of them for PHP with extensive documentation, support, and CSS support. So I am using html2ps and html2pdf (php). I have PHP 5.2 installed on IIS7 and its working beautifully to create PDFs. I have the following in getPDF.aspx <!-- Outp...

Render User Controls and call their Page_Load

The following code will not work because the controls (page1, page2, page3) require that their "Page_Load" event gets called. using System; using System.IO; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using iTextSharp.text; using iTextSharp.text.html.simpleparser; using iTextSharp.text.pdf; public partial cl...

How to use wkhtmltopdf.exe in ASP.net

After 10 hours and trying 4 other HTML to PDF tools I'm about ready to explode. wkhtmltopdf sounds like an excellent solution...the problem is that I can't execute a process with enough permissions from asp.net so... Process.Start("wkhtmltopdf.exe","http://www.google.com google.pdf"); starts but doesn't do anything. Is there an easy...

how to write barcode in html format when using tcpdf

I am using TCPDF to generate PDF file using following command $pdf->writeHTML($htmlcontent, true, 0, true, 0); TCPDF also provides a way to create barcode with following commands $pdf->Cell(0, 0, 'C39+', 0, 1); $pdf->write1DBarcode('Code 39', 'C39+', '', '', 80, 15, 0.4, $style, 'N'); $pdf->Ln(); I want to be able to write barcode as p...

create a simple pdf report from html

I'm looking for a way to generate pdf files from html In order to make simple tabular reports I would need the following features table rendering variable page size repeating headers / footers on every page calculated page number / total page css support would be nice I know there have been many similar questions in stackoverflow, b...

Using Pantone™ colors with Prawn

I'm trying to assign Pantone colors to some text in Prawn. Ideally I'd like to be able to do this pdf.text_color = pdf.pantone(:485U) pdf.text "Whatever" I know this isn't possible. I considered calling pdf.raw and specifying the color manually but the PDF spec (ISO32000:2008) is way too complicated. I need either a simpler way or so...

i had problem in adding the additional content in my pdf

I am converting my data set into a pdf document.My data set contains the product bill details.So,at the top of the pdf i need to added some more content like "my company name & address customer name, date of bill,bill no" Below code i am using to convert into pdf. public static void Exportdata(DataTable dataTable, HttpResponse Response...

don't understand pisa(xhtml2pdf) license

A client ask me to generate PDF in python, but i don't know if i have to pay the license or just use it. what do i have to do? In their web site said: XHTML2PDF is dual-licensed: 1. GNU General Public License Version 2.0 (GPLv2) 2. A commercial license In their docs: pisa is copyrighted by Dirk Holtwick, Germany. pisa ...

How do I programmatically convert/merge any doc to PDF in my .NET application?

Please recommend a good library to: 1)Programmatically convert any doc to pdf (word, spreadsheet, presentation, images, html, postscript) 2)Programmatically merge multiple pdf’s to a single pdf (ideally, word_doc1+ ppt_doc2 = out.pdf , in one step) From .NET/c# app Thanks ...

Convert PDF to PNG using ImageMagick

using ImageMagick, what command should i use to convert a PDF to PNG? I need highest quality, smallest file size. this is what I have so far (very slow by the way): convert -density 300 -depth 8 -quality 85 a.pdf a.png Looking at what Gmail does when a user "view" a PDF, the quality is awesome and the file size very minimal. The DPI i...

In iTextSharp, can we set the vertical position of the pdfwriter?

Hello, I've recently started using iTextSharp to generate PDF reports from data. It works quite nicely. In one particular report, I need a section to always appear at the bottom of the page. I'm using the PdfContentByte to create a dashed line 200f from the bottom: cb.MoveTo(0f, 200f); cb.SetLineDash(8, 4, 0); cb.LineTo(doc.PageSize.W...

How to embed an image in a PDF using cfpdfform

I'm dynamically generating a PDF with a few variables but also need to be able to embed an image on the PDF. Anyone have any experience doing this using ? ...

Can MikTeX create tagged PDFs?

Tagged PDFs allow for the easy reflow and accessibility of PDFs. It seems like this would be a natural use case for using LaTeX, which advocates content over style. But as far as I can tell, there is no way to create a tagged PDF with MikTeX 2.8. Does anybody know of any tips, tricks or techniques to get a tagged PDF through LaTeX witho...

Can I flip the coordinate system without flipping text in iTextSharp?

I have some chart-creating code written for a coordinate system in which a y-coordinate of 0 is the top of the page. We are now converting to iTextSharp, which uses the conventional system from mathematics where a y-coordinate of 0 is the bottom of the page. There are many calculations involved in producing the chart and I'd like to not ...

Best C# API to create PDF

Can you recomend any PDF API for C#. Free is the best, but i dont mind paying for it. ...

XSLT Template. Blocks/Inlines...

Hi! I'm trying to make an xslt template to generate pdf. How to create a template that can fill data in such way: http://web13.twitpic.com/img/109586649-2ff71ad3e1ee483df6b9be14dcb3804a.4c0632a8-scaled.png ...

IText can't keep rows together, second row spans multiple pages but won't stick with first row.

I am having trouble keeping my first and second rows of my main PDFPTable together using IText. My first row consists of a PDFPTable with some basic information. My second row consists of a PdfPTable that contains all of the tabulated info. Everytime the tabulated info becomes too big and spans multiple pages, it is kicked to the seco...

Large HTML documents to PDF

I'm working with an asp.net application that produces large PDF documents from HTML. The content is perhaps complex (detailed grid type listings, css styled, running to 40+ pages) compared to typical usage. None of the libraries we've tried are performing adequately. Typically a 40 page document is taking upwards of a minute to render on...

Merge PDF's with PDFTK with Bookmarks?

Using pdftk to merge multiple pdf's is working well. However, any easy way to make a bookmark for each pdf merged? I don't see anything on the pdftk docs regarding this so I don't think it's possible with pdftk. All of our files merged will be 1 page, so wondering if there's any other utility that can add in bookmarks afterwards? O...