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

Throwing 500 error #409

Open
Aronasoft opened this Issue Nov 8, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@Aronasoft

Aronasoft commented Nov 8, 2018

Hello,

I am trying to make 4 pages PDF but when I am passing second page it shows 500 error. I am not sure why. I also notices it only accepting HTML from page1 and only one line form page2. If I add more lines in page2 it through 500 error. Please help me in fixing this problem.

Here is my code
`<?php
ob_start();
session_start();
require DIR.'/htmltopdf/vendor/autoload.php';
use Spipu\Html2Pdf\Html2Pdf;

$html2pdf = new Html2Pdf('P','A4','en');
$html2pdf->pdf->SetDisplayMode('fullpage');

$html2pdf->writeHTML('

Powered by Ribbon Demographics

Demand Analysis

  • 1
  • 2
  • 3
  • 4
  • 5
'); $html2pdf->writeHTML('

SCOPE OF WORK

The following is an analysis performed to assess the extent of potential The following is an analysis performed to assess the extent of potential The following is an analysis performed to assess the extent of potential The following is an analysis performed to assess the extent of potential '); $html2pdf->output(); `
@LittleBigFox

This comment has been minimized.

Contributor

LittleBigFox commented Nov 9, 2018

Hi!
Could you use the CODE tag in your post? We can't read anything here...
Regards,
LBF

@spipu

This comment has been minimized.

Owner

spipu commented Nov 13, 2018

error 500 => what is the exact error ? look at in you php error log file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment