border around pdf invoice image

  • gjcwebdesign
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #94161 by gjcwebdesign
border around pdf invoice image was created by gjcwebdesign
Hi,

No matter what I do a black border is always produced around the invoice image

have tried:
1. different image and formats (jpg, gif etc)
2. the html code in other posts
e.g.
<td style="background: #fff !important;" align="right" valign="middle" width="50%"><img src="images/logo.jpg" alt="logo" style="border: 0px solid #fff !important;" border="1" /></td>

note the border="1" - if I change this to border="0" then the border is even thicker.. looks about 5 pixels
3. even in components\com_eventbooking\helper\helper.php if I do this

$try1 = '<img border="0" src="images/logo.jpg" alt="logo" style="border: 0px solid #fff !important;" />';
$pdf->writeHTML($try1, true, false, false, false, '');

I end up with an image with a 5px black solid border

have googled till my finger tips hurt

Any ideas?

Thanks

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 1 month ago #94175 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic border around pdf invoice image
According to my dev, change it to border:none; would solve the issue. Could you give it a try?

Tuan

Please Log in or Create an account to join the conversation.

  • gjcwebdesign
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 1 month ago #94184 by gjcwebdesign
Replied by gjcwebdesign on topic border around pdf invoice image
Perfect .. thanks Tuan ..

used in the end:

<td style="background: #fff !important;" align="right" valign="middle" width="50%"><img src="images/logo.jpg" alt="logo" style="border: none !important;" border="0" /></td>

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 1 month ago #94201 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic border around pdf invoice image
Great. Thanks for confirming

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc