Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

[Question]: Own PDF-Templates and PDF-Custom Fonts where to upload? #11016

Open
@mad99

Description

@mad99

Hi,
Sorry for open a new issue for quite the same problem.
But I saw (to late) the old issue is closed: #10923 (comment)

So paula-w get my a link to the documentation about custom-fonts in YediForce-PDF.
This I will try as next.

1. How to use custom PDF-Template in daily practice?

Now, thanks to the link, I know the solution to include custom-fonts with <div>-tags or with own php-files.
But there is not written how to use this in the daily practice with YetiForce. Maybe it is obvious, but I can't find the clou or any documentation about.

  • Maybe someone has information or the right link to the documentation which explain where the files has been to upload, so they will useable in the daily work over «accounting» > «invoices» > «Add record» (see below)?

2. Where is the right folder for Fonts and PDF-Templates in the default-installation

In the Part about the «custom fonts» there is to read:
«Upload your ttf font files to server and add following code at the beginning of your html.»

  • Is there a recommended folder/place for Font-files, so there will be safe while update/upgrade-process from YetiForce?

3. How I can use the recommended 2 Ways: Code at the beginning & inside php

Currently I create a PDF in the YetiForce Backend under: «System Settings» > «System Tools» > «PDF» > «New PDF Tempate».
And I use it over: «accounting» > «invoices» > «Add record».
Showed in the Issue: #3037

But in this approach I can not find way to include <div> elements at the beginning (like described in read.ME) or at least I can't find the place in the «create PDF template»-form for...
Only int the raw mode from the «watermark»-, «header»-, «content»- and «footer»-WYSIWYG-Editor.
But this is not working!
The choosalbe value in the drop-down is still «dejaVue Sans» and does not add the new fonts.

  • How can I add the code at the beginning of my template/html?
  • Or is there any other approach for? (Does anybody has information or link to docu?)

Because unfortunately I can't find any documentation to use files like in the «examples» under https://github.com/YetiForceCompany/YetiForcePDF.
There I see a template is a combination about 2 files «1 html & 1 php».
BUT:

  • Where I have to store those files? (to be update-secure)
  • How can I use this files for PDF-invoices and PDF-offers? There is only a button for «import template», but this is only possible with xml-files not html/php files. :o((
  • Do you have any information about or documentation? Have search in all 4 Docu-Libraries :User, Administrator, Implementer, Developer, without any match about.

Thank you for your help
Regards
Martin

Metadata

Metadata

Labels

bugThis is a bug report.👮‍♂️ VerificationRequiredWe have to verify if this issue exists in the developer version of YetiForce.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions