acrobat

Adobe Acrobat Pro XI - Adding Javascript to a PDF

 ̄綄美尐妖づ 提交于 2019-12-06 01:50:06
问题 This may seem like a really novice question, but I have been tearing my hair out all day on this. I am running the trial version of Adobe Acrobat Professional XI I am looking to add simple JavaScript to a PDF file. The aim is to have a PDF file, that when opened, pops up with an alert message with Yes and No options. Click Yes, and the alert goes away, leaving the PDF to be read. Click No, and the file closes. The main trouble I am having is where to write my code. I have used the JavaScript

How to confirm a TrueType PDF font is missing glyphs

眉间皱痕 提交于 2019-12-05 21:12:44
I have a PDF which renders fine in Acrobat but fails to print during the PDF to PS conversion process on our printer's RIP. After uncompressing with pdftk and editing I've found if I replace the usage of a certain font it will print. The font is a strange one, a TrueType subset with a single character (space). If I pass the PDF through Ghostscript it reports no errors, however an Acrobat pre-flight check will report a missing glyph for space. This error is not reported for the original file. I'm just using a basic command: gswin32c -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -o gs.pdf original_sample

Write cyrillic chars into PDF form fields with PDFBox

我怕爱的太早我们不能终老 提交于 2019-12-05 19:37:48
I am using pdfbox 2.0.5 to fill out form fields of a PDF document using this code: doc = PDDocument.load(inputStream); PDDocumentCatalog catalog = doc.getDocumentCatalog(); PDAcroForm form = catalog.getAcroForm(); for (PDField field : form.getFieldTree()){ field.setValue("должен"); } I get this error: U+0434 ('afii10069') is not available in this font Times-Roman (generic: TimesNewRomanPSMT) encoding: StandardEncoding with differences The PDF document itself contains cyrillic text which is displayed fine. I have tried using different fonts. For "Arial Unicode MS" it wants to download a 50MB

What do I need to do to make this transparency work

眉间皱痕 提交于 2019-12-05 18:38:52
I have a PDF, I know it has transparency but Acrobat pro renders the transparent portion solid. If I view it in chrome it looks right. And if I do an output preview and change the "Show" option to "Not DeviceCMYK" it previews the transparency, but this doesn't actually change the PDF and I can't figure out how to then just remove the CMYK so that it will be transparent. Here is the pdf again I've messed around for this a bit more. It looks like there is some knockout grouping, how can I change this in Acrobat? I also seem be able to, in Acrobat, cut the image, then paste it back in and I get

Resize many PDFs

橙三吉。 提交于 2019-12-05 16:33:37
I have many (around 1000) multiple-page PDFs for a program I am writing. The problem is that many of them are inconsistent about page size, even within the same document at times. Does anyone know of a way I could programmatically go through the files and resize the pages to what I want? This can be in any language. I can accomplish this in Adobe Acrobat Pro, but there are so many that would end up taking a long, long time. The only way I can get it to resize there is to add a background from a file, and then choosing the file i want to resize. Generally, PDFtk is a good fit for this kind of

Javascript Detect if Adobe Reader is installed

吃可爱长大的小学妹 提交于 2019-12-05 11:43:24
We have some PDF forms that don't display correctly in non-Adobe PDF readers (i.e. WebKit's built-in PDF reader does not properly display some proprietary Adobe things). We want to detect when users don't have Adobe's PDF Reader installed and give them a little warning, but I'm having a hard time figuring out how to do it in 2014. It seems this script worked in 2011. Basically it loops through navigator.plugins and looks for plugins with the name Adobe Acrobat or Chrome PDF Viewer . for(key in navigator.plugins) { var plugin = navigator.plugins[key]; if(plugin.name == "Adobe Acrobat") return

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

a 夏天 提交于 2019-12-05 00:05:30
问题 Is there any tool to find the X-Y location on a text content in a pdf file ? 回答1: 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); } 回答2: Try running "Preflight..." in Acrobat and choosing PDF Analysis -> List page objects, grouped by type of object . If you locate the text objects

Embedded fonts in PDF: copy and paste problems

拜拜、爱过 提交于 2019-12-04 20:55:13
When trying to copy and paste into a MS word document from a PDF document which has some sets of fonts embedded, the result is illegible. Several symbols are changed or even disappear. Using Adobe Acrobat I can check which specific fonts are embedded. Would installing such fonts in Microsoft Word work it out? If so, where can I get or even create those subsets of the fonts I need? If not, how could I solve this problem? Kurt Pfeifle You should check your PDF document's fonts first with the help of the pdffonts utility. That is part of the XPDF package for Windows and can be used without

How can I add javascript to a PDF document to count the number of checked boxes and enter the value into a textbox area?

大城市里の小女人 提交于 2019-12-04 16:44:26
So I have a PDF doc that has 25 check boxes called "cb1" through "cb25". I would like to be able to count the number of boxes that are checked and put that count into a text box area called "Points". I'm not very familiar with either JS or PDF form creation but from what I've been able to dig up I think I'm close to getting it to work. I have added the following code to the document level: function CountCheckBoxes(aFieldsNames) { // count field names that have been selected var count = 0; // loop through array of field names for (i = 0; i < aFieldNames.length; i++) { // for field names with a

How to automate extracting pages from a PDF using AppleScript and Acrobat Pro?

微笑、不失礼 提交于 2019-12-04 14:10:59
I'm new to AppleScript, but I am trying to create a script that will go through all PDFs in a folder extracting the pages into separate files. My plan is to use a combination of Automator and AppleScript. My AppleScript so far is: tell application "Adobe Acrobat Pro" open theFile set numPages to (count active doc each page) --execute the extraction here end tell The command in Acrobat Pro is under Options > Extract Pages... , where I can specify the page range and to extract to separate files. However, I can't seem to find a way to do this with the Acrobat Pro Dictionary in AppleScript. There