Hi
Please let me know if it is possible to search for PDF files containing one or more Javascript(s).
Another thing that might count as a new feature is the possibility of applying one or more batch actions to the results after a search ends.
Possible batch actions:
- delete Javascript(s)
- delete all Xforms
- replace a specific text with another text
- delete empty pages
- copy/move found files to another location
and so on.
Batch operations are the most desired features.
Thanks
Search for JavaScript and batch action(s) to results
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 6
- Joined: Tue May 10, 2011 11:25 pm
-
- Site Admin
- Posts: 19860
- Joined: Mon Jan 12, 2009 8:07 am
Re: Search for JavaScript and batch action(s) to results
Hello masster,
As far as I am aware there's no way to search for and differentiate files based on whether they do have JS in them.
XForms might contain important information in them - sometimes some tools will put ALL the base content in XForms, so having a blanket option to delete all XForms might not be ideal in the majority of cases.
Find and Replace is available in the search tools (Ctrl + F): I do not think there's a batch way to find and replace text in the Editor now. It might be added to PDF Tools in the future.
Delete Empty Pages as a batch operation is available in PDF Tools: Tools can also copy/move files from one folder to another when it's done processing them.
So the Editor is mainly aimed at you working with a single file, or a few files that you are e.g. combining into one, and when you need to perform the same operation on a batch of files - the PDF-Tools is the one that offers those features.
Kind regards,
Stefan
As far as I am aware there's no way to search for and differentiate files based on whether they do have JS in them.
XForms might contain important information in them - sometimes some tools will put ALL the base content in XForms, so having a blanket option to delete all XForms might not be ideal in the majority of cases.
Find and Replace is available in the search tools (Ctrl + F): I do not think there's a batch way to find and replace text in the Editor now. It might be added to PDF Tools in the future.
Delete Empty Pages as a batch operation is available in PDF Tools: Tools can also copy/move files from one folder to another when it's done processing them.
So the Editor is mainly aimed at you working with a single file, or a few files that you are e.g. combining into one, and when you need to perform the same operation on a batch of files - the PDF-Tools is the one that offers those features.
Kind regards,
Stefan
You do not have the required permissions to view the files attached to this post.
-
- User
- Posts: 6
- Joined: Tue May 10, 2011 11:25 pm
Re: Search for JavaScript and batch action(s) to results
I know it is possible to discard JavaScript actions during PDF optimization.
I find it strange you can't search for PDFs having JavaScript actions, yet you can delete the actions...
I find it strange you can't search for PDFs having JavaScript actions, yet you can delete the actions...
-
- Site Admin
- Posts: 11021
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Search for JavaScript and batch action(s) to results
Hello, masster
It it much easier to say - "If this Table contains JS Category in the metedata, delete the contents of that category entirely"
Than it is to say - "Look through all of that metadata, search for specific terms, only return those, and intelligently remove only the data related to that specific term".
We may look into this more in the future, but unfortunately, it is considerably more complex than it may otherwise seem. In practice, what would you need to do with the "found" JS if not delete it, in a "batch processing" capacity?
There is no way to reliably "Edit" it in a batch environment. Moving it wouldnt really serve a purpose in this context either. Copying, could maybe have some fringe case uses, but these are not cases we are looking into at this time, and in almost all cases it would require the same Editing mentioned before to even remain functional.
As such, the current option to delete it when present seems like the only necessary, and in the vast majority of situations, the only useful option, when looking at things in a batch processing context.
Kind regards,
It it much easier to say - "If this Table contains JS Category in the metedata, delete the contents of that category entirely"
Than it is to say - "Look through all of that metadata, search for specific terms, only return those, and intelligently remove only the data related to that specific term".
We may look into this more in the future, but unfortunately, it is considerably more complex than it may otherwise seem. In practice, what would you need to do with the "found" JS if not delete it, in a "batch processing" capacity?
There is no way to reliably "Edit" it in a batch environment. Moving it wouldnt really serve a purpose in this context either. Copying, could maybe have some fringe case uses, but these are not cases we are looking into at this time, and in almost all cases it would require the same Editing mentioned before to even remain functional.
As such, the current option to delete it when present seems like the only necessary, and in the vast majority of situations, the only useful option, when looking at things in a batch processing context.
Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
PDF-XChange Co. LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com