Thom Parker
Community Expert
Thom Parker
Community Expert
Activity
7 hours ago
By same issue, do you mean that you are trying to call a JavaScript function that does not exist in the Acrobat API?
If not, then please be more specific.
... View more
‎Mar 07, 2025
08:38 AM
The best way to detect a non-compliant viewer is to place a visual obstruction over the pages in the PDF. Maybe hide all the fields as well. Then use a document level script to remove the visual obstruction and show the fields. If the viewer is non-compliant the code won't run, or won't run correctly, and the obstruction will remain.
... View more
‎Mar 05, 2025
03:24 PM
1 Upvote
This is a somewhat avanced task that requires some study. For example, there is no stampState property or value.
See these article for information on creating a dynamic stamp:
https://acrobatusers.com/tutorials/dynamic_stamp_secrets/
https://www.pdfscripting.com/public/All_About_PDF_Stamps.cfm
https://www.pdfscripting.com/public/ACRODIALOGS-OVERVIEW.cfm
... View more
‎Mar 05, 2025
08:51 AM
Also, where is this script placed? If it's a caculation for "RealEstate_NetValue_1", then it should be a custom calculation on that field, and it should be written slightly differently.
... View more
‎Mar 05, 2025
08:50 AM
Is there formatting on the field? The formatting controls what is displayed.
... View more
‎Mar 05, 2025
08:33 AM
Where is the code placed? It is written as if it was on a button on the PDF.
For example, this code
event.target.page
Will only return the page number for a form field that has a single instance. This is the only context in which it makes sense. Is there only a single instance of the button?
... View more
‎Mar 04, 2025
11:44 PM
Yes it does. I've used it many times.
All you need is this code:
this.addAnnot({type:"FileAttachment", page:0, point:[100,100]});
That's it.
... View more
‎Mar 04, 2025
10:01 PM
The methodology that uses the attachment annotation works in Reader. You should write your code to only use this method.
... View more
‎Mar 04, 2025
02:37 PM
You got the same error because you didn't fix the syntax error. Take a closer look at the quotes, at the location I specified. I mean really look at it. Can you see a difference between the ending double quote and all the other double quotes?
And this is not related to Adobe, or Acrobat. The syntax error is a JavaScript issue.
... View more
‎Mar 04, 2025
02:35 PM
Thanks for catching these. I was just looking for the syntax error and not the logic.
... View more
‎Mar 04, 2025
01:55 PM
Unterminated Literal means that the ending delimiter for a literal value was not found. It boils down to a missing quote on one of your string literal. In this case, what looks like a ending quote is not really a compliant quote, on the word "Dropdown9". JavaScript syntax is all in ASCII characters, and the ending quote on that word is UNICODE. This is the kind of thing that gets inserted when code is edited in a word processor, so don't edit code in a word processor.
Just replace it and you are good.
... View more
‎Mar 04, 2025
09:42 AM
By investigating, do you mean that you read through the Acrobat JavaScript Reference and Programming Guide?
If not, then you should do so.
If the relative document URLs are inside existing links objects on the PDFs, then they are not accesible from a Script.
... View more
‎Mar 03, 2025
10:31 PM
Did you have a question?
... View more
‎Mar 03, 2025
04:03 PM
2 Upvotes
Most 3rd party PDF viewers are unfortunately non-compliant, i.e., they do not implement interactive PDF features correctly. There is nothing you can do except to prevent the PDF from being used in a non-compliant viewer.
... View more
‎Mar 03, 2025
02:23 PM
Sounds like there is a duplicate field underneath the field. This is a commom mistake, and easy to do, when creating a form. I would suggest deleting the field on top.
... View more
‎Mar 03, 2025
11:57 AM
I believe you are talking about two different things, page content and annotation objects. Page content is all the text, graphics, and images that are part of the PDF Page. Annotations are rectangular object that float over the page content. Annotations inclue all of the text markups like highlights and crossouts, they include the drawing objects like squares and circles. And most importantly, they include form fields.
When you are in "Edit PDF" mode, you're editing the page content. The text boxes and images in this mode have zero relation ship to the annotations. You can add "text" in this mode. It is often described as a "text box" but its just plain page content. These text boxes and other page content items provide options for moving them up and down the page drawing stack, the "Bring to front", etc. options. These options only affect page content items. Annotations are always drawn over page content, never under.
See this video that covers the internal structure of a PDF. At 5:36 there is a nice graphic that explains this concept:
https://www.pdfscripting.com/public/FreeStuff/AcroForm_Concepts/Part1g_WhatsPDF_mp4.cfm
... View more
‎Mar 03, 2025
10:03 AM
I should have been a bit more explicit. If you make the PDF an Adobe Sign form and use the Adobe Sign fields in Acrobat. Then you can specify how the field is supposed to behave. Fields can be marked as prefilled by the sender, or to be filled by the reciever. That sort of thing. There is quite a bit of control over how the fields are treated and how the form is routed. Adobe Sign is actually a really good tool. But you have to know how to use it.
... View more
‎Mar 02, 2025
10:26 PM
I believe there is an Adobe Sign Forum. You should ask the question there.
However, I would suggest checking your login to make sure it's the correct one. Maybe logging out and clearing the browser cookies, then logging in with the correct user name would do the trick.
... View more
‎Mar 02, 2025
01:31 PM
1 Upvote
DocuSign is not an Adobe application. Do you mean the Adobe Acrobat Sign app?
... View more
‎Feb 28, 2025
03:06 PM
That PDF does not contain any form fields.
Did you intend to copy fields from the first form onto the second?
If so I would suggest using the replace Pages option in the "Organize Pages" toolset
... View more
‎Feb 27, 2025
05:20 PM
Adobe Reader should work fine. There must be something else going on. You will need to debug this from a user's computer where it isn't working.
How are you sending the form to them?
... View more
‎Feb 27, 2025
05:13 PM
As stated in my response, ".Net" is an executable in the local file system, which is restricted in protected mode. I suspect that ".Net" itself is blocked. But even if it is not, then maybe it is doing something on the local file system to open the socket that Acrobat doesn't like. Your guess is as good as mine.
... View more
‎Feb 26, 2025
10:42 PM
The form is fine. The problem is on the user end.
What PDF viewer/app are the users using to fill the PDF?
... View more
‎Feb 26, 2025
10:39 PM
Protected mode restricts access to the local file system, so the Windows API functions won't work, unless you create a broker.
But the solution is simple. Save the PDF to the new location using the Acrobat SDK functions. Then you avoid the restriction.
... View more
‎Feb 26, 2025
02:36 PM
Use the Custom Validation script on each field.
For example:
if(event.value <=4 )
event.target.fillColor = color.green;
Here's an article on how to edit field properties such as the Validation Script.
https://www.pdfscripting.com/public/Editing-Fields-Properties.cfm
Here's the reference entry for form field properties:
https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#field-properties
You'll find more information on scripting form fields here:
https://www.pdfscripting.com/public/PDF-Form-Scripting.cfm
You're value ranges are unworkable, so you'll need to modify them.
... View more
‎Feb 26, 2025
11:30 AM
The regulare expressions I provided are not for correcting input, but for detecting incorrect input.
Here's an article on how to use regular expressions:
https://www.pdfscripting.com/public/Pattern-Matching-with-Regular-Expressions.cfm?sd=40
... View more
‎Feb 26, 2025
09:55 AM
It's a bit of misinformation on Adobe's part because they don't explicitly say that Sign forms are not PDF forms. An Adobe Sign form is an electronic document that is viewed and operated on through the Adobe Sign Server, and only the Adobe Sign Server. You can use a PDF, Word, or possibly another type of document as a template that is fed into the Adobe Sign server to create an Adobe Sign Form. Sign forms have a different set form field types than a PDF form.
This is why there is an option in the Acrobat Form tools for creating a Sign form. This option displays a toolbar that has the correct set of available Sign Form fields.
... View more
‎Feb 25, 2025
09:25 AM
1 Upvote
Acrobat plug-ins are written in C++. So I have to assume that you did in fact write a plug-in in C++, but are loading a DLL created with C#. Is this correct?
I have not used C# for HTTP operations in a plug-in, but I have used the Windows API (and with MFC) for this purpose. I haven't had any issues in either protected or non-protected mode. So I do not think HTTP operations are the issue.
In protected mode Acrobat blocks access to local system resources that it considers risky. For example, the registry and file system, as well as any executable. Since .Net is a local executable, it makes sense that it would be blocked. I'm just speculating here. I'd suggest that you consider either accessing HTTP through the Windows API directly, or use a Broker to handle protected mode.
... View more
‎Feb 25, 2025
07:53 AM
You will find the answer here:
https://www.pdfscripting.com/public/Hiding-and-Showing-Form-Fields.cfm?sd=40
The simple way to do this is to use the MouseUp event on a radio button. You'll need to put code on every radio button that affects the visibility of the field.
... View more
‎Feb 24, 2025
06:51 PM
Ok, so the plugin is trying and intermittantly failing to save a PDF file to a local folder that was opened from Google Drive. And it is doing so with no failure indication. I'm drawing a blank on that one.
And it's always with the same files. A repeated attempt doesn't eventually save the file?
... View more