Call PDF-XChange Viewer via commandline from Java

The PDF-XChange Viewer for End Users
+++ FREE +++

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

totti_14480
User
Posts: 5
Joined: Mon Jul 06, 2009 7:39 am

Call PDF-XChange Viewer via commandline from Java

Post by totti_14480 »

Hi,
I've noticed a strange behaviour in one of our installations.
The setup is as follows:
  • MS Windows Server 2003
  • J2EE Application under JBoss 4.2.3 running as a Windows Service
  • PDF-XChange Viewer installed under Windows.
The J2EE Application creates a pdf file and calls afterwards the PDF-XChange Viewer only for printing without any user interaction.
The command line is something like "<path-2-pdfviewer-folder>/PDFXCViewer/PDFXCview.exe" /printto "printer name" "pdf-file"

The result is that a PDF-XChange Viewer process is created and the pdf file is blocked, probaly by the PDF-XChange Viewer process.
Unfortunately the file is never printed and the PDF-XChange Viewer never terminates until killing the process e.g. using the Windows Taskmanager.

Really strange is, that the same setup is running without any problems at other locations.

I know, this setup is probaly at little bit unsual for using PDF-XChange Viewer, but it is working very well for us except this single installation.
It would be really fantastic, if someone could point me in the right direction for solving this problem.

Thanks in advance, Torsten
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Call PDF-XChange Viewer via commandline from Java

Post by Stefan - PDF-XChange »

Hello Torsten,

Could you please first check that you have the latest build of our Viewer installed there?
And if it is build 2.5.205 that you are running - then please make sure the printer name is correct and that the printer is available and online. if you want to print to the default device for this machine - you can omit the printer name parameter.

Otherwise your line looks correct and it should be working.

Best,
Stefan
totti_14480
User
Posts: 5
Joined: Mon Jul 06, 2009 7:39 am

Re: Call PDF-XChange Viewer via commandline from Java

Post by totti_14480 »

Hello Stefan,

thank you for your response and, your hint was the solution. The latest version of PDF-XChange Viewer is doing the work as expected.

I was a little bit confused because we've changed nothing in our installation and in the past also the former installed version 2.0.x has worked properly.

I assume, that someone has changed something in the Windows setup or maybe the in the antivirus protection.

But anyway, the problem is gone now :D

Cheers,
Torsten
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19930
Joined: Mon Jan 12, 2009 8:07 am

Re: Call PDF-XChange Viewer via commandline from Java

Post by Stefan - PDF-XChange »

Great to hear that Torsten!

Cheers,
Stefan