Search found 303 matches

by Roman - Tracker Supp
Tue Mar 26, 2024 10:23 pm
Forum: PDF-XChange Editor
Topic: [javascript] determine if field has focus SOLVED
Replies: 5
Views: 188

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.
by Roman - Tracker Supp
Thu Feb 01, 2024 4:44 am
Forum: Editor plugins
Topic: My pluggin is not working anymore with last update
Replies: 11
Views: 5226

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...
by Roman - Tracker Supp
Tue Jan 23, 2024 11:09 pm
Forum: PDF-XChange Editor
Topic: Redact names with PDFTools
Replies: 3
Views: 116

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_%+-]+\))
by Roman - Tracker Supp
Fri Jan 12, 2024 6:41 pm
Forum: PDF-XChange Editor
Topic: Forced Exit
Replies: 19
Views: 5425

Re: Forced Exit

Hi bwelsh_tracker,
We will contact you later today with further steps.
Thanks for your patience.
by Roman - Tracker Supp
Wed Jan 10, 2024 8:16 pm
Forum: PDF-XChange Editor
Topic: Forced Exit
Replies: 19
Views: 5425

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.
by Roman - Tracker Supp
Wed Jan 10, 2024 6:19 pm
Forum: PDF-XChange Editor
Topic: Forced Exit
Replies: 19
Views: 5425

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:
image.png
Then upload the resulting dump file (%TEMP%\PDFXEdit.dmp) here.
by Roman - Tracker Supp
Tue Jan 09, 2024 8:39 pm
Forum: PDF-XChange Editor
Topic: Forced Exit
Replies: 19
Views: 5425

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.
image.png
by Roman - Tracker Supp
Tue Sep 12, 2023 9:13 pm
Forum: PDF-XChange Editor
Topic: WARNING new update 368→370 [glitch] UI is reset
Replies: 11
Views: 1823

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 ...
by Roman - Tracker Supp
Tue Jul 18, 2023 6:33 pm
Forum: PDF-XChange Editor
Topic: javascript feature request: global object policy refinement? SOLVED
Replies: 21
Views: 2695

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 ...
by Roman - Tracker Supp
Mon Jul 17, 2023 7:01 pm
Forum: PDF-XChange Editor
Topic: javascript feature request: global object policy refinement? SOLVED
Replies: 21
Views: 2695

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...
by Roman - Tracker Supp
Fri Jul 14, 2023 6:49 pm
Forum: PDF-XChange Editor
Topic: javascript feature request: global object policy refinement? SOLVED
Replies: 21
Views: 2695

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...
by Roman - Tracker Supp
Tue Jul 11, 2023 6:47 pm
Forum: PDF-XChange Editor
Topic: "Save As" Button not working anymore SOLVED
Replies: 4
Views: 1994

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...
by Roman - Tracker Supp
Fri Jul 07, 2023 10:03 pm
Forum: PDF-XChange Editor
Topic: javascript feature request: global object policy refinement? SOLVED
Replies: 21
Views: 2695

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...
by Roman - Tracker Supp
Sat Jul 01, 2023 7:10 pm
Forum: PDF-XChange Editor
Topic: javascript feature request: global object policy refinement? SOLVED
Replies: 21
Views: 2695

Re: javascript feature request: global object policy refinement? SOLVED

Hello, Mathew,
What version of the Editor are you talking about in your previous post?
by Roman - Tracker Supp
Wed Jun 28, 2023 8:54 pm
Forum: PDF-XChange Editor
Topic: javascript feature request: global object policy refinement? SOLVED
Replies: 21
Views: 2695

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.
by Roman - Tracker Supp
Wed Jun 28, 2023 2:58 am
Forum: PDF-XChange Editor
Topic: javascript feature request: global object policy refinement? SOLVED
Replies: 21
Views: 2695

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.
by Roman - Tracker Supp
Mon Jun 26, 2023 10:24 pm
Forum: PDF-XChange Editor
Topic: javascript feature request: global object policy refinement? SOLVED
Replies: 21
Views: 2695

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...
by Roman - Tracker Supp
Fri Jun 23, 2023 10:38 pm
Forum: PDF-XChange Editor
Topic: Hatch pattern tool SOLVED
Replies: 42
Views: 21222

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.
by Roman - Tracker Supp
Thu Jun 22, 2023 9:56 pm
Forum: PDF-XChange Editor
Topic: javascript: app.beginPriv() error in v10.0 SOLVED
Replies: 11
Views: 1489

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 ...
by Roman - Tracker Supp
Wed Jun 21, 2023 8:23 pm
Forum: PDF-XChange Editor
Topic: javascript: app.beginPriv() error in v10.0 SOLVED
Replies: 11
Views: 1489

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...
by Roman - Tracker Supp
Tue Jun 20, 2023 5:42 pm
Forum: PDF-XChange Editor
Topic: javascript: app.beginPriv() error in v10.0 SOLVED
Replies: 11
Views: 1489

Re: javascript: app.beginPriv() error in v10.0 SOLVED

You are very welcome, Mathew!
Thank you too for helping us improve our product.
by Roman - Tracker Supp
Mon Jun 19, 2023 9:32 pm
Forum: PDF-XChange Editor
Topic: javascript: app.beginPriv() error in v10.0 SOLVED
Replies: 11
Views: 1489

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...
by Roman - Tracker Supp
Mon Jun 19, 2023 8:54 pm
Forum: PDF-XChange Editor
Topic: javascript: app.beginPriv() error in v10.0 SOLVED
Replies: 11
Views: 1489

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. ...
by Roman - Tracker Supp
Wed May 31, 2023 6:11 pm
Forum: PDF-XChange Editor
Topic: javascript: No undo for annotations added with doc.addAnnot()
Replies: 8
Views: 616

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...
by Roman - Tracker Supp
Wed May 31, 2023 12:55 am
Forum: PDF-XChange Editor
Topic: javascript: No undo for annotations added with doc.addAnnot()
Replies: 8
Views: 616

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.
by Roman - Tracker Supp
Tue May 30, 2023 7:17 pm
Forum: PDF-XChange Editor
Topic: javascript: trustPropagatorFunction() crashes app SOLVED
Replies: 6
Views: 818

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.
by Roman - Tracker Supp
Tue May 30, 2023 7:10 pm
Forum: PDF-XChange Editor
Topic: javascript: No undo for annotations added with doc.addAnnot()
Replies: 8
Views: 616

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.
by Roman - Tracker Supp
Mon May 29, 2023 10:49 pm
Forum: PDF-XChange Editor
Topic: javascript: trustPropagatorFunction() crashes app SOLVED
Replies: 6
Views: 818

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...
by Roman - Tracker Supp
Mon May 22, 2023 5:36 pm
Forum: PDF-XChange Core API SDK
Topic: System.Runtime.InteropServices.COMException (0x8000FFFF)
Replies: 1
Views: 1809

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.
by Roman - Tracker Supp
Tue Mar 14, 2023 9:32 pm
Forum: PDF-XChange Editor
Topic: Losing settings upon program restart SOLVED
Replies: 17
Views: 1539

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...
by Roman - Tracker Supp
Tue Mar 14, 2023 5:35 pm
Forum: PDF-XChange Editor
Topic: Optimizer Presets - Version 366
Replies: 30
Views: 2684

Re: Optimizer Presets - Version 366

Hi Arnold,
Can you please check if the problem has been resolved in the recently released build 367 of the Editor? So that we could mark this topic as resolved.
Thanks.
by Roman - Tracker Supp
Wed Mar 01, 2023 1:11 am
Forum: PDF-XChange Editor
Topic: Optimizer Presets - Version 366
Replies: 30
Views: 2684

Re: Optimizer Presets - Version 366

Thanks Arnold,
Looks like your issue is caused by a defect in a Windows component that the Editor uses starting from version 9.4.365.
We are going to implement a workaround for this issue in the upcoming build 367 (the release is expected next week).
by Roman - Tracker Supp
Tue Feb 28, 2023 8:05 pm
Forum: PDF-XChange Editor
Topic: Optimizer Presets - Version 366
Replies: 30
Views: 2684

Re: Optimizer Presets - Version 366

Hello Arnold,

What is your Windows version and platform (x86, x64, arm64) ? Is your machine in a Windows domain? Do you have any third-party software installed (like registry cleaners, redirectors etc)?

Thanks.
by Roman - Tracker Supp
Sat Feb 11, 2023 7:02 pm
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

This is terribly slow.
So we definitely need to run an instrumented performance test on your machine - there is no point to guess what is the bottleneck in your case.
I have emailed you the further instructions.
by Roman - Tracker Supp
Sat Feb 11, 2023 12:36 am
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

Thanks PHK.
It appeared that the build 366.2 introduces a bug. Please download the updated build 366.3 here.
Please be aware this is also a pre-release build and can be unstable.
by Roman - Tracker Supp
Fri Feb 10, 2023 3:34 am
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

So, I think it is possible that the problematic document you have created is naturally too complex to be opened in a reasonable time. At least we cannot be sure, as you did not try to work with it in another PDF editor, correct? Regardless of the optimization efforts we could undertake, it will alwa...
by Roman - Tracker Supp
Thu Feb 09, 2023 1:22 am
Forum: PDF-Tools
Topic: [suggestion] Extended OCR error message due to lack of system resources
Replies: 10
Views: 1512

Re: [suggestion] Extended OCR error message due to lack of system resources

Hi Jensen Head, Can you please send us your PDF Tools settings? You can export your settings to a file (Options->Export All Settings) and send us that file. Is it possible to reliably reproduce this error by repeatedly running the "OCR Pages" tool on the same set of input files? What is th...
by Roman - Tracker Supp
Wed Feb 08, 2023 6:53 pm
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

We are focused on improving the Editor performance for "useful" cases. I mean documents created with a useful purpose in mind. It is no problem to create a 'strange' document that contains unbearable amount of text, images, etc. that will cause problems to any PDF software. Moreover, optim...
by Roman - Tracker Supp
Mon Feb 06, 2023 9:33 pm
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

The implemented optimizations will be useful for other cases (like the "ECMA-262-..." document above). But in your specific case the "bottleneck" is something else. Hopefully we will be able to identify and address it too. Thank you, PHK for your patience and useful feedback.
by Roman - Tracker Supp
Mon Feb 06, 2023 9:14 pm
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

As of the desynchronization issue between Content panel items and the document view after page merging - I passed this information to another developer who has more expertise in this. As of the main issue (freezing) - I have some ideas, but it would be better to delay the conclusion until we can col...
by Roman - Tracker Supp
Sun Feb 05, 2023 11:57 pm
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

Thanks PHK.
Please let us know when ready.
by Roman - Tracker Supp
Sat Feb 04, 2023 10:07 pm
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

Just to be sure - I assume you have this freezing issue on the same hardware you already reported to us in another topic (Intel i7 11700KF, 16 GB RAM). Also please measure the opening time of this test pdf file , just to have something in common to compare. Please open this file from your local drive.
by Roman - Tracker Supp
Sat Feb 04, 2023 9:45 pm
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

OK, thanks anyways.
Probably we can prepare a set of tools and a simple to use script for you to monitor the Editor during that freeze and collect performance data that we can analyze here locally. Hopefully next week.
by Roman - Tracker Supp
Sat Feb 04, 2023 8:10 pm
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

The troublesome page of my screenshot above (single page in the file) still freezes on loading for about 5 minutes. 5 mins! This is totally unacceptable... :( I now fully understand your disappointment. Probably my assumption about the cause of this freeze is wrong. Can you please provide us with a...
by Roman - Tracker Supp
Sat Feb 04, 2023 6:35 pm
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

Simply replacing the earlier files in the installation directory did not work for me. Have you installed the latest (9.5.366) version of the Editor? If not, you can run this binary set as a standalone application (with limited functionality) - just unpack it to an empty directory and double-click t...
by Roman - Tracker Supp
Sat Feb 04, 2023 3:31 am
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

Hi PHK, By qualifying this case as "fringe" I did not mean you a "fringe user". :) On the contrary, we are grateful to you for revealing such a bottleneck in our product. I have talked about this case with my colleagues and it appeared that the Editor component that is the main c...
by Roman - Tracker Supp
Thu Feb 02, 2023 12:38 am
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

Thanks PHK, Can you please roughly estimate the total number of merged pages per page of the final document in your case? I was able to reproduce some freeze (around 20 seconds), in my case there were 600 merged pages (20x30 grid) per 100x100 inches final page. We will discuss the issue here to figu...
by Roman - Tracker Supp
Tue Jan 31, 2023 10:40 pm
Forum: PDF-XChange Editor
Topic: Large Sheets of Merged Pages Freeze App
Replies: 36
Views: 3398

Re: Large Sheets of Merged Pages Freeze App

Hi PHK, The dump you have provided does not show any signs of freeze - it looks like the Editor is in its normal idle state, waiting for user input. Please open Windows Task Manager, go to Details tab, make sure the "CPU" column is visible, and locate the Editor process (PDFXEdit.exe) in t...
by Roman - Tracker Supp
Thu Jan 19, 2023 9:23 pm
Forum: PDF-XChange Editor
Topic: Sessions disappearing after restart & system specified error
Replies: 27
Views: 1368

Re: Sessions disappearing after restart & system specified error

Hi MedBooster,
I have replied by e-mail with further instructions to debug this issue.