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


Recent Events
  • 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.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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?

Change the generated PDF Certificate
(1 viewing) (1) Guest
component
Go to bottomPage: 1234
TOPIC: Change the generated PDF Certificate
#57856
Re:Change the generated PDF Certificate 7 Years, 10 Months ago Karma: 0
Thank you for the reply. It there any way we can use fpdf library?
The administrator has disabled public write access.
 
#57857
Re:Change the generated PDF Certificate 7 Years, 10 Months ago Karma: 747
It requires modification of the extension.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#57858
Re:Change the generated PDF Certificate 7 Years, 10 Months ago Karma: 0
Last question:

{$EndDate} is coming with the hours and seconds. How to remove this from the result? I want only the date: 06-19-2016

Right now it's generating something like this: 06-19-2016 14:40:40
The administrator has disabled public write access.
 
#57859
Re:Change the generated PDF Certificate 7 Years, 10 Months ago Karma: 747
Use the following code:

{$EndDate|date_format:m-d-Y}

Regards,
ARI Soft
The administrator has disabled public write access.
 
#58718
Re:Change the generated PDF Certificate 7 Years, 6 Months ago Karma: 0
admin wrote:
The extension uses DOM PDF library and it doesn't support background-size CSS property. Resize the image to 814x1055 size and use the following HTML code for the template:

Code:


{@doc_format:portrait}
<style>@page { margin: 0px; }</style>
<div style="position: relative; width: 814px; height: 1055px; background-image: url('images/cert/certificate.jpg'); background-repeat:no-repeat;">
<div style="position: absolute; top: 360px; left: 300px; font-weight: bold; font-size: 2em;">{$UserName}</div>
<div style="position: absolute; top: 530px; left: 300px; font-weight: bold; font-size: 2em;">{$QuizName}</div>
<div style="position: absolute; top: 612px; left: 140px; font-weight: bold; font-size: 2em;">{$EndDate}</div>
<div style="position: absolute; top: 675px; left: 265px; font-weight: bold; font-size: 2em;">{$StatisticsInfoId}000</div>
</div>



Regards,
ARI Soft


We just saw we have problem with that code. The names are different positions on all the certificates. For example one name is 2 words other one are 4 so the name are align always to the left... Can you tell me how to make the name center?

{$UserName}
{$QuizName}
to be center

I try changing the left to center but is not working

Thanks
Last Edit: 2016/10/04 17:20 By niki.
The administrator has disabled public write access.
 
#58719
Re:Change the generated PDF Certificate 7 Years, 6 Months ago Karma: 747
Use:

Code:


<div style="position: absolute; top: 360px; width:100%; text-align:center; font-weight: bold; font-size: 2em;">{$UserName}</div>



instead of:

Code:


<div style="position: absolute; top: 360px; left: 300px; font-weight: bold; font-size: 2em;">{$UserName}</div>



Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1234