[Skip to main content](#vessel-content)

#   HikaSerial Plugin: PDFSerial

##

- **[Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")**
- [![Leilahodgkins's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile") Topic Author
- [ Offline](/forum/user/5728-leilahodgkins)

Less More

- Posts: 81
- Thank you received: 9
-
-

5 years 3 months ago [\#334878](#334878) by [Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")  *[HikaSerial Plugin: PDFSerial](/forum/14-hikaserial/903043-hikaserial-plugin-pdfserial#334878 "Hi there,  I have been playing with HikaSerial to create a Gift Certificate product. I got it to work by reading your documentation and I can successfully create an order that generates the coupon code and emails a jpeg of the gift certificate to the user. It all looks nice!  However, a jpeg is a little awkward because the user cannot copy and paste the code.  In the list of plugins, I found one called PDFSerial and thought I could use that to generate a PDF certificate instead however I experienced a couple of errors.  - Firstly, when the font was set to 'arial' I got an error saying 'TCPDF ERROR: Could not include font definition file: arial' - I changed the font to 'times' which then created the order OK, but no code was written on my PDF template.  Attached is my set up in the plugin.  Am I using this plugin correctly? I couldn't find any documentation for it. Do you know what might be causing the problems?  Many thanks for your help.  Leila")* was created by *[Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")*

Hi there,

I have been playing with HikaSerial to create a Gift Certificate product. I got it to work by reading your documentation and I can successfully create an order that generates the coupon code and emails a jpeg of the gift certificate to the user. It all looks nice!

However, a jpeg is a little awkward because the user cannot copy and paste the code.

In the list of plugins, I found one called PDFSerial and thought I could use that to generate a PDF certificate instead however I experienced a couple of errors.

- Firstly, when the font was set to 'arial' I got an error saying 'TCPDF ERROR: Could not include font definition file: arial'
- I changed the font to 'times' which then created the order OK, but no code was written on my PDF template.

Attached is my set up in the plugin.

Am I using this plugin correctly? I couldn't find any documentation for it. Do you know what might be causing the problems?

Many thanks for your help.

Leila

- [ ![pdf-setup.jpg](/forum/attachment/53368) ](/forum/attachment/53368 "pdf-setup.jpg") [ ](/forum/attachment/53368?download=1 "pdf-setup.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvOTAzMDQzLWhpa2FzZXJpYWwtcGx1Z2luLXBkZnNlcmlhbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

5 years 3 months ago [\#334888](#334888) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[HikaSerial Plugin: PDFSerial](/forum/14-hikaserial/903043-hikaserial-plugin-pdfserial#334888 "Hi there,  I have been playing with HikaSerial to create a Gift Certificate product. I got it to work by reading your documentation and I can successfully create an order that generates the coupon code and emails a jpeg of the gift certificate to the user. It all looks nice!  However, a jpeg is a little awkward because the user cannot copy and paste the code.  In the list of plugins, I found one called PDFSerial and thought I could use that to generate a PDF certificate instead however I experienced a couple of errors.  - Firstly, when the font was set to 'arial' I got an error saying 'TCPDF ERROR: Could not include font definition file: arial' - I changed the font to 'times' which then created the order OK, but no code was written on my PDF template.  Attached is my set up in the plugin.  Am I using this plugin correctly? I couldn't find any documentation for it. Do you know what might be causing the problems?  Many thanks for your help.  Leila")*

Hello,

You should start with a position "0 : 0" and font size 14.
The current values seems to be very big for the PDF ; and PDF lib is not exactly working in pixels.

Regarding the font, "arial" is a system one. So if you have an error with that font it means that you're hosting do not have it available.
Courrier, Helvetica and Times are include in the HIkaSerial package.
You can also see to use the TCPDF font import system to add your own fonts in the HikaSerial media folder.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvOTAzMDQzLWhpa2FzZXJpYWwtcGx1Z2luLXBkZnNlcmlhbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")**
- [![Leilahodgkins's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile") Topic Author
- [ Offline](/forum/user/5728-leilahodgkins)

Less More

- Posts: 81
- Thank you received: 9
-
-

5 years 3 months ago [\#334902](#334902) by [Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")  Replied by *[Leilahodgkins](/forum/user/5728-leilahodgkins "View Leilahodgkins's Profile")* on topic *[HikaSerial Plugin: PDFSerial](/forum/14-hikaserial/903043-hikaserial-plugin-pdfserial#334902 "Hi there,  I have been playing with HikaSerial to create a Gift Certificate product. I got it to work by reading your documentation and I can successfully create an order that generates the coupon code and emails a jpeg of the gift certificate to the user. It all looks nice!  However, a jpeg is a little awkward because the user cannot copy and paste the code.  In the list of plugins, I found one called PDFSerial and thought I could use that to generate a PDF certificate instead however I experienced a couple of errors.  - Firstly, when the font was set to 'arial' I got an error saying 'TCPDF ERROR: Could not include font definition file: arial' - I changed the font to 'times' which then created the order OK, but no code was written on my PDF template.  Attached is my set up in the plugin.  Am I using this plugin correctly? I couldn't find any documentation for it. Do you know what might be causing the problems?  Many thanks for your help.  Leila")*

Great! Thank you for the tips, I've got it working now.

Best wishes
Leila

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzE0LWhpa2FzZXJpYWwvOTAzMDQzLWhpa2FzZXJpYWwtcGx1Z2luLXBkZnNlcmlhbD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.051 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
