Second probleme I have with quotes, sometime for an unknown reason, when I push “print as PDF” in a quote the page gets bloqued. Nothing appears.
If I want it to work again, I have to delete all my template quotes…and recreate them…and it works again …until the next time it get stucked
For the page break I posted a bug
For the “print as pdf” not working from time to time, I am not anymore experiencing the issue, It might related that I tried to avoid space in the title of template
If so, I really think you should fill out the entire Issue template when filing a bug. The maintainers have to handle hundreds of bugs, it makes it really hard for then if people don’t follow the structure.There’s a reason why those pieces of information are being asked.
A carefully crafted Issue report earns the respect of the developers. Quick and confusing reports just get silently ignored…
Hi,
I had the same issue.
I’ve resolved it for now by creating the file custom/include/tinyMCEDefaultConfig.php (or edit the existing one) to include the following lines in the $defaultConfig array:-
I cant believe i had this working, but after upgrades it stopped again. It’s so frustrating.
The only thing that works for me now is to manually add the pagebreak in phpMyAdmin.
Surely this is a problem for many people? Such a basic functional need.
Update: I found a workaround again… i added the following:
unfortunately span does not work for me?
The only thing seems to be … <
div style=“page-break-before: always;”>Â </div
i also need the  between the div tags, otherwise the pdf shows a question mark where the pagrbreak is inserted- this may be because i am testing with a blank pdf template with just 1-pagebreak 2 pagebreak etc, and there are no fields?
Now I would like to use it dynamically depending on how many items are in a quote. Our product descriptions are often 1/2-3/4 page, so controlling page breaks in 20 page PDF quotes is important.
Two possibilities:
Put a page break in a Product HTML field: TinyMCE strips out <div style=“page-break-before: always;”> from product descriptions. If I use phpmyadmin, I can enter the code into an HTML field, but it has no effect (PDF parser is stripping it out?)
Add conditional formatting to the PDF template/parser: Is it possible for the template or parser to ‘watch out’ for a specific field (e.g. ‘break’) and for the template or parser to add a page break wherever this field is True?
Up til now, this was a matter of fixing a TinyMCE feature; but your requests go well beyond this, that is clearly code customization territory… possible, yes, but not out-of-the-box.
For the record, tag is added but not saved when the PDF template saved on version 7.11.13.
What I read on this discussion thread tells me that only solution is adding to the database directly.