acrobat

Using itextsharp (or any c# pdf library), how to open a PDF, replace some text, and save it again?

狂风中的少年 提交于 2019-12-04 08:38:32
问题 Using itextsharp (or any c# pdf library), i need to open a PDF, replace some placeholder text with actual values, and return it as a byte[]. Can someone suggest how to do this? I've had a look at the itext docs and can't figure out where to get started. So far i'm stuck on how to get the source pdf from a PDFReader to a Document object, i presume i'm probably approaching this the wrong way. Thanks a lot 回答1: In the end, i used PDFescape to open my existing PDF file, and place some form fields

itextSharp - Merging pdf files disables extended reader permissions

戏子无情 提交于 2019-12-04 04:48:12
问题 I'm using Itextsharp v5.1 and created enabled reader pdf files. I wrote a c# class that fill the form and keep each individual pdf file extended reader. But, when I use this MergeFiles function here, it create a new Merged file NOT extended reader and I need your help with this please to turn it extended reader... my MergeFiles function is : public static void MergeFiles(string destinationFile, string[] sourceFiles) { try { //1: Create the MemoryStream for the destination document. using

How can I convert time to decimal number in JavaScript?

淺唱寂寞╮ 提交于 2019-12-04 04:40:59
I'm too lazy to fill out my time sheet at work by the end at the end of every month, so I've started adding some functions to our PDF form. Acrobat Pro offers to make advanced calculations using JavaScript, but I'm stuck with this problem. I have two fields in which I enter the time when I start/end working. I want to calculate my overtime and output the result in a third field. however, I want the output to be decimal, so when I make half an hour overtime, the result would be 0.5 Example: my work time is 8.5 hours, I start a 7.30 and finish at 16.00 (4 pm). My code so far: var workTime = this

Opening multiple PDF documents using batch file

旧街凉风 提交于 2019-12-04 03:09:51
问题 I am trying to open several PDF documents using a simple batch file: ECHO OFF CLS cd Program Files\Adobe\Reader 9.0\Reader Acrord32.exe C:\Users\BW1.pdf Acrord32.exe C:\Users\BW2.pdf Acrord32.exe C:\Users\BW3.pdf Acrord32.exe C:\Users\BW4.pdf Acrord32.exe C:\Users\BW5.pdf Acrord32.exe C:\Users\BW6.pdf EXIT The above batch file opens the first PDF only, then waits until I close it for the next PDF file to open. How can I have all the PDF documents open at the same time? (Like going to Acrobat

TypeError: Date is not a constructor

时光怂恿深爱的人放手 提交于 2019-12-04 03:07:52
问题 So, I've been making forms for my company for some time now with pretty easy Javascript that has worked for me in the past. However all of a sudden it's kicking out the error: TypeError: Date is not a constructor The Code: var Date = this.getField("Text1"); Date.value = util.printd("mm/dd/yyyy",new Date()); It works on all my old forms, but now it won't work on new ones... and I've tried making a new button on an old form - just copying and pasting the code, and then it'll break all the other

Getting PDF reader Control in VS.net

前提是你 提交于 2019-12-04 02:17:53
问题 is there any way to get the adobe reader control in our visual studio.net without installing the adobe reader in our system! 回答1: WinForm: PDF Viewer Control Without Acrobat Reader Installed Web: ASP.NET PDF Viewer User Control Without Acrobat Reader Installed on Client or Server The WinForm version doesn't require Reader, but does require the distribution of other freely available DLLs. I've never tried the Web version. 来源: https://stackoverflow.com/questions/1845309/getting-pdf-reader

Fragment (anchor #) in .NET 4 WebBrowser Control getting lost with Adobe PDF Reader and file://

烈酒焚心 提交于 2019-12-04 01:50:47
问题 I create an URI with a fragment (aka anchor #). UriBuilder ub = new UriBuilder("file://path/doc.pdf"); ub.Fragment = "chapterX"; The url is shown correctly in the debugger (ub -> file://path/doc.pdf#chapterX ). But when I assign it to a WebBrowser control, the fragment part gets lost (reason for the fragment see PDF Open parameter). this._myWebBrowser.Url = ub.Uri; // Alternative this._myWebBrowser.Navigate("file://path/doc.pdf#chapterX"); When I check this._myWebBrowser.Url it displays file:

How Do I Detect the Adobe Acrobat Version Installed in Firefox via JavaScript

杀马特。学长 韩版系。学妹 提交于 2019-12-03 21:47:41
问题 I know this can be done in IE by creating an ActiveX object, but how do I do it in FF. The navigator.plugins['Adobe Acrobat'] object lets me know if it's installed or not, but it doesn't contain the version number. Any ideas? 回答1: navigator.plugins[n].name where n is the index of the Acrobat plugin is supposed have the version number in it. Unfortunately, starting with Adobe Reader 8, they changed the name to "Adobe PDF Plug-In for Firefox and Netscape" , with no version information. So, if

How to find x,y location of a text in pdf

一世执手 提交于 2019-12-03 15:46:35
Is there any tool to find the X-Y location on a text content in a pdf file ? Docotic.Pdf Library can do it. See C# sample below: using (PdfDocument doc = new PdfDocument("your_pdf.pdf", "password_if_need")) { foreach (PdfTextData textData in doc.Pages[0].Canvas.GetTextData()) Console.WriteLine(textData.Position + " " + textData.Text); } Try running "Preflight..." in Acrobat and choosing PDF Analysis -> List page objects, grouped by type of object . If you locate the text objects within the results list, you will notice there is a position value (in points) within the Text Properties -> * Font

Debugging PDF for error

﹥>﹥吖頭↗ 提交于 2019-12-03 14:51:55
I'm creating PDF files using PDFClown java library. Sometimes, when openning these files with Adobe Acrobat Reader I get the famous error message: "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created the PDF document to correct the problem." The error shows while reading (with Adobe) the attached file only when scrolling down to the 8'th page, then scrolling back up to 3'td page. Alternatively, Zooming out to 33.3% will also produce the message. Just for the record, Foxit reader reads the file flawlessly, as well as other PDF readers