pdf

Write PDF from binary in database

Okay, I have a SQL 2005 database with a stored PDF. The column uses the image type. So when the PDF gets stores it is a byte[] array. So here is the hard part. I can get it to store the data but I am not sure how to go about getting the byte[] array back into PDF format and display it on the web page. I am using a 3rd part tool to gen...

iText pdf will not open in browser.

Pdf created with iText will not open in IE with machine that has Adobe Pro installed. Works great in otherwise. Browser setting? Thanks in advance. related code: Response.ContentType = "Application/pdf"; ...

Make PDF display inline instead of separate Acrobat Reader window

I've got an ASP.NET ashx class that retrieves data from a database, creates a PDF file using iTextSharp, and streams the PDF to the browser. The browser (IE and Firefox at least) is launching Acrobat Reader as a separate window to open the file. I'd like for it to display inline within the browser. Is that something I can completely con...

Unacceptable performance rendering PDF Tables with ITextSharp and PDFSharp

I am trying to generate PDF files containing large numbers of tables. Each PDF could potentially be 150 pages in length. When using ITextSharp, the file sizes are up to 16 megabytes and have no noticeable shrinkage when zipped. When using PDFSharp, the file size is very reasonable at 2 or 3 megabytes but it takes an unacceptable l...

PDF Line break

Hi this might seem like a weird question. Anyway, I'm generating some PDF file on the fly using PHP and some third party code I found. My problem is I need to insert line breaks in some part of the text that will be inserted in the PDF file. Something like: $pdf->InsertText('Line one\n\nLine two'); So it prints Line one Line two I k...

Problem with coordinate system and displaced Text in different PDFs using iTextSharp

Hello everyone, I'm working with iTextSharp and .NET 3.5 SP1 (in C#, as you can guess) and modify some existing PDFs using the PdfStamper class. Now I've got two problems: Transforming the coordinate system As I see it, iTextSharp is using (postscript?) points as unit of measurement, but I'd like to transform these coordinates to mill...

Rails: attachment_fu plugin, convert PDF uploads to image

Yo, I've got attachment_fu set up on my server, and it works just fine. My goal, however, is to be able to upload PDFs and have them convert to image (then use all the pre-built attachment_fu options like resize and thumb produce the desired images). What currently happens is that PDFs upload and remain PDFs, whereas images go through a...

Is it possible to have PowerPoint 2007 export slides to a PDF including animations?

I'm exporting PowerPoint presentations using PowerShell. This works fine with the Office XPS/PDF exporter plugin. However, only the complete slide, without animations, are exported. When exporting a presentation as a web page, the presentation can be run step-by-step (e.g. revealing bullet points one by one) if you check the "Show slide...

A technology for reading pdfs online with annotations?

Hi, is there an open source solution that displays PDFs for online reading? It has to be searchable much like google books and if possible has the ability to display annotations? ...

How to export data to pdf in asp.net MVC?

I don't have grid view as I am working on asp.net MVC. So can I create Response object which writes data into pdf format Response.AddHeader("Content-Disposition", "attachment; filename=data.pdf"); Response.ContentType = "application/.pdf"; I use these two lines but I don't know in which format, I should write data? ...

iText in Asp.net MVC

Hello, I want to use iText to write data to pdf. Assembles that I've added are iTextdotNET.dll Gnu.Classpath.Core.dll But the problem that I am facing is Error 1 The type 'java.io.OutputStream' is defined in an assembly that is not referenced. You must add a reference to assembly 'vjslib, Version=1.0.5000.0, Culture=neutral, Pu...

suggestion for a couple of pdf tools

Hi I need a quick advice. I'm looking for a couple of tools to do these tasks take some images and combine them into a multipage pdf take a pdf and output each page as a separate image I can't find anything free on google, apart from suggestions like "open an openoffice doc, add each image on a page and print to a pdf file" ... Any...

Create a PDF for iPhone, how to?

Hi, I'm trying to write a eBook, for the iPhone, using PDF format. The problem is, I can't create a PDF with 5 cm x 5 cm (example). I've tried Adobe Acrobat Pro 9. Didn't work, since it is not possible to custom the paper size. I've tried Pages 08, but it's also not possible (it's possible to set the custom size, but it doesn't work...

How do I change PDF background and font colors?

I'm loading a PDF file into a UIView and I would like to know how to change the background color or the font color of the PDF. I've tried several things using Quartz, but no success. How can I accomplish this? ...

How convert PCL generated by HP LaserJet 5 into PDF in C#?

I need to retire 15 years old system and preserve all data. It can only print documents into specific printer HP LaserJet 5. I can print documents into PCL files and looking for ways to convert all this files into PDFs programmatically. Preferably in C#. Can anybody recommend good library or command line tool? Preferably free ;-) ...

Best way to generate a custom document?

Hi, I am working on generating a document for printing. It should use a specific TTF font and everything must be printed with vector graphics (for quality). Some of the text should be replaced automatically (e.g. current time). Also it should include a custom-generated EPS image with a chart. Ideally I would like to have some kind of do...

Printing PDFs with PDFSharp

Hello All-- I have the following code: using System; using System.Diagnostics; using System.IO; using PdfSharp.Pdf.Printing; namespace PrintPdfFile { class Program { [STAThread] static void Main(string[] args) { // Set Acrobat Reader EXE, e.g.: PdfFilePrinter.AdobeReaderPath = @"C:\\Documents and Setting...

Texts for the PDF standard

I keep finding myself wanting to manipulate PDF files in various odd ways. I asked some time ago about open PDF tools here; now I find I want to have a much deeper understanding of the spec itself. Does anyone know of any good books or articles explaining the details of the PDF standard itself? Other than the standard — reading standa...

Ghostscript Multipage PDF to PNG

I've been using ghostscript to do pdf to image generation of a single page from the pdf. Now I need to be able to pull multiple pages from the pdf and produce a long vertical image. Is there an argument that I'm missing that would allow this? So far I'm using the following arguments when I call out to ghostscript: string[] args ={ ...

php: reversing mysql_real_escape_string's effects on binary

I built a webpage where users can submit a PDF which is then inserted into a MySQL database in a mediumblob for retrieval later. This all works fine, except when the PDF contains images or embedded fonts, in which case the images are corrupted and any text using the font disappears (Acrobat display a message about the missing font). I'...