Hi . Good day ! I've a image file Id in a custom...
# advancedpdf
s
Hi . Good day ! I've a image file Id in a custom field (free form text) in the invoice record . How can I print that image in the adv pdf template. Please guide with necessary code snipet. (New to adv pdfs . ) Kindly advice.
e
Doing something similar, I had to change my custom field (I was using a Image field type) to hold the URL of the Image rather than just the File ID. Then you can set the img src to ${record.field_id_of_your_image_URL} But I'd love to be wrong because I want this to be easier
Update: You can use the @Url property like this
<img _src_="${record.field_id_of_your_image_field@Url}" />
👍 1
s
Hey @ericbirdsall the url part worked . But I've situation here .. like the image is now showing as a image . When I try to put the same picture in the image folder of filecabinet . It prints correctly. But when it's on other folders it shows the image. Could you help here also please!
e
Make sure that the Image in your File Cabinet is set to "Available without Login"
s
U r right mate 💯. Available without login is the problem .
But I have folder full of image files sizing 2gb. Every image is unchecked with the available without login check box . How do I make it checked ? @ericbirdsall
e
Do you need all of those images for your PDF? You can click edit on the image, check that box, and save. But if you need allllll of those images, you may want to export them and re-upload them as a .zip file. When you upload a .zip file, NetSuite will give you the option to mark all of the uncompressed files as Available without Login (if I recall correctly()