-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
waiting feedbackWaiting for feedback from issuerWaiting for feedback from issuer
Description
Hi,
I've been using this bundle since its early days on a small project, and i'm having some trouble upgrading it : i seem to get empty contents even though the generation seems to be just fine.
From what i could gather using my debugger, my call to $htmlPdfBuilder->generate()->process() (i need the pdf as a string) ends up calling Sensiolabs\GotenbergBundle\Processor\NullProcessor with chunks that look fine, but it obviously does nothing with them.
Any clue as to what I could be doing wrong?
The code is extremely simple and does seem to get me a correct response before i try to get its contents :
$builder = $this->pdf->html();
if (null !== $headerTemplate) {
$builder->header($headerTemplate, ['data' => $data]);
}
if (null !== $footerTemplate) {
$builder->footer($footerTemplate, ['data' => $data]);
}
return $builder->content($template, ['data' => $data])->generate()->process();
//In 0.1.0 was return $builder->content($template, ['data' => $data])->generate()->getContent(); Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
waiting feedbackWaiting for feedback from issuerWaiting for feedback from issuer