Not opening or printing PDF files in Open VPMS

Hi, we are unable to open any forms in open VPMS eg. consent forms, desexing forms, client handouts etc. all of which are attached to the patient notes as PDF. We can still print accounts, patient summaries and reports thru open vpms and we can open pdf documents on the computer outside of Open VPMS and print these ok also. Obviously this is causing some havoc. Can anyone suggest the source of the problem? Thanks

 

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Not opening or printing PDF files in Open VPMS

Mark - I need some more information:

a) when you say "unable" does any error message appear or just nothing happen?

b) if you look in the OpenVPMS log file (in <TOMCAT-HOME>/logs/openvpms.log ) [see also http://www.openvpms.org/documentation/csh/1.8/topics/troubleshooting ] are there any apparently related error messages?

c) when you say "are attached to the patient notes as PDF" are you sure that these are actually PDF files and not OpenOffice (or Word) documents that can be output as PDFs? Here is a snippet from my test system:

Of these only the top one is a real PDF attachment.  Except for the last, the others are all OpenOffice documents that can be output as PDFs.

The significance is that if you click on the PDF icon on these letters and forms, OpenOffice needs to run in order to generate the PDF.

If your real problem is that OpenOffice is not running/available on the machine running Tomcat and mySQL, then you will not be able to add a patient letter or form to the patient's documents.  Can you do this?

d) Do you have a "pop-up blocked" problem?  ie if the browser on the workstation does not allow pop-ups, then you will not see the item from OpenVPMS because this is presented as a pop-up.

Regards, Tim G

Re: Not opening or printing PDF files in Open VPMS

Thanks Tim,

a). there is no error message that comes up it just says please wait and doesnt go away. You have to leave open VPMS and log back in to do anything else.

b) Dont think so but  I have attached the log

c).No they are open office documents but only have the PDF symbol unlike yours (see screen shot)

we can add a form to a patient file ok but just cant open it

d) not sure how to check but have seen no warnings re pop ups blocked.

Thanks again, Mark

apologies, I am not good with computers

AttachmentSize
Sceenshot.pdf 349.57 KB
Log.odt 82.18 KB

Re: Not opening or printing PDF files in Open VPMS

Mark - the log (which starts on 9 Jan) shows lots (162 !) of errors like

16 Jan 2016 13:32:51,424  WARN AbstractExpressionEvaluator,http-8080-10:104 - Failed to evaluate: [party:getFullName(party:getPractice())]
org.apache.commons.jxpath.JXPathFunctionNotFoundException: Undefined function: party:getFullName

I would say that on 9 Jan somebody modified one or more forms to display the practice name.  However party:getFullName(party:getPractice()) is not a valid function.

As per http://www.openvpms.org/documentation/csh/1.8/reference/jxpath which says in part

so what you want is simply party:getPractice()

Here is part of my test odt document:

Here is the test patient form added to patient ZZ-Dog:

and here is the relevant part of the output:

NOTE: the 'Tim test' document is a Patient Form with content from an OpenOffice odt document.  However, I suspect that you would call this a PDF because of the Acrobat Reader icon.

So - I am confident that the problem is the error in your odt file, not a problem in downloading PDFs.  Indeed the poor thing never got to be a PDF - it died as it was being generated.

Regards, Tim G

PS - I am confident that the log you attached was the openvpms-full.log file not the openvpms.log file.  The first is full of lots of trace-back information.  The second is easier to look through if you are having a problem.

PPS - if something funny is happening, it is always worth have a look in the openvpms.log

PPPS - I have now tweaked the 1.8 and 1.9 help text to clarify that party:getPractice() returns the practice name

Re: Not opening or printing PDF files in Open VPMS

Thanks Tim, I didn't even know there was a log until I started trying to find it after your post. I played with some printer settings last Saturday 9-1-16 but nothing with the ODT files and practice name and it was working during the week ok. I don't suppose there is a way of knowing which one is corrupted/altered? Otherwise I will just start loading up the originals from the files I made a year ago when we went from paper to open VPMS?

Thanks a lot Tim

Regards, Mark

Re: Not opening or printing PDF files in Open VPMS

Which form? No the log does not say.  However, in the screen shot you sent there was a desexing certificate dated 17 Jan - and I assume that you cannot download that. Can you get me the odt file for that?

[Use Administration|Templates and view the template 'Desexing Certificate', then click on its Content link and it should download the odt file.]

Regards, Tim G

Re: Not opening or printing PDF files in Open VPMS

OpenOffice is used to print documents that have .doc or .odt templates, and also to generate PDFs from these.

If OpenVPMS hangs trying to Print or Preview these documents, kill the existing soffice processes and try again.

Re: Not opening or printing PDF files in Open VPMS

Tim A - this turned out to be a problem starting soffice from the account in which Tomcat was running. It was running under a user 'openvpms' so I logged to that account. When I tried to start soffice normally nothing happened so I ran it as administrator - then  up came a window saying that another user was using Open Office. I told it to proceed. I then deleted all the other soffice processes and all came good.

The system is running 1.7 and Tomcat 6.

A reboot would have cleared the soffice processes but not the question about the other user.

I suspect that with the explicit starting of OO as headless that we now use would have avoided the problem.

----------

Mark - if the problem happens again on your system the fix-it recipe is:

  1. reboot the machine 'server'  (will clean out any soffice processes)
  2. login as user openvpms
  3. right click the OpenOffice icon on the desktop and left click 'run as administrator'
  4. OK anything that you have to so that OpenOffice starts and then click the Text link to fire up Writer.
  5. Exit Writer and log off as the openvpms user
  6. Login as reception (or whatever) and all should be good

As I discussed with Heather there is a patient letter or form in the system that has the party:getFullName(party:getPractice()) problem. You might want to discuss this with Maggie H. The document is used commonly - but it is NOT the vaccination certificate (which I had a good look at).

Tim A - it would be nice if the log contained the document template name for these type of errors.

Regards, Tim G

Re: Not opening or printing PDF files in Open VPMS

Thanks so much!

Mark

Syndicate content