CalcBuilder Forum

PDF stripping out HTML?

User TheFencepedia 2024-07-21 01:28:22

Hi there,

I have fixed the line issue thanks to JCE, but now I have a new problem with the PDF generation process.

As you can see in this code, I have spaces between certain lines. However, you can see here: https://www.drawafence.com/4-chain-link-fence-with-bottom-wire-in-concrete if you use the calculator and then generate the PDF, the empty lines are not there. Why is this happening?

""<table style="border-collapse: collapse;" cellspacing="0">
<tbody>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><span style="font-family: arial, helvetica, sans-serif;"><img src="images/5_Concrete.jpg" alt="4 to 6 high with bottom wire" width="700" height="356" style="float: left;" />                                       </span></td>
<td style="border: 1px solid #000000;"><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;"></span>
<p><span style="font-size: 12pt; font-family: arial, helvetica, sans-serif;"><strong>Specification:</strong></span></p>
<p> </p>
<p><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Fence to be ##FenceHeight## high.</span></p>
<p> </p>
<p><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Terminal posts to be ##TerminalPosts## mild steel tubing, installed at each end, corner, and gate in ##TerminalPostConcreteDiameter## inch diameter by ##TerminalPostConcreteDepth## inch deep concrete footings.</span></p>
<p> </p>
<p><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Terminal posts will be fitted with steel tension bands at approximately 12-inch centers to accommodate tension bars.</span></p>
<p> </p>
<p><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Line posts to be ##LinePosts## spaced at ##LinePostSpacing## foot centers and installed in ##LinePostConcreteDiameter## inch diameter by ##LinePostConcreteDepth## inch deep concrete footings.</span></p>
<p> </p>
<p><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Terminal posts are to have dome caps, and line posts are to have eye tops/loop caps of sufficient size to cover the top of each post completely and prevent water ingress.</span></p>
<p> </p>
<p><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Chain link fabric to be ##ChainLinkFenceFabricType##, with a ##ChainLinkFabricFinish## with a matching ##BottomWireType## and ##FittingMaterial## fittings.</span></p>
<p> </p>
<p><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Fence ties to match the fence are to be installed at ##TieWireSpacing## inch centers, and hog rings to attach fence fabric to the bottom wire to be spaced at ##HogRingSpacing## inches.</span></p>
</td>
</tr>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><span style="font-family: arial, helvetica, sans-serif;"><strong><span style="font-size: 12pt;">##FenceColor## ##ProjectType## Chain Link Fence ##FenceHeight## High</span></strong></span></td>
<td rowspan="6" style="border: 1px solid #000000; vertical-align: top;">
<p><span style="font-family: arial, helvetica, sans-serif;"><strong><span style="font-size: 12pt;">##CompanyName##</span></strong></span></p>
<span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">##CompanyWebsite##</span><br /><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">##CompanyPhoneNumber##</span><br /><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Prepared By: ##PreparedBy##</span><br /><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Email: ##ContactEmail##</span><br /><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">##Date##</span>
</td>
</tr>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Client Name: ##ClientName##</span></td>
</tr>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Project Name: ##ProjectName##</span></td>
</tr>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Drawing Number: ##DrawingNumber##</span></td>
</tr>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Revision Number: ##RevisionNumber##</span></td>
</tr>
<tr>
<td colspan="2" style="border: 1px solid #000000;"><span style="font-size: 8pt; font-family: arial, helvetica, sans-serif;">Scale: NTS</span></td>
</tr>
</tbody>
</table>""

User TheFencepedia 2024-07-21 01:29:46

Sorry., your site keeps rendering the HTML. I am attaching it too.

User TheFencepedia 2024-07-21 19:35:38

Looks like this was caching again. It was fine this morning.

Moonsoft support 2024-07-22 09:55:04

Hi, ok,
in fact the editor you use is not relevant for the pdf, all generated html will be sent 'as is' to the pdf library, that will show what you send, but of course without all the external css (like the template) you may have at your page and can cause the slight differences you're spotting out.

We close the ticket, as you say its solved with the cache, please open a new one in case you find further issues.

Thanks, best regards
Guillermo V.
Moonsoft Team

...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!
...
List Manager

Build different lists for your site

Buy now!