Hi,
I am new to princeXML and have been trying it out to see if it fits our needs. Overall I have been quite happy with the results of the tests I have run, however I am having some problems with the --fileroot option.
I have some HTML files that are served off of our web server that I would like to convert to PDFs and that contain absolute paths for images and CSS files. The --fileroot option seems to address exactly this need. The problem is that when I include the option, it seems to be applied to the command-line arguments themselves as well as to the contents of the input file. The result is that if the path to the prince binary is an absolute one, prince says it cannot find the licence file:
Also if the path to the HTML input file is absolute, it also can’t find it. If I use relative paths for the binary and the input files, everything works as expected. Certainly this can’t be the intended behavior?
Note that this happens whether I use prince from the command-line or using one of the language wrappers. This sort of breaks the --fileroot option, no?
I am new to princeXML and have been trying it out to see if it fits our needs. Overall I have been quite happy with the results of the tests I have run, however I am having some problems with the --fileroot option.
I have some HTML files that are served off of our web server that I would like to convert to PDFs and that contain absolute paths for images and CSS files. The --fileroot option seems to address exactly this need. The problem is that when I include the option, it seems to be applied to the command-line arguments themselves as well as to the contents of the input file. The result is that if the path to the prince binary is an absolute one, prince says it cannot find the licence file:
prince: /usr/local/lib/prince/license/license.dat: error: can't open input file: No such file or directory
prince: warning: failed to load external entity "/usr/local/lib/prince/license/license.dat"
prince: /usr/local/lib/prince/license/license.dat: warning: could not load license
Also if the path to the HTML input file is absolute, it also can’t find it. If I use relative paths for the binary and the input files, everything works as expected. Certainly this can’t be the intended behavior?
Note that this happens whether I use prince from the command-line or using one of the language wrappers. This sort of breaks the --fileroot option, no?