Technically all PDF is rendered from a script serv...
# advancedpdf
c
Technically all PDF is rendered from a script server-side as there is no client side logic to render PDFs. If you are using a custom data source, you can add in a tag before its generated to tell you the information you want.
j
Hi @creece the issue is when I use the same PDF template: • when printing on UI, the subsidiary.logo seems to be corrupted/not loading, • however when I render via script, it's working fine On my template, I use this:
<img class="subsidiarylogo" src="${subsidiary.logo?xml}"/>
to escape the "&" on my subsidiary logo url. That's why I want to check if it's possible to determine in freemarker if the PDF is loaded via script or via UI so I can change how it displays the logo when loaded via UI. Thanks! 😄
c
You may need to mark the file as available without login or whatever the latest permission is that makes it available internally to everything
or are you saying the url is just messed up
j
Just the logo. I can load other parts of the template without error. When loading this in UI (via print), it shows this img instead of the actual subsidiary logo
c
you could try looking at the file permissions and see if you can check available without login and try it again just as a test