Post upgrading Prince to 13.6 , we are getting below error while loading background images via css while generating pdf:
loading image: /assets/logo_.svg
: debug: error loading resource: No such file or directory
The fix for that I figured out is to use fileroot Input Option while generating pdf, and passing our public path to it (https://www.princexml.com/forum/topic/961/resolve-absolute-urls-to-images-and-css?p=1#3870)
But in the documentation its mentioned using fileroot is deprecated https://www.princexml.com/doc/command-line/#input-options .
And its suggested to use --remap option instead https://www.princexml.com/forum/topic/4675/what-is-alternative-to-setfileroot-api-in-prince-v-14?p=1#23570
But we are still getting same error even on using remap and baseurl together like suggested
loading image: /assets/logo_.svg
> : debug: error loading resource: No such file or directory
we added the command like suggested: prince --baseurl=http://www.example.com --remap=http://www.example.com= /public/
loading image: /assets/logo_.svg
: debug: error loading resource: No such file or directory
The fix for that I figured out is to use fileroot Input Option while generating pdf, and passing our public path to it (https://www.princexml.com/forum/topic/961/resolve-absolute-urls-to-images-and-css?p=1#3870)
But in the documentation its mentioned using fileroot is deprecated https://www.princexml.com/doc/command-line/#input-options .
And its suggested to use --remap option instead https://www.princexml.com/forum/topic/4675/what-is-alternative-to-setfileroot-api-in-prince-v-14?p=1#23570
But we are still getting same error even on using remap and baseurl together like suggested
loading image: /assets/logo_.svg
> : debug: error loading resource: No such file or directory
we added the command like suggested: prince --baseurl=http://www.example.com --remap=http://www.example.com= /public/