Closed kpurrmann closed 4 years ago
If the website includes several areas wrapped with "<!--TYPO3SEARCH_begin-->|<!--TYPO3SEARCH_end-->",
then the expression above is not working and had to be adjusted individually.
To refine several parts wrapped with "<!--TYPO3SEARCH_begin-->|<!--TYPO3SEARCH_end-->"
this setting can be used (explanation as comments):
plugin.tx_web2pdf.settings {
pdfPregSearch {
# getting all content between the first "<!--TYPO3SEARCH_begin-->" and the last "<!--TYPO3SEARCH_end-->"
1 = /^(.*)<!--TYPO3SEARCH_begin-->(.*)<!--TYPO3SEARCH_end-->(.*)$/s
# filtering all between the search-parts
2 = /<!--TYPO3SEARCH_end-->(.*?)?<!--TYPO3SEARCH_begin-->/s
}
pdfPregReplace {
1 = $2
2 = $1
}
}
This solution should work even only with one search part "<!--TYPO3SEARCH_begin--> ... <!--TYPO3SEARCH_end-->"
but executes then needless the second regular search.
Sorry for the delay could you make a PR for the documentation?
Thanks Philipp
Example for pdfPregSearch and pdfPregReplace:
Without these settings images never have been found (in TYPO3 6.2) but shown as red squares after these settings content is shown really nice and images are shown like on the website.