Closed gkmundt closed 9 months ago
Please provide an example HTML file and the command you are running. Also, what version of HTMLDOC?
Version 1.8.28
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta http-equiv="Expires" CONTENT="-1">
<meta http-equiv="Cache-Control" CONTENT="no-cache">
<meta http-equiv="Pragma" CONTENT="no-cache">
<title>Approved MIS Products: Menu Card</title>
<link rel="stylesheet" type="text/css" href="/js/niftyCorners.css">
<link rel="stylesheet" type="text/css" href="/js/niftyPrint.css" media="print">
<script type="text/javascript" src="/js/nifty.js"></script>
<link rel="stylesheet" type="text/css" href="/apps/kilwins_store/s16.css" media="print">
<link rel="stylesheet" type="text/css" href="/apps/kilwins_store/p3.css" media="print">
<link rel="stylesheet" type="text/css" href="/apps/kilwins_store/shadowBox.css" media="print">
</head>
<body>
<table width=100%>
<tr width=100%>
<td colspan=4 align="left"> </td>
<tr>
<tr>
<td width=68%> </td>
<td width=10% colspan=1 align="right"><font face="Helvetica" size="2px" color="659EC9"><b></b></font></td>
<td width=5%> </td>
<td width=5%> </td>
</tr>
<tr><td><b>Turtle Sundae</b></td>
<td align="right">1270 </td>
<td align="right">$</td>
<td align="right">9.99</td>
</tr>
<tr>
<td>Kilwins Old-Fashioned Vanilla Ice Cream, served in a </td>
</tr>
<tr>
<td>hand-crafted Waffle Bowl with Kilwins Hot Fudge & Caramel </td>
</tr>
<tr>
<td>Toppings, with pecan pieces, sprinkled over whipped cream & </td>
</tr>
<tr>
<td>topped with a cherry!<br></td>
</tr>
<tr>
<td> </td>
</tr>
<tr><td><b>Tin Roof Sundae</b></td>
<td align="right">1200 </td>
<td align="right">$</td>
<td align="right">8.99</td>
</tr>
<tr>
<td>Kilwins Old-Fashioned Vanilla Ice Cream served in a </td>
</tr>
<tr>
<td>hand-crafted Waffle Bowl, drizzled in Kilwins Chocolate </td>
</tr>
<tr>
<td>Syrup with whipped cream & a cherry. Roasted, salted peanuts</td>
</tr>
<tr>
<td>top off this classic!<br></td>
</tr>
<tr>
<td> </td>
</tr>
<tr><td><b>Dusty Miller Sundae</b></td>
<td align="right">920 </td>
<td align="right">$</td>
<td align="right">8.99</td>
</tr>
<tr>
<td>Kilwins Old-Fashioned Vanilla Ice Cream served in a </td>
</tr>
<tr>
<td>hand-crafted Waffle Bowl, drizzled in Kilwins Chocolate </td>
</tr>
<tr>
<td>Syrup, topped with whipped cream, a cherry, then dusted with</td>
</tr>
<tr>
<td>Kilwins Malt Powder!<br></td>
</tr>
<tr>
<td> </td>
</tr>
<tr><td><b>Hot Fudge Sundae</b></td>
<td align="right">610 </td>
<td align="right">$</td>
<td align="right">5.99</td>
</tr>
<tr>
<td>Our Old-Fashioned Vanilla Ice Cream with Kilwins Hot Fudge </td>
</tr>
<tr>
<td>Topping, whipped cream & a cherry.<br></td>
</tr>
<tr>
<td> </td>
</tr>
<tr><td><b>Hot Caramel Sundae</b></td>
<td align="right">610 </td>
<td align="right">$</td>
<td align="right">5.99</td>
</tr>
<tr>
<td>Our Old-Fashioned Vanilla Ice Cream with Kilwins Hot </td>
</tr>
<tr>
<td>Caramel Topping, whipped cream & a cherry.<br></td>
</tr>
<tr>
<td> </td>
</tr>
<tr><td><b>Chocolate Sundae</b></td>
<td align="right">550 </td>
<td align="right">$</td>
<td align="right">5.99</td>
</tr>
<tr>
<td>Our Old-Fashioned Vanilla Ice Cream with Kilwins Chocolate </td>
</tr>
<tr>
<td>Syrup, whipped cream & a cherry.<br></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr width=100%>
<td colspan=4 align="center">
<A href="https://www.kilwinsfranchise.com">Own a Store</A>
</td>
</tr>
</table>
</body>
</html>
menu_card_tmp_0051217.txt This one is just in case you need it in text.
OK, so to start with HTMDOC 1.8.28 is ancient and not something I can really help you troubleshoot.
I'm assuming the "Own a store" link is the one you are talking about? What options are you using when you run the HTMLDOC command?
tmp = HTMLDOC('--webpage','--quiet','--pagelayout','one','--left','.5in','--right','.5in','--top','1.10in','--bottom','.5in','--footer','...','--fontsize','11','fontspacing','.8','--header','...','--headfootsize','8','--headfootfont','Helvetica','--browserwidth',browserWidth,'--bodyimage',t_image,'--bodyfont','Helvetica','--links','--linkstyle','plain','--linkcolor','red','--datadir',mc_pp+'/system/htmldoc','-f',pdf_fl_tmp,htm_fl)
This is how the PDF is being created and everything works except the abillity to click the link. The link is red.
I can schedule time to update HTMLDOC to a newer version, but didn't see anything relating to link issue updates in new versions.
I tried it with the current HTMLDOC and the link works but the table is missing for some reason...
Ah, a typo in the HTML (missing close tag for the first row).
I’ll take a look. Any concerns or recommendations on upgrading to current version on Redhat?
Get Outlook for iOShttps://aka.ms/o0ukef
From: Michael R Sweet @.> Sent: Tuesday, January 23, 2024 12:47:13 PM To: michaelrsweet/htmldoc @.> Cc: Greg Mundt @.>; Author @.> Subject: Re: [michaelrsweet/htmldoc] Link not working (Issue #516)
Ah, a typo in the HTML (missing close tag for the first row).
— Reply to this email directly, view it on GitHubhttps://github.com/michaelrsweet/htmldoc/issues/516#issuecomment-1906601289, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGIJ2SAYEIBVDUGZIQPJRUTYP7ZSDAVCNFSM6AAAAABCHAPB4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBWGYYDCMRYHE. You are receiving this because you authored the thread.Message ID: @.***>
Shouldn't have any issues upgrading on Red Hat.
Okay, what about the call to HTMLDOC executable in linux and how that is run.
From Linux command I type htmldoc --version and it returns: 1.8.28
From my application I call tmp=HTMLDOC('--version') and it returns: 1.8.27
Not sure why the linux extension is doing this.
I'm not sure what language or add-on you are using for your application, but it looks like it might have embedded its own version of HTMLDOC separate from the installed command.
Okay, I will have to look at how to fine or create and ELF extension in Linux for the current version.
Here is what the file info returns which leads me to believe it was built from a previous version of HTMLDOC
@.*** kilwins_store]# file /home/grcloud/public_html/cgi-bin/private/system/extensions/linux64/HTMLDOC /home/grcloud/public_html/cgi-bin/private/system/extensions/linux64/HTMLDOC: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.4.1, not stripped
Greg Mundt GRSoftware 1345 Monroe Ave NW Suite 260 Grand Rapids, MI 49505 e: @.*** w: (616) 493-8000
From: Michael R Sweet @.> Sent: Saturday, January 27, 2024 2:23 PM To: michaelrsweet/htmldoc @.> Cc: Greg Mundt @.>; Author @.> Subject: Re: [michaelrsweet/htmldoc] Link not working (Issue #516)
I'm not sure what language or add-on you are using for your application, but it looks like it might have embedded its own version of HTMLDOC separate from the installed command.
— Reply to this email directly, view it on GitHubhttps://github.com/michaelrsweet/htmldoc/issues/516#issuecomment-1913302710, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGIJ2SGC3K2C66MWEGKHDHDYQVH33AVCNFSM6AAAAABCHAPB4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGMYDENZRGA. You are receiving this because you authored the thread.Message ID: @.***>
You can close this, upon further investigation it is not HTMLDOC that is the issue, but ghostscript used to merge multiple PDF files into one.
Greg Mundt GRSoftware 1345 Monroe Ave NW Suite 260 Grand Rapids, MI 49505 e: @.*** w: (616) 493-8000
From: Michael R Sweet @.> Sent: Saturday, January 27, 2024 2:23 PM To: michaelrsweet/htmldoc @.> Cc: Greg Mundt @.>; Author @.> Subject: Re: [michaelrsweet/htmldoc] Link not working (Issue #516)
I'm not sure what language or add-on you are using for your application, but it looks like it might have embedded its own version of HTMLDOC separate from the installed command.
— Reply to this email directly, view it on GitHubhttps://github.com/michaelrsweet/htmldoc/issues/516#issuecomment-1913302710, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGIJ2SGC3K2C66MWEGKHDHDYQVH33AVCNFSM6AAAAABCHAPB4KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGMYDENZRGA. You are receiving this because you authored the thread.Message ID: @.***>
My hyperlink is showing in red and underlined, but is not clickable.