pdf

How do I find the baseline of a line of text in Reportlab?

How do I find the baseline for a line of text in Reportlab so I can align other elements on the page with the baseline of the text? I am using canvas.drawString() for these elements. ...

Saving "heavy" figure to PDF in MATLAB - rendering problem

I generate a figure in MATLAB with large amount of elements (100000+) and want to save it into a PDF file. With zbuffer or painters renderer I've got very large and slowly opened file (over 4 Mb) - all points are in vector format. Using OpenGL renderer rasterize the figure in PDF, ok for the plot, but not good for text labels. The file s...

Use C# to convert a .XFDL file to .PDF

Does anyone know of a way using C# to convert a XFDL file to a PDF file that is viewable in a standard PDF viewer (Adobe Reader and the like)? Thanks. ...

PDF Disable Anti-alias on Lines

I'm creating a dynamically generated PDF using FPDF. My PDF requires many exactly horizontal/vertical lines in a grid and when rendered they are anti-aliased and look very fuzzy and unacceptable to the client. I need to remove the anti-aliasing for these(or all) lines in the doc. I know this is possible because it's shown correctly in ...

FPDF Page Break Question

I am using PHP and FPDF to generate a PDF with a list of items. My problem is if the item list goes on to a second or third page, I want to keep the Item Name, Quantity and Description together. Right now, it will go to a second page, but it may split up all of the details for a particular item. PLEASE HELP! <?php require_once('auth....

Output PDF metadata as document text -- do pdfs have environmental variables?

I'm creating a PDF by hand starting from a very basic PDF file and using a text editor. I was wondering if there was a way to reference metadata, such as the document title and document author in the body of the actual PDF. Something like %TITLE% perhaps. This would be really hand for making a PDF template where the heading of the docum...

Extract TOC of PDF?

I am extracting a pdf into images / swf and text with the help of SWFTools and XPDF.. I am running these in a PDF script. But now I am trying to go one step further and try to get the TOC from the PDF is it possible to extract this information? ...

Is sending a PDF as encoded byte array in XML sensible

Hi I am looking to return a PDF from a webservice call. (ATM, a custom proxy is required at the client-side) AFAICS, there are 2 ways of doing it a) Return the link to a web-accessible location b) Encode the PDF and include it in the XML In my circumstance, a) will require 2 trips from the client, the first to get the path and the se...

Export pdf table to excel

Hi, anyone know how to export pdf table to excel using c# and asp.net? if any can you give me a sample code snippet? thanks in advance nagu ...

Remove or hide PDF layer using ABCPdf?

Is is possible to remove or hide a layer from a PDF using ABCPdf or another framework? ...

pdf viewer for pyqt4 application?

Hi all, I'm writing a Python+Qt4 application that would ideally need to pop up a window every once in a while, to display pdf documents and allow very basic operations, namely scrolling through the different pages and printing the document. I've found the reportLab to create pdf files, but nothing about pdf viewers. Does anyone knows a...

Best way to distribute form that can be printed or saved?

I need to develop a simple form (intended only for printing) to be filled in by arbitrary end users (i.e. no specialized software). Ideally, I'd like the end-user to be able to save their inputs to the form and update it periodically. It seems that (at least without LiveCycle Enterprise Suite) Adobe Reader won't save data input in a PDF ...

How to use exe in SharePoint on itemAdded?

I have a need to convert any document gets uploaded to Image. I downloaded the exe (with all the dlls) on my local machine (dont have to install) export.exe sourcefile.doc destinationfile.gif >> this syntax works from my local dos prompt. How do I use the same syntax "export.exe exampledoc.doc exampledoc.gif" when an item is added to s...

Print/save full webpage as PDF

I need a method to be able to print/save the current full webpage as a PDF. I know it can be done if I download a PDF printer and print to that; but I need it to be done without the user having to do anything other than click a button in a webpage. I can't do it via PHP as the page is all client side content, so I'm guessing an ActiveX...

SQLRS and Exporting to PDF Error

I have a report that displays beautifully onto the screen (print preview mode). If I try to export it to Word it works fine. If I try to do a PDF it fails. The field that causes the error is a multi-line field. If I filter our the TSQL code with REPLACE(fieldName, CHAR(10), '') AS fieldName everything works correctly but there are no ...

C# 4.0: Convert pdf to byte[] and vice versa

How to convert pdf to byte[] and vice versa? ...

When I create PDF in PHP, how do I get the browser to render it correctly?

I have used following code to create a simple PDF file. It executes fine in browsers, but I am not able to get the PDF file. It gives me some output when I am running the code in the CLI; my doubt is where I specify the PDF's filename. <?php require('fpdf.php'); $pdf=new FPDF(); $pdf->AddPage(); $pdf->SetFont('Arial','B',16); $pdf->Ce...

Convert Byte [] to PDF

Hello All, With help of this question C# 4.0: Convert pdf to byte[] and vice versa i was able to convert byte[] to PDF. Byte array length is 25990 approx. When i try to open the PDF it says file is corrupted. What could be the reason? I tried the BinaryWriter but it creates PDF of 0 KB. It's a response from a Web Service Sample Code ...

Get a PDF/PNG as output from a UIWebView or UIView

Is there any way to get the content of a UIWebView and convert it to a PDF or PNG file? I'd like to get similar output to that available on the Mac by selecting the PDF button when printing from Safari, for example. I'm assuming this isn't possible/built in yet, but hopefully I'll be surprised and find a way to get the content from a web...

Preview PDF in C#

I'm looking for .NET GUI component (different than PDFsharp) allowing preview PDF 1-page document. Basically I need something similar to PictureBox where I can load bitmaps and show it. It would be great if that component allows zooming and moving picture inside. Freeware solutions preferred :) ...