has anyone gotten svgs to work with Advanced PDFs?...
# general
r
has anyone gotten svgs to work with Advanced PDFs? Everytime I try to reference one, wither from the file cabinet or direct url, I just get a question mark on the output
m
I doubt they are supported
Recognized image formats are PNG, JPEG, GIF and TIFF.
r
bah, okay, thanks. Any idea what the DPI is of PDFs created via NetSuite? Trying to get a decent match but it keeps looking blurry because of resizing
m
You can set it on the img tag
<img src="myimage.jpg" dpi="200"/>
r
ah, thanks, wasn't aware
dpi
was an actual attribute
m
NetSuite uses the BFO library for rendering PDF's so you can refer to the documentation there
👍 1
r
thanks for the heads up. Now trying to figure out why there's a space between my image and the text directly below it when the html is
<img ...><br />text
m
try
<div><img ..></div>text
r
that definitely brought it closer, still not up against it though. I'm coming from html/css background, so trying to figure out the differences between BFO and regular html/css
m
It's loosely based on CSS2
r
ah.. thanks, I'll have to adjust my reference. I was thinking it was CSS3
m
Try setting margin and padding to 0 on both the img and div
r
that was one of the first things I tried, although I'm using the css method of
style="margin: 0; padding: 0;"
, do I need to go back to
margin="0" padding="0"
as attributes instead?
m
you can do either
If you want to use the same template as an html template then I would recommend the style attribute
r
this is just purely for NetSuite, so it's staying in Advanced PDFs
m
they are called Advanced PDF/*HTML* Templates
r
right. I was hoping to move all of our forms over to Advanced PDF/HTML Templates, just trying to wrap my head around the difference between BFO HTML & HTML5/CSS3 that I'm familiar with.
aka, that gap between unika at 114 new park. All the styling says there shouldn't be a gap, but there is one.
don't get me wrong, your assistance has been super helpful. bookmarked those links for reference.
m
sorry I've run out of suggestions 😅
r
lol. no worries at all. it's a lot better than it was, and I spent 45m fighting before even coming to this slack
m
you could try posting in #C466X49JB to get some targeted attention
r
oooo, thanks, didn't know there was a dedicated channel for it