-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Since 2.3.2 the PDF template background is above background and borders of pdf:html #165
Comments
@mxpgmbh Thanks for reporting! That could be related to the If you could try to downgrade FPDI: https://www.setasign.com/products/fpdi/downloads -> older versions If else you could provide me your template, that would nice as well. You could also send it privately via email: https://www.bithost.ch/unternehmen/ |
I sent you an email with an example mini extension demonstrating the bug, |
@mxpgmbh It seems to be related to this change: 027163c I will have to further investigate this. You could go back to the previous behaviour by providing your own BasePDF class:
<?php
namespace Vendor\YourExtension\Model;
class MyPDF extends \Bithost\Pdfviewhelpers\Model\BasePDF
{
/**
* @inheritDoc
*/
public function renderHeader()
{
parent::renderHeader();
$this->setPageMark();
}
} It seems however that this does only work for manual page breaks and not for automatic page breaks. |
@mxpgmbh I think I found the correct way to fix this: 9a94a1f According to the TCPDF documentation
The same seems to apply if we use a PDF template in the background. I will create a new release this week. |
I just released |
Sorry for the late reply, with work and vacation, I was just now be able to test the new version. It works now as expected, thanks! |
Describe the bug
I use a template PDF with some background image (e.g., some circles) and add text with the
pdf:html
ViewHelper to it. In the ViewHelper I draw a table (some data points) and define background and borders with CSS (so the table gets more readable).Since version 2.3.2 of pdfviewhelpers the PDF background gets drawn over the background and borders of the table. The text iteself is in front of the background.
Here a screenshot, how it looks like with the bug:
![with_bug](https://user-images.githubusercontent.com/62594408/84863465-42681100-b075-11ea-809f-9732315ee6e2.PNG)
Here a screenshot how it should look like:
![without_bug](https://user-images.githubusercontent.com/62594408/84863468-4300a780-b075-11ea-8919-2c06c5c7fd42.PNG)
Environment
TYPO3 version(s): 9.5.19
pdfviewhelpers version: >= 2.3.2
Steps to reproduce
I can probably provide you with the corresponding PDF and the TypoScript config I use as well as the Fluid Template. I do have to check with our customer first though, if I can give you the data or if I have to annonymize it first.
Expected behavior
PDF is created as before, the template PDF ist under the text written on it
Possible solution
No idea, I downgraded to 2.3.1 for the moment.
The text was updated successfully, but these errors were encountered: