Thank you, that worked!
Posts made by anassri
-
Trouble accessing local files
Hello there,
I'm trying to access local files using a handlebars template. I'm able to compile the template and render it in Express. When I try to convert that rendered HTML into a PDF using jsreport programmatically. I get the following error in the console:
Page request failed: GET (stylesheet) file:///styles/cover.css, failure: net::ERR_FILE_NOT_FOUND
Here's how I'm linking the stylesheet:
<link rel='stylesheet' href='/styles/cover.css' />
I'm trying to use jsreport programmatically without the studio. So I can't use jsreport syntax as compiling handlebars in Express won't understand it. Handlebars is able to find the local files and they render in HTML just fine. JsReport didn't have access to local files at first, but then I turned "allowLocalFileAccess
" on, and it's not able to find them. Is there a way I can instruct jsreport where to look similar to
app.use(express.static(__dirname + '/views')) ?Thanks
-
RE: External images broken in chrome-pdf
Is there a way to set a custom user-agent in JsReport?
-
RE: External images broken in chrome-pdf
It's routed through our server. Do you think that server is blocking access to it?
-
RE: External images broken in chrome-pdf
Is there a way to add cloudinary credentials to jsreport's studio? Perhaps that might work
-
RE: External images broken in chrome-pdf
I'm going to see if Cloudinary is preventing access. We have a lot of images that we're using to create a report with, so if they're blocking the tool, we will need to have them allow it for all the images. Thanks for the response!
-
External images broken in chrome-pdf
Hello, Any idea why I'm getting a 403 when using image URLs? I'm using Cloudinary to host my images. Is it a cloudinary access issue? I'm able to get the images to show if I switch the recipe from chrome-pdf to html-to-browser-client
Playground: https://playground.jsreport.net/w/anon/vVA6ndvZ
Thanks in advance for the help!