serial pdf no image as background

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
7 years 1 month ago #279796

Hello,

I just fixed an element in the PDF serial for the listing of fonts.
You can re-download HikaSerial to get the patch.

Regarding the fonts, it can be composed of several files and if you see the TCPDF doc, the "freeserif" is an UTF8 font.
tcpdf.org/examples/example_008/

And by following my instructions, you just need to extract the fonts from the TCPDF lib into the designated folder.
You can see to use the conversion tools but you already have several in the libs :

For example the "fonts" folder in TCPDF is 28MB (15MB once compressed).

You have to put fonts from the TCPDF lib itself.

So please download TCPDF to get the fonts from it.


Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
7 years 1 month ago #279853

Hi,

Yes the fonts show up now and can be used. But still I don't get the eurosign to get placed properly into the pdf. See attachement, the font used for the price is the freeserif UTF-8 font. As far as I know Arial should show the € sign as well. The same lib is used for the "Attachinvoice" plugin, isn't it? In that plugin I don't have any problem with the eurosign.

It looks like the html code used in Hikashop for the price is not the correct code for the pdf generator. This looks like a technical issue?

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
7 years 1 month ago #279885

Hello,

I'm sorry but I do not have your issues in my end.
I'm using Helvetica font and I can display € manually of via the "price" format.
Afterwards, there is no support of extended UTF8 (for the Japanese character for example).

And in the HikaSerial configuration, It's TCPDF which is used.
I also perform a test using a PDF template (to use FPDFi) and it worked the same.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Attachments:
Last edit: 7 years 1 month ago by Jerome. Reason: fix attachment

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
7 years 1 month ago #279907

Hi,

I can't open your test pdf (error: can't open). It's strange that it works well on your side, why should't it on mine? My config for the pdf doesn't differ much from yours. When entering RAW code the € shows well, but no success with the € sign in the productprice. See screenshots.

Attachments:
Last edit: 7 years 1 month ago by michelpouli.

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
7 years 1 month ago #279911

Hello,

I fixed my attachment ; there was a PHP warning that make the PDF broken for most software but not with Firefox so that's why i didn't noticed it.

Why not simply configuring your currency to right use the € character and not it HTML version ?
www.hikashop.com/support/documentation/1...p-currency-form.html

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: michelpouli

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
7 years 1 month ago #279939

Hi,

Never saw that one coming... :) I use Hikashop since 2011 and never changed the Currency settings. Attachinvoice always worked fine, so didn't think about that! Thanks, that was the solution.

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
7 years 1 month ago #279965

Hi,

One other thing, I'm trying to add the "end date" on the pdf so the user knows when the coupon will expire. I used all kind of codes but can't find the right one.

The column where the date is stored is {hikashop_mpw_discount.discount_end}, but I get no data on the pdf. What am I doing wrong?

Attachments:

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
7 years 1 month ago #279976

Hello,

You can't access to the discount via the "Product..." since "Product..." is accessing to the product table.
But if you're using the Coupon generator ; you will see that the generated serial got some "extra data".
In these data, you'll find the discount end date ; named "validity_end".

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
7 years 1 month ago #280167

Hi,

Ok and how do I attach this data to the pdf? I used the "Serialnumber..." table in the TYPE field of the pdf, but no data shows up. Do I have to use brackets for the fieldname "validity_end"? And do I have to add a path or just the fieldname? I can't find any info on this...

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

  • Posts: 26156
  • Thank you received: 4028
  • MODERATOR
7 years 1 month ago #280180

Hello,

CF : pasteboard.co/GOhIm8M.png
When using the coupon generator :

Serial...
extradata.discount_end
When using the time limited generator :
Serial...
extradata.validity_end

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 507
  • Thank you received: 21
  • Hikashop Business
7 years 1 month ago #280233

Hi,

Thanks.

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

Moderators: Obsidev
Time to create page: 0.081 seconds
Powered by Kunena Forum