Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Certificate image in PDF
(1 viewing) (1) Guest
component
Go to bottomPage: 12
TOPIC: Certificate image in PDF
#71596
Certificate image in PDF 10 Months, 2 Weeks ago Karma: 0
I'm having trouble embedding an image in the PDF certificate template. This is the code I'm using and I've tried relative & absolute image paths.

<p>{@doc_format:portrait}</p>
<div style="position: relative; width: 814px; height: 1055px; background-image: url('images/Certificate24.jpg'); background-repeat: no-repeat;">
<div style="position: absolute; top: 400px; width: 100%; text-align: center; font-weight: bold; font-size: 2em;">{$QuizName}</div>
<div style="position: absolute; top: 500px; width: 100%; text-align: center; font-weight: bold; font-size: 1em;">{$StartDate|date_format:d-m-Y}</div>
</div>

Thanks for your help

Chris
The administrator has disabled public write access.
 
#71598
Re:Certificate image in PDF 10 Months, 2 Weeks ago Karma: 760
Hello,

Update the extension to v. 3.10.15 please. It should fix the problem.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#71599
Re:Certificate image in PDF 10 Months, 2 Weeks ago Karma: 0
Thanks. I've updated the extension and still have the same issue
The administrator has disabled public write access.
 
#71601
Re:Certificate image in PDF 10 Months, 2 Weeks ago Karma: 760
Could you provide a temporary access to your J! backend by email and a link to a quiz where the certificate is used so we can investigate the problem?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#71611
Re:Certificate image in PDF 10 Months, 2 Weeks ago Karma: 760
It seems this is a problem with file/folder permissions. The script can read image file locally. We update certificated code and used a remote path to the image (it is less effective for performance). The following code is used:

Code:


<style>
@page {
margin: 0px;
}
</style>
{@doc_format:portrait}
<div style="position: relative; width: 814px; height: 1055px; background-image: url('https://{SITE_URL}/images/Certificate24.jpg'); background-repeat: no-repeat;">
<div style="position: absolute; top: 400px; width: 100%; text-align: center; font-weight: bold; font-size: 2em;">{$QuizName}</div>
<div style="position: absolute; top: 500px; width: 100%; text-align: center; font-weight: bold; font-size: 1em;">{$StartDate|date_format:d-m-Y}</div>
</div>



Regards,
ARI Soft
The administrator has disabled public write access.
 
#71618
Re:Certificate image in PDF 10 Months, 1 Week ago Karma: 0
Thanks - that has got it sorted.
Is there a way to make the pdf output A4 rather than letter?
Thanks
Chris
The administrator has disabled public write access.
 
Go to topPage: 12