You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting stuck with displaying pdf for absolute positioned divs with text.
The HTML rendered in browser:
PDF output:
The HTML code being used (it's automatically generated code and one-lined):
<html><style>
@page {
size: 6.25in 4.25in;
margin: 0;
}
@font-face {
font-family: "Arial";
src: url("https://f001.backblazeb2.com/file/inkit-cdn/arial.ttf")
format("truetype");
}
@font-face {
font-family: "Times New Roman";
src: url("https://f001.backblazeb2.com/file/inkit-cdn/times-new-roman.ttf")
format("truetype");
}
@font-face {
font-family: "Courier New";
src: url("https://f001.backblazeb2.com/file/inkit-cdn/courier-new.ttf")
format("truetype");
}
</style><body style="user-select:none;margin:0"><div style="width:6.25in;height:4.25in;position:relative"><div><div style="position:absolute;left:0in;top:0in;z-index:5002;right:0;bottom:0;padding:0.1875in;background:"><div style="position:relative"><div style="position:absolute;left:calc(0.5416666666666666in - 0.5em);top:calc(1.03125in - 0.5em);z-index:5003;padding:0.5em;font-size:16px;line-height:120%"><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif';color:#000">Click me to </span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'"></span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif';color:#000"> edit</span></div><div style="position:absolute;left:calc(1.0104166666666667in - 0.5em);top:calc(1.760416666666667in - 0.5em);z-index:5003;padding:0.5em;font-size:16px;line-height:120%"><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'">Mr. D's Bar & Grill</span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'"> </span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'">ATTN Owner</span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'"> </span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'"></span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'"> </span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'">5622 Grand Ave</span></div><div style="position:absolute;left:calc(0.6458333333333335in - 0.5em);top:calc(2.3541666666666665in - 0.5em);z-index:5003;padding:0.5em;font-size:16px;line-height:120%"><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'"></span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'"> </span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'">Duluth</span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'"> </span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'">MN</span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'"> </span><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'">55807</span></div><div style="position:absolute;left:calc(1.625in - 0.5em);top:calc(2.8958333333333335in - 0.5em);z-index:5003;padding:0.5em;font-size:16px;line-height:120%"><span style="white-space:pre-wrap;user-select:none;font-size:12pt;font-family:'Times New Roman', 'Times', 'serif'">US</span></div></div></div></div><div style="position:absolute;left:0.1875in;top:0.1875in;right:0.1875in;bottom:0.1875in"></div></div></body></html>
Seems that during conversion it ignores width and height, but not sure.
Any help is appreciated.
Thanks.
The text was updated successfully, but these errors were encountered:
denyskotsur
changed the title
Blocks with text displays in one line for absolute positioning.
Blocks with text display in one line for absolute positioning.
Jun 20, 2019
denyskotsur
changed the title
Blocks with text display in one line for absolute positioning.
Blocks with text displays in one line for absolute positioning.
Jun 20, 2019
Hello everyone,
I'm getting stuck with displaying pdf for absolute positioned divs with text.
The HTML rendered in browser:
PDF output:
The HTML code being used (it's automatically generated code and one-lined):
Seems that during conversion it ignores width and height, but not sure.
Any help is appreciated.
Thanks.
The text was updated successfully, but these errors were encountered: