Page 1 of 1
Posted: Mon Aug 26, 2019 8:59 am
We have a HP Plotter with an integrated PDF controller, so we can send files to it. The processsing is done inside the plotter.
We have different tools to upload (to send) the PDF files to the plotter: a web-GUI or small tools (Goplot; Drop&Print) which are based on the standard command:
Code: Select all
"copy test.pdf \\printserver\HPPlotter \b"
Code: Select all
"copy this.opened.document to plottername"
Who can help with the (maybe) one-liner JS-code?
Posted: Wed Sep 23, 2020 9:23 pm
Terribly sorry for the delay in a reply here, the JS used in PDf is Limited in that it can interact with certain content items in the file, and the operations that the application at hand can do. You could, for example, make the Editor save the document to a specified directory, or open the print dialog and use specific settings. Unfortunately, you would likely not be able to tell it to copy or move the current file, especially when we consider that the file is "locked" since it is in use by the Editor/Viewer.
This would be something that you would instead want to run from the windows command prompt, or do manually.
Out of curiosity, may I ask why simply printing from our software to your plotter is not an option? Even if the plotter has its own PDF handler, I do not believe the physical output should not be different between the two methods of sending it, only the "file size" of the print job.
Posted: Thu Sep 24, 2020 12:41 am
You can try to use doc.print method instead.
Posted: Thu Sep 24, 2020 6:06 am
TrackerSupp-Daniel wrote: ↑
Wed Sep 23, 2020 9:23 pm
...Out of curiosity, may I ask why simply printing from our software to your plotter is not an option? ...
We are talking about large-format prints (drawings with different, non standard sizes), and the idea behind it was that the standard "print from PDF-Software" always contains the part "Page size settings" - define paper format or not, fit or not, position it somewhere and so on. The simple "copy to Plotter and process it there" would make it easier for the user.
But it the meantime we found out that the PDF-processor of the plotter is working really bad, so we cancelled this method
2. prio, but do you have an example for it? My JS knowledge is raaaaaather low