We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
i want convert docx to pdf that docx file contains header and footer
sample code with file docx sample sample.docx
<?php require __DIR__ . '/vendor/autoload.php'; $address='sample.docx'; $savePath='sample.pdf'; $word = IOFactory::load($address); // load file word(docx) Settings::setPdfRenderer(Settings::PDF_RENDERER_MPDF, __DIR__ . '/../../../vendor/mpdf'); $pdf = new PDF($word); $render = $pdf->getRenderer(); $render->setPaperSize('A4'); $render->save($savePath);
exported file pdf with header
exported file with out header and footer exorted pdf.pdf
Please fill in your environment information:
The text was updated successfully, but these errors were encountered:
this problem because WORD to PDF but for this job first exported WORD to HTML then HTML to PDF but WORD to HTML not header and footer supported
Sorry, something went wrong.
@hamedzare1397 any solution for adding header and footer?
@hamedzare1397 any solution for adding header and footer? try this project https://github.com/gotenberg/gotenberg
No branches or pull requests
Describe the Bug
i want convert docx to pdf that docx file contains header and footer
Steps to Reproduce
sample code with file docx sample
sample.docx
Expected Behavior
exported file pdf with header
Current Behavior
exported file with out header and footer
exorted pdf.pdf
Context
Please fill in your environment information:
The text was updated successfully, but these errors were encountered: