adobe-reader

Getting Info (title, subject, author, producer…) from PDF using javascript

牧云@^-^@ 提交于 2019-12-13 04:01:27
问题 Im trying to learn how to use javascript inside pdf files, and how to grab information from the /Info object like author and title. I've found two ways to use js inside a pdf, and I've put together 2 samples, the first works, the second doesn't. They both execute javascript, but the second code can't access the /Info data. I can't figure out why. Sample 1 (This code shows an alert with the contents of /Title, works fine): %PDF-1.3 1 0 obj <</Type/Catalog/Pages 5 0 R/OpenAction 3 0 R>> endobj

Open PDF to Bookmark/Named Destination?

二次信任 提交于 2019-12-12 16:39:23
问题 I'm trying to open a PDF to a specific bookmark using python. So far, I'm able to run the following command in Command Prompt and get exactly what I want ( last is the name of a named destination inside the PDF test.pdf) "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /A "nameddest=last" "C:\Users\User\Desktop\test.pdf" But when I go to Python and try using the subprocess module like this: import subprocess subprocess.call(['"C:\Program Files (x86)\Adobe\Reader 11.0\Reader

Adobe Reader cannot open .pdf file created using mPDF in Zend Framework

房东的猫 提交于 2019-12-12 16:04:20
问题 I'm trying to generate a .pdf file using mPDF in a Zend Framework application, from the output of the action. Here is the code of my action: public function testAction() { $this->_helper->viewRenderer->setNoRender(); $this->_helper->layout->disableLayout(); $this->view->foo = 'bar'; $this->render(); $output = $this->getResponse()->getBody(); $layout = new Zend_Layout(); $layout->content = $output; $layout->setLayoutPath(dirname(dirname(__FILE__)) . '/views/layouts/'); $layout->setViewSuffix(

Batch print pdf through commandline with sumatra pdf

谁说胖子不能爱 提交于 2019-12-12 09:05:11
问题 since Adobe released a new Update for the Adobe Reader (11.09 on 16.09.2014), we encountered an problem with printing pdf files through the command line. Our formally script looks like this: :job @for /F "tokens=1,* delims= " %%p in ('dir /b/a-d /s "Y:\*.pdf"') do ( echo Printing file: "%%p" on %date% ::prints the pdf document with adobe reader "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /p /h "%%p" ::move file to destination echo wait 10 seconds ::wait 10 seconds then

Text object gets deleted in Adobe Reader 11

故事扮演 提交于 2019-12-12 03:43:58
问题 In adobe acrobat x i was inserting text objects and when it is opened in adobe reader 10 it was opening properly.but in adobe reader 11 when i click on that pdf file text objects gets deleted.why this happens? How to solve it? The source pdf file click here The pdf file which has problem when double clicking on it in adobe reader 11. click here 回答1: In a nutshell: You try to change the contents of a free text annotation by changing its normal appearance stream. This is insufficient: A

Editable PDF using itext (5.3.0) in java. Not able to save data in Adobe Reader X

陌路散爱 提交于 2019-12-11 18:52:48
问题 I am able to create Editable PDF using itext (5.3.0) in java. I have used Adobe Reader X . Question : Adobe Reader X I want save my PDF with data which I have entered in text box but it shows below message. "Please fill out the following form. You can not save data typed into this form Please print your completed form if you would like a copy for your record". 回答1: Earlier versions of Adobe Reader (i.e. before Adobe Reader XI) only allowed saving of form entries if the PDF has originally been

iTextSharp: fields generated in a table not shown in adobe reader

南楼画角 提交于 2019-12-11 14:13:00
问题 I'm trying to generate a pdf and fill in some fields at the same time. I do this two ways. The first by creating a text field and setting the text. var _text = new TextField(writer, new Rectangle(sectionX + textLength + 2, fieldIncrementer - 3, sectionX + Convert.ToSingle(xElement.Parent.Attribute("width").Value), fieldIncrementer + fieldFontSize - 2), xElement.Attribute("name").Value.Trim()); if (xElement.Attribute("autoFill") != null) { _text.Text = FormAutoFill.Instance.GetValue(xElement

How to open a PDF file by using Foxit/Adobe in full screen mode?

≡放荡痞女 提交于 2019-12-11 14:07:20
问题 I need from my C# application open a PDF file by using Foxit Reader or Adobe Reader in full screen mode. Manually, I do it typing F11 in Foxit Reader and CTRL+L on Adobe Reader. This changes the current file view to "full screen" mode. But programmatically, I have no idea how to do this! Thanks in advance. as I'm opening the pdf file: Process.Start(filename); 回答1: You can use SendKeys to send F11 or CTRL+L to the PDF application after you run it. Alternatively, Foxit or Adobe may support

WebBrowser control doesn't display the Pdf file into the winform with Adobe. Why?

旧时模样 提交于 2019-12-11 11:32:14
问题 Here's my code to open the pdf file into the webBrowser control: private void Form1_Load(object sender, EventArgs e) { OpenFileDialog dlg = new OpenFileDialog(); dlg.Filter = "pdf files (*.pdf) |*.pdf;"; dlg.ShowDialog(); webBrowser1.Navigate(dlg.FileName); } And here's my problem: When I have Foxit Panthom like default pdf reader the pdf is displayed into the webBrowser, but when I set Adobe Reader (I try even with Sumatra Pdf) to default pdf reader the pdf file is displayed into a separated

Invoking the print/save/email function of Adobe Reader plugin in browser

ⅰ亾dé卋堺 提交于 2019-12-11 05:21:10
问题 I am looking for a way to invoke the print/save/email functions from the Adobe Reader plugin in the browser. To better explain, please open the following image in your browser: http://stylephp.com/demo/pdf.png In the image, you'll see a sample PDF is loaded in the browser in the Adobe Reader plugin. And the plugin has the save/email/print buttons on it. Also, there are four similar html buttons on top of it. When clicked on the html buttons on top, I would like to invoke the button within the