Q
Q
qwermus2020-06-05 15:19:23
PHP
qwermus, 2020-06-05 15:19:23

TCPDF not all options work. Why?

I'm working with the TCPDF library to create a PDF file.
The TextField method accepts an array of properties that is commented as "Possible values ​​are described on official Javascript for Acrobat API reference. Annotation options can be directly specified using the 'aopt' entry."

I open this document https://www.adobe.com/content/dam/acom/en/devnet/a...
And I find these parameters in it - line 415, Field properties.
I start passing these parameters as an array:

$properties = [
                    'alignment' => 'center',
                    'value' => '123'
                ];


Some options, such as those above, work, and some don't. For example, if you replace value with valueAsString - this combination will not work.

Who worked with this - tell me what's wrong?
Thank you in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sundukov, 2020-06-05
@alekciy

I once worked and added the generation of similar documents: https://ww-realty.ru/dom/potapovo-id167-415/id167-...
It hurts, it's difficult, it takes a long time. Try to generate html, and then just convert it to PDF with some suitable utility.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question