pdf

Refresh the parent browser from PDF

Hi I have a PDF in my application which will be shown to the users for filling it and submit it. I would like to open the PDF in the browser and everything works fine if it does like that. But if the user unchecks "Open PDF in Browser" from Adobe Reader, my PDF will open in Adobe Reader. I saw many threads on the net saying we cannot ...

Common Java based PDF construction libraries/tools?

I'm looking for 2 or 3 of the most common/industry wide used libraries for the Java platform for the creation of PDFs on the fly. The one requirement I'm focusing on is the ability to use specific formatting such as page layout and font sizes and typefaces (this will be a dynamically created legal document with frustratingly specific t...

What are best parameters to run ImageMagick to convert low quality pdf to images (for OCR)

Hi, I have several low quality pdfs. I would like to use OCR -- to be more precise Ocropus to get text from them. To do use, I use first ImageMagick -- a command line tool to convert pdf to images -- to transforms these pdfs into jpg or png. However ImageMagick produces very low quality images and Ocropus hardly recognizes anything....

Create pdf file with an image inside a table

How can I add an image in the table when creating pdf file wherein its contents are from the database. I'm using this as reference: http://www.ros.co.nz/pdf/ There's the function ezImage() but I don't know how to use it inside the command: $db_data[] = array('first' => ezImage('images/myphotos'), 'second' => 'hello'); ...it won't work ...

How to change the font color and size in creating pdf file using php

I'm using this as reference: http://www.ros.co.nz/pdf/ $db_data[] = array('first' => '', 'second' => 'hello'); I would want to make the text 'hello' color blue with font-size 12. How can I do this? ...

Ghostscript not extracting all the text from pdf file

Hi, I am using ghostscript 8.71 to extract text from the pdf pages. The command i am using is gswin32c -q -sFONTPATH=c:\fonts -dNODISPLAY -dSAFER -dDELAYBIND -dWRITESYSTEMDICT -dSIMPLE -fps2ascii.ps -dFirstPage=1 -dLastPage=1 input.pdf -dQUIET. And using stdout writing text to another file. But problem is some searchable text are not e...

Jump to a particular page when embedding pdf document in HTML

I am trying to embed pdf file in HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <head> <title></title> </head> <body leftmargin="0" topmargin="0"> <embed src="mypdffile.pdf#page=9" style="width:595px; height:841px;"></embed> </body> According to PDF SDK https:...

How to get Image snippet from PDF

I am working on a project with searchable PDF documents. Having found the relevant text - I want to be able to show a small image "snippet" of the related text. Can anyone point me in the direction of any resources or toolkits that will enable me to do this. Roger Somerset UK ...

Downloading PDF - can't open it

I let my users download a PDF-file using this code: The $db->Record['file'] contains the relative path to the document. The access a dummy page that loads the pdf, so they do not actually see the "text.pdf" in the url. I changed the headers of the file to achieve this: $downloadfile = '/data/srv/www/vhosts/htdocs'.$db->Record['file'];...

is it recommanded to use html2pdf script?

hey all i have a php page, where is contains the full webpage on how i want things to go, now is it possible that with a php page that contains mysql and ajax to work with html2pdf script to convert the page into PDF if not what do you recommend ...

Pattern matching text in the body of a PDF and adding hyperlinks with PHP

Hello everyone, The situation is as follows: I have a series of big, fat PDF files, full of imagery and randomly distributed text - these are the sections of a huge promotional pricelist for a vast array of products. What I need is to pattern-match all the catalogue codes in the text of each PDF file and to wrap it with a hyperlink that...

Extracting japanese characters from pdf file using itext

I am trying to extract text from a pdf file that has japanese characters. I am using iText for this purpose However I am getting this exception. Exception in thread "main" ExceptionConverter: com.itextpdf.text.DocumentException: Font 'KozMinPro-Regular' with 'UniJIS-UCS2-H' is not recognized. Can anybody help me with resolving this iss...

Automatically generate buttons in PDF

Hi everyone, I am looking for some creative ideas for making numbers clickable in PDF file. The PDF file is very large, and each page contains many numbers in the following format: [00-00] What is the best route to explore? Right now, the only idea that I have brainstormed is: The PDF is created from Adobe InDesign. Perhaps "hooking...

Selection in PDF files

Hello, I'm working on an ebook conversion script. When I create a PDF file using emacs ps-print-buffer-with-faces and then ps2pdf, I can select the words one by one on my ebook (Sony PRS 600). Same when I use Microsoft Word to print to PDF. Yet, when I create a PDF using pdflatex, or latex -> dvips -> ps2pdf, I can't select but blocks...

Is it possible to serve PDFs to a Blackberry (9700)?

I have an application that sends emails that contain links to PDF files. These currently are not visible on a Blackberry 9700 (Not sure if version is relevant). I understand that the mail app has a file handler (really more of a previewer) for PDFs. Is there anything similar for the browser, without getting into software on the device? ...

How to add Header and Footer in the created PDF file in php

I am using this site as reference: http://www.ros.co.nz/pdf/ I read the readme.pdf but haven't found any function that instructs how to add header and footers in every page in the pdf. ...

Html to pdf conversion free open source component in .net

i need a HTML to pdf component,which can convert the html to pdf with all the styles and designs...i have used itextsharp but the styles cannot be produced after conversion to pdf... i need some free open source component to make the pdf conversion please help with valuable suggestions... ...

Capturing PDF pages as Image

Hi iDevs, I want to capture PDF pages as Images, To do so i am drawing PDF over UIView using CGContextDrawPDFPage method. then capturing image by implementing following code: UIGraphicsBeginImageContext(view.bounds.size); [objPdfPage.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurren...

Extract text from a PDF and save it to a database - preserving spacing

I have a PDF document containing only text that needs to be saved into a varchar column in MSSQL. The first catch is that the spacing of the text in the PDF needs to be preserved as well, which can't be done simply by copy-pasting from the PDF into SSMS. Okay, so I need an application to read the PDF as text, while preserving spacing. B...

Hyperlinks Rendered in PDF

Hello! I have a report that is created using Telerik Reporing 2010. You have the ability to export to PDF. One of the cells contains a standard hyperlink that when viewed from the report view works fine The cell contains this simple link <a href=”http://site.com”&gt;link&lt;/a&gt; What I would like to be able to do is maintain the hy...