Skip to content

Upgrading from 0.1.0 to 0.3.1 #152

@mrossard

Description

@mrossard

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(); 

Metadata

Metadata

Assignees

No one assigned

    Labels

    waiting feedbackWaiting for feedback from issuer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions