Search found 322 matches
- Fri Nov 29, 2024 4:26 am
- Forum: PDF-XChange Editor
- Topic: Mathew's PDF-XCE JavaScripts SOLVED
- Replies: 13
- Views: 7670
Re: Mathew's PDF-XCE JavaScripts SOLVED
In the next 10.5 release of the Editor we are planning PDF-XChange specific extensions to the JavaScript API (mostly inspired by Mathew :D ). app.execDialog: Selection tracking for intermediate items in "hier_list_box". An option to disable sorting in "hier_list_box". Multi-selec...
- Tue Nov 26, 2024 7:11 pm
- Forum: PDF-XChange Editor
- Topic: Sessions disappearing after restart & system specified error
- Replies: 32
- Views: 2446
Re: Sessions disappearing after restart & system specified error
Can you please clarify whether the lost sessions were all created since the last start of the
Editor?
What is a typical uptime of your machine? Do you keep the Editor running in the background for a long time (say, for days) when you do not use it?
Editor?
What is a typical uptime of your machine? Do you keep the Editor running in the background for a long time (say, for days) when you do not use it?
- Tue Nov 26, 2024 2:18 am
- Forum: PDF-XChange Editor
- Topic: Sessions disappearing after restart & system specified error
- Replies: 32
- Views: 2446
Re: Sessions disappearing after restart & system specified error
In case of abnormal termination of the Editor (including the termination during a forced system shutdown or power off) the changes made to the Editor settings since the last start of the Editor, can be lost. If you keep the Editor running for a long time and then abruptly terminate it, you can lose ...
- Mon Nov 25, 2024 10:48 pm
- Forum: PDF-XChange Editor
- Topic: Sessions disappearing after restart & system specified error
- Replies: 32
- Views: 2446
Re: Sessions disappearing after restart & system specified error
Hello MedBooster,
What version of the Editor are currently using?
Was the latest case a full reset of the settings or only the sessions were affected?
Did you sessions disappear altogether or only the recently added ones?
What version of the Editor are currently using?
Was the latest case a full reset of the settings or only the sessions were affected?
Did you sessions disappear altogether or only the recently added ones?
- Sat Nov 23, 2024 2:41 am
- Forum: PDF-XChange Editor
- Topic: [javascript] determine which row is selected in dialog "hier_list_box" SOLVED
- Replies: 7
- Views: 607
Re: [javascript] determine which row is selected in dialog "hier_list_box" SOLVED
Hi Mathew, We will address both issues in the next feature release of the Editor. - tier_list_box intermediate nodes will support selection tracking through a special (with a runtime id to facilitate uniqueness) property that holds a signed integer value - exactly as it currently works for the leaf ...
- Fri Aug 02, 2024 11:12 pm
- Forum: PDF-XChange Editor
- Topic: [javascript] find current active document SOLVED
- Replies: 4
- Views: 1563
Re: [javascript] find current active document SOLVED
app.doc is an undocumented property, however Adobe Acrobat implements it as well.
- Fri Aug 02, 2024 10:18 pm
- Forum: PDF-XChange (End Users FR)
- Topic: [javascript] dialog that returns file path SOLVED
- Replies: 5
- Views: 3666
Re: [javascript] dialog that returns file path SOLVED
You can use something like
This will allow to browse for files with .myext extension.
Code: Select all
app.browseForDoc({cFilenameInit:"*.myext"})
- Fri Aug 02, 2024 7:08 pm
- Forum: PDF-XChange (End Users FR)
- Topic: [javascript] flag for when UI is in ribbon mode OR support app.listMenuItems() SOLVED
- Replies: 3
- Views: 3780
Re: [javascript] flag for when UI is in ribbon mode OR support app.listMenuItems() SOLVED
Hi Mathew,
app.listMenuItems will be implemented in the next release of PDF-XChange Editor.
app.listMenuItems will be implemented in the next release of PDF-XChange Editor.
- Fri Aug 02, 2024 6:55 pm
- Forum: PDF-XChange (End Users FR)
- Topic: [javascript] dialog that returns file path SOLVED
- Replies: 5
- Views: 3666
Re: [javascript] dialog that returns file path SOLVED
Hi Mathew,
Please see app.browseForDoc.
Please see app.browseForDoc.
- Fri Aug 02, 2024 6:40 pm
- Forum: PDF-XChange Editor
- Topic: [javascript] find current active document SOLVED
- Replies: 4
- Views: 1563
Re: [javascript] find current active document SOLVED
Hi Mathew,
To get the foreground document when it cannot be referenced as this, you can use the app.doc property.
To get the foreground document when it cannot be referenced as this, you can use the app.doc property.
- Wed Jun 12, 2024 10:48 pm
- Forum: PDF-XChange Editor
- Topic: [javascript] Limit on size of global object? SOLVED
- Replies: 3
- Views: 579
Re: [javascript] Limit on size of global object? SOLVED
Hi Mathew,
The Editor does not explicitly limit GlobData file size but limits the number of persistent properties by 65536.
As of an alternative to persistent global properties, you can consider Doc.createDataObject, Doc.exportDataObject, Doc.importDataObject and related API.
The Editor does not explicitly limit GlobData file size but limits the number of persistent properties by 65536.
As of an alternative to persistent global properties, you can consider Doc.createDataObject, Doc.exportDataObject, Doc.importDataObject and related API.
- Mon Jun 10, 2024 5:01 pm
- Forum: PDF-Tools
- Topic: Save Documents - Regex Fun with Backslash
- Replies: 3
- Views: 1214
Re: Save Documents - Regex Fun with Backslash
Hello, could you share more information about it? The issue with "undeletable" directory occurred because of discrepancy between the underlying filesystem and Windows API capabilities. The filesystem itself allows trailing spaces and dots in file and directory names while the API can filt...
- Thu Jun 06, 2024 9:21 pm
- Forum: PDF-Tools
- Topic: Save Documents - Regex Fun with Backslash
- Replies: 3
- Views: 1214
Re: Save Documents - Regex Fun with Backslash
Hello bkennedy, Thank you. Yes, this is an issue in our product, we will resolve it in a next release of PDF-XChange Tools. You can delete a directory with leading and/or trailing spaces with this console command: rd /Q /S "\\?\<full path to the directory>" For example, if your directory i...
- Wed Jun 05, 2024 9:53 pm
- Forum: PDF-XChange Print Drivers
- Topic: Crash scenario - Firefox - Xchange Printer home
- Replies: 6
- Views: 5188
Re: Crash scenario - Firefox - Xchange Printer home
The issue has been resolved. The fix will be available in the upcoming maintenance release of our products (v10.3.1).
- Sat May 18, 2024 2:03 am
- Forum: PDF-XChange Editor
- Topic: [javascript] Cannot set name and modDate on annotation SOLVED
- Replies: 3
- Views: 1159
Re: [javascript] Cannot set name and modDate on annotation SOLVED
Hi Mathew, Thank you. It is a bug. It will be resolved in the next release of the Editor. In the meanwhile you can use this workaround: function myAddAnnot(doc, annotData) { const newAnnot = doc.addAnnot(annotData); newAnnot.name = annotData.name; return newAnnot; } { let partyDate = new Date('1999-...
- Wed May 08, 2024 12:05 am
- Forum: PDF-XChange Editor
- Topic: [javascript bug?] list_box type in app.execDialog() does not have a change or validate event ? SOLVED
- Replies: 6
- Views: 592
Re: [javascript bug?] list_box type in app.execDialog() does not have a change or validate event ? SOLVED
Hi Mathew,
Thanks, the first issue is already resolved, the fix will be available in the next release of the Editor.
Thanks, the first issue is already resolved, the fix will be available in the next release of the Editor.
- Wed Apr 17, 2024 9:21 pm
- Forum: PDF-XChange Editor
- Topic: [javascript] determine if field has focus SOLVED
- Replies: 8
- Views: 1180
Re: [javascript] determine if field has focus SOLVED
Actually, we have implemented it as a method, not property, to be more consistent with the existing Acrobat API ( Field.setFocus() ).
- Wed Apr 17, 2024 9:09 pm
- Forum: PDF-XChange Editor
- Topic: [javascript bug] cEnable expressions may cause application crash
- Replies: 4
- Views: 422
Re: [javascript bug] cEnable expressions may cause application crash
Hi Mathew,
I was unable to reproduce the crash. Can you please setup automatic crash dumps for the Editor and send us the crash dump file when you get that crash next time? Thanks.
I was unable to reproduce the crash. Can you please setup automatic crash dumps for the Editor and send us the crash dump file when you get that crash next time? Thanks.
- Wed Apr 17, 2024 9:03 pm
- Forum: PDF-XChange Editor
- Topic: [javascript] determine if field has focus SOLVED
- Replies: 8
- Views: 1180
- Tue Mar 26, 2024 10:23 pm
- Forum: PDF-XChange Editor
- Topic: [javascript] determine if field has focus SOLVED
- Replies: 8
- Views: 1180
Re: [javascript] determine if field has focus SOLVED
Hi Mathew,
I do not currently see an non-intrusive way to achieve that. We will consider adding hasFocus property to Field object, as an PDF-XChange extension to the Acrobat JS API.
I do not currently see an non-intrusive way to achieve that. We will consider adding hasFocus property to Field object, as an PDF-XChange extension to the Acrobat JS API.
- Thu Feb 01, 2024 4:44 am
- Forum: Editor plugins
- Topic: My pluggin is not working anymore with last update
- Replies: 11
- Views: 6950
Re: My pluggin is not working anymore with last update
Hi nbmani, Please try this one: app.addToolButton({ cName: "ExtractPagesByKeywords", cLabel: "Extract Pages by Keywords to one PDF file", cExec: "extractPagesByKeywords()", cTooltext: "Extract pages containing specific keywords", cEnable: true, nPos: -1 }); va...
- Tue Jan 23, 2024 11:09 pm
- Forum: PDF-XChange Editor
- Topic: Redact names with PDFTools
- Replies: 3
- Views: 248
Re: Redact names with PDFTools
Hello basbeek,
Assuming the organization name has the same pattern as the last and first name (i.e. [A-Za-z0-9_%+-]+),
the regular expression for your first case can be:
\b[A-Za-z0-9_%+-]+\s*,\s*[A-Za-z0-9_%+-]+\s*(?=\([A-Za-z0-9_%+-]+\))
Assuming the organization name has the same pattern as the last and first name (i.e. [A-Za-z0-9_%+-]+),
the regular expression for your first case can be:
\b[A-Za-z0-9_%+-]+\s*,\s*[A-Za-z0-9_%+-]+\s*(?=\([A-Za-z0-9_%+-]+\))
- Fri Jan 12, 2024 6:41 pm
- Forum: PDF-XChange Editor
- Topic: Forced Exit
- Replies: 19
- Views: 6110
Re: Forced Exit
Hi bwelsh_tracker,
We will contact you later today with further steps.
Thanks for your patience.
We will contact you later today with further steps.
Thanks for your patience.
- Wed Jan 10, 2024 8:16 pm
- Forum: PDF-XChange Editor
- Topic: Forced Exit
- Replies: 19
- Views: 6110
Re: Forced Exit
Thanks.
Were any other applications opened when that issue occurred?
If you are unsure, please open MS Office Word application and leave you computer locked for a while. As you did this with the Editor.
Were any other applications opened when that issue occurred?
If you are unsure, please open MS Office Word application and leave you computer locked for a while. As you did this with the Editor.
- Wed Jan 10, 2024 6:19 pm
- Forum: PDF-XChange Editor
- Topic: Forced Exit
- Replies: 19
- Views: 6110
Re: Forced Exit
Please create a memory dump of the Editor process when you see it in that state next time.
You can use Windows Task Manager for this: Then upload the resulting dump file (%TEMP%\PDFXEdit.dmp) here.
You can use Windows Task Manager for this: Then upload the resulting dump file (%TEMP%\PDFXEdit.dmp) here.
- Tue Jan 09, 2024 8:39 pm
- Forum: PDF-XChange Editor
- Topic: Forced Exit
- Replies: 19
- Views: 6110
Re: Forced Exit
Hello bwelsh_tracker,
Please disable Windows Screensaver and check if the issue still persists when you leave your computer for a while.
Please disable Windows Screensaver and check if the issue still persists when you leave your computer for a while.
- Tue Sep 12, 2023 9:13 pm
- Forum: PDF-XChange Editor
- Topic: WARNING new update 368→370 [glitch] UI is reset
- Replies: 17
- Views: 3405
Re: WARNING new update 368→370 [glitch] UI is reset
Hello MedBooster, We are terribly sorry for this. Were you able to load your settings from that backup file before? Can you please send us that backup file? You can use our file service to upload the file. Also, next time you run into the UI settings having been reset, please launch Windows Command ...
- Tue Jul 18, 2023 6:33 pm
- Forum: PDF-XChange Editor
- Topic: javascript feature request: global object policy refinement? SOLVED
- Replies: 21
- Views: 5087
Re: javascript feature request: global object policy refinement? SOLVED
Thank you too, Mathew. Your observations really help us to improve our software. I agree, it might be controversial and not intuitive, but our implementation of JS API has to be compatible with Adobe specification, so that documents created by other software will work in the Editor. However, we can ...
- Tue Jul 18, 2023 2:23 am
- Forum: PDF-XChange Editor
- Topic: javascript feature request: global object policy refinement? SOLVED
- Replies: 21
- Views: 5087
- Mon Jul 17, 2023 7:01 pm
- Forum: PDF-XChange Editor
- Topic: javascript feature request: global object policy refinement? SOLVED
- Replies: 21
- Views: 5087
Re: javascript feature request: global object policy refinement? SOLVED
If you have documents open, and set a global variable with a privileged function while it is open, the first unprivileged document to access that variable after setting it will become the owner. I cannot reproduce this behavior, Mathew. Here are my steps: Open those 2 test documents (containing but...
- Fri Jul 14, 2023 6:49 pm
- Forum: PDF-XChange Editor
- Topic: javascript feature request: global object policy refinement? SOLVED
- Replies: 21
- Views: 5087
Re: javascript feature request: global object policy refinement? SOLVED
7. Set the global variable again using the trusted function, and go to the other document. It will now be able to access it, and will be the new "owner" of this variable. This does not change the owner of the document. After this step the other document still cannot access the variable. B...
- Tue Jul 11, 2023 6:47 pm
- Forum: PDF-XChange Editor
- Topic: "Save As" Button not working anymore SOLVED
- Replies: 4
- Views: 3242
Re: "Save As" Button not working anymore SOLVED
Hello, Finn, According to the Adobe Acrobat JS API specification, Doc.saveAs method can only be called in a privileged context - i.e. either from the JS console or an application initialization script, or by using privilege elevation functions app.beginPriv/endPriv, which, it their turn, can only be...
- Fri Jul 07, 2023 10:03 pm
- Forum: PDF-XChange Editor
- Topic: javascript feature request: global object policy refinement? SOLVED
- Replies: 21
- Views: 5087
Re: javascript feature request: global object policy refinement? SOLVED
Hello, Mathew, According to the Adobe Acrobat JS API specification, when a global variable is changed, it becomes associated with the active document (receives that document as a security origin). In non-privileged context it is possible to access only global variables whose origin is the active doc...
- Sat Jul 01, 2023 7:10 pm
- Forum: PDF-XChange Editor
- Topic: javascript feature request: global object policy refinement? SOLVED
- Replies: 21
- Views: 5087
Re: javascript feature request: global object policy refinement? SOLVED
Hello, Mathew,
What version of the Editor are you talking about in your previous post?
What version of the Editor are you talking about in your previous post?
- Wed Jun 28, 2023 8:54 pm
- Forum: PDF-XChange Editor
- Topic: javascript feature request: global object policy refinement? SOLVED
- Replies: 21
- Views: 5087
Re: javascript feature request: global object policy refinement? SOLVED
Hi Mathew,
I just ran your test cases on the latest release candidate build. The issues you have reported above, have been addressed in the upcoming v10.0.1 release of the Editor.
Thank you again.
I just ran your test cases on the latest release candidate build. The issues you have reported above, have been addressed in the upcoming v10.0.1 release of the Editor.
Thank you again.
- Wed Jun 28, 2023 2:58 am
- Forum: PDF-XChange Editor
- Topic: javascript feature request: global object policy refinement? SOLVED
- Replies: 21
- Views: 5087
Re: javascript feature request: global object policy refinement? SOLVED
Thank you, Mathew, for your thorough analysis.
We are aware of certain inconsistencies in our implementation of JS globals.
We are working to address some of the issues (at least) in the next release of the Editor.
We are aware of certain inconsistencies in our implementation of JS globals.
We are working to address some of the issues (at least) in the next release of the Editor.
- Mon Jun 26, 2023 10:24 pm
- Forum: PDF-XChange Editor
- Topic: javascript feature request: global object policy refinement? SOLVED
- Replies: 21
- Views: 5087
Re: javascript feature request: global object policy refinement? SOLVED
Hello, Mathew Even if I make trusted functions, unless the GlobData file is edited manually, or Global Object Security Policy is disabled, that variable name remains blocked. In privileged context all global variables should be accessible, regardless of their origin. If that was your observation, no...
- Fri Jun 23, 2023 10:38 pm
- Forum: PDF-XChange Editor
- Topic: Hatch pattern tool SOLVED
- Replies: 93
- Views: 44587
Re: Hatch pattern tool SOLVED
Hi Mathew,
It is really impressive that you keep sharing such a useful and high quality work.
Maybe it makes sense to publish your code in a public source version control service (such as https://github.com/) ? I think this could make your work more accessible to other people.
It is really impressive that you keep sharing such a useful and high quality work.
Maybe it makes sense to publish your code in a public source version control service (such as https://github.com/) ? I think this could make your work more accessible to other people.
- Thu Jun 22, 2023 9:56 pm
- Forum: PDF-XChange Editor
- Topic: javascript: app.beginPriv() error in v10.0 SOLVED
- Replies: 11
- Views: 2740
Re: javascript: app.beginPriv() error in v10.0 SOLVED
You can automate copy/paste by using a kind of preprocessor. If you have a C/C++ compiler installed, you can use it for this purpose. It sounds weird but should work. For example, assuming clang compiler (you can download the installer here ), if you have a shared.js file containing declarations to ...
- Wed Jun 21, 2023 8:23 pm
- Forum: PDF-XChange Editor
- Topic: javascript: app.beginPriv() error in v10.0 SOLVED
- Replies: 11
- Views: 2740
Re: javascript: app.beginPriv() error in v10.0 SOLVED
We are thinking on implementing JS module support as an extension to Adobe JS API, but it is not a trivial task, considering all the peculiarities of Adobe Acrobat behaviour we need to conform to. I think, you can use the following workaround for your case: var C = class { // normal class content he...
- Tue Jun 20, 2023 5:42 pm
- Forum: PDF-XChange Editor
- Topic: javascript: app.beginPriv() error in v10.0 SOLVED
- Replies: 11
- Views: 2740
Re: javascript: app.beginPriv() error in v10.0 SOLVED
You are very welcome, Mathew!
Thank you too for helping us improve our product.
Thank you too for helping us improve our product.
- Mon Jun 19, 2023 9:32 pm
- Forum: PDF-XChange Editor
- Topic: javascript: app.beginPriv() error in v10.0 SOLVED
- Replies: 11
- Views: 2740
Re: javascript: app.beginPriv() error in v10.0 SOLVED
This modification of your code should also work: var TRUSTED_GLOBAL_VALS = app.trustedFunction ( function(globalVar) { app.beginPriv(); return { g: globalVar, // name of the global variable get : app.trustedFunction( function (){ let g = this.g; app.beginPriv(); var d = global[g]; if (d) d = JSON.pa...
- Mon Jun 19, 2023 8:54 pm
- Forum: PDF-XChange Editor
- Topic: javascript: app.beginPriv() error in v10.0 SOLVED
- Replies: 11
- Views: 2740
Re: javascript: app.beginPriv() error in v10.0 SOLVED
Hello Mathew, Trusted functions (produced by a call to app.trustedFunction) can only be created from an application initialization or a console script. The fact that your trusted function TRUSTED_GLOBAL_VALS initializes methods of an object, does not make those methods trusted functions themselves. ...
- Wed May 31, 2023 6:11 pm
- Forum: PDF-XChange Editor
- Topic: javascript: No undo for annotations added with doc.addAnnot()
- Replies: 10
- Views: 1528
Re: javascript: No undo for annotations added with doc.addAnnot()
I think excluding script actions from the undo list is very counterintuitive. If I run a script that makes changes on a document, if the undo ignores it, I won't be able to save the changes (PDF-XChange will act like nothing has changed). I have to make a manual change before it even un-greys the s...
- Wed May 31, 2023 12:55 am
- Forum: PDF-XChange Editor
- Topic: javascript: No undo for annotations added with doc.addAnnot()
- Replies: 10
- Views: 1528
Re: javascript: No undo for annotations added with doc.addAnnot()
Yes, Mathew, you are right about the inconsistency.
We should exclude annotation modification from the undo list as well, when done from script.
We will discuss your proposed feature and let you know. However, it is unlikely to be included in the upcoming release of the Editor because lack of time.
We should exclude annotation modification from the undo list as well, when done from script.
We will discuss your proposed feature and let you know. However, it is unlikely to be included in the upcoming release of the Editor because lack of time.
- Tue May 30, 2023 7:17 pm
- Forum: PDF-XChange Editor
- Topic: javascript: trustPropagatorFunction() crashes app SOLVED
- Replies: 6
- Views: 1441
Re: javascript: trustPropagatorFunction() crashes app SOLVED
Hi Mathew,
Yes, our support for trusted functions is incomplete at the moment. We are going improve this in the next major release of the Editor. It is expected within the next month.
Yes, our support for trusted functions is incomplete at the moment. We are going improve this in the next major release of the Editor. It is expected within the next month.
- Tue May 30, 2023 7:10 pm
- Forum: PDF-XChange Editor
- Topic: javascript: No undo for annotations added with doc.addAnnot()
- Replies: 10
- Views: 1528
Re: javascript: No undo for annotations added with doc.addAnnot()
Hi Mathew,
Yes, annotations added by a script cannot be undone. This behaviour is by design and aims to prevent flooding the undo list with operations that the user can be unaware of.
Yes, annotations added by a script cannot be undone. This behaviour is by design and aims to prevent flooding the undo list with operations that the user can be unaware of.
- Mon May 29, 2023 10:49 pm
- Forum: PDF-XChange Editor
- Topic: javascript: trustPropagatorFunction() crashes app SOLVED
- Replies: 6
- Views: 1441
Re: javascript: trustPropagatorFunction() crashes app SOLVED
Hello, Mathew, The issue is caused by using the method util.readFileIntoStream as an unbound function. This is a correct version of your code: // try to make a trust propagator function out of the readFileIntoStream function var trustedReadFileFunction = app.trustPropagatorFunction( file => util.rea...
- Mon May 22, 2023 5:36 pm
- Forum: PDF-XChange Core API SDK
- Topic: System.Runtime.InteropServices.COMException (0x8000FFFF)
- Replies: 1
- Views: 3241
Re: System.Runtime.InteropServices.COMException (0x8000FFFF)
Can you please provide a working sample of your code that reproduces the issue?
Along with sample input files.
Thanks.
Along with sample input files.
Thanks.
- Tue Mar 14, 2023 9:32 pm
- Forum: PDF-XChange Editor
- Topic: Losing settings upon program restart SOLVED
- Replies: 17
- Views: 2844
Re: Losing settings upon program restart SOLVED
Hello, PeterBern and Cove888, Please provide a screenshot of the Editor About window ( Help -> About ). To make a screenshot of a window, press Win+Shift+S key combination, select Window Snip mode (on the toolbar above), and then click on the window. The screenshot will be copied to the clipboard. T...