Hi,
Issue is that the location of the generated files for ttfont and tmp data is allways saved in the lib folder.
Even though "Auto-configure the PDF tool settings" (variable "print_pdf_autoconfig") is set to true, the ttfontdata is not saved in public://print_pdf/print_pdf_mpdf/ttfontdata/ and public://print_pdf/print_pdf_mpdf/tmp/
requirements:
7.x-2.x version of module
mpdf library version < 7
steps to reproduce:
enable "mPDF library handler" module
in page admin/config/user-interface/print/pdf_en check "Auto-configure the PDF tool settings" (set to TRUE)
create a basic page
click on the pdf icon (it is at this point that the ttfont data is generated)
you should see the generated files in the lib folder under mpdf/ttfontdata
Thank you.
Comment | File | Size | Author |
---|---|---|---|
#4 | location_ttfont_directories-3036143-4.patch | 1.65 KB | Andras_Szilagyi |
#2 | location_ttfont_directories-3036143-1.patch | 632 bytes | Andras_Szilagyi |
Comments
Comment #2
Andras_Szilagyi CreditAttribution: Andras_Szilagyi commentedFound the issue to be that lib gets loaded before usage in print_pdf_mpdf_pdf_tool_version(), so the constants for dirpath get set to early
Comment #3
Andras_Szilagyi CreditAttribution: Andras_Szilagyi commentedComment #4
Andras_Szilagyi CreditAttribution: Andras_Szilagyi commentedand another issue, this
was missing trailing slash..
Comment #5
enriquelacoma CreditAttribution: enriquelacoma at NTT DATA commentedI tested patch #4 and works as intended. With this patch, once the option "Auto-configure the PDF tool settings" is enabled, data files are saved on the path: public://print_pdf/print_pdf_mpdf/ttfontdata/
Comment #6
Andras_Szilagyi CreditAttribution: Andras_Szilagyi commentedComment #7
jcnventura CreditAttribution: jcnventura commentedI'm pretty sure this breaks print_pdf_mpdf_pdf_tool_version().
Comment #8
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedComment #10
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedThis should be a proper fix for it.