12
Views
4
Comments
[AdvancedHtmlToPDF] Unable to generate pdf, using AdvancedHtmlToPDF (Xebia)
AdvancedHtmlToPDF
Forge asset by Xebia USA Inc.

I am trying to generate and download a pdf file. I am creating the HTML content and supplying it to the server action provided by AdvancedHtmlToPdf. But in the final response, PDF comes empty.
Below is my HtmlContent that is being prepared in the server action :
<!DOCTYPE html><html lang='en'><head><meta charset='UTF-8'><meta name='viewport' content='width=device-width, initial-scale=1.0'><style>body { font-family: Arial; font-size: 12px; }h2 { text-align: center; }table { width: 100%; border-collapse: collapse; }th, td { border: 1px solid #000; padding: 6px; }th { background-color: #f0f0f0; }</style></head><body><h2>Employee Appraisal Report</h2><table><tr><th>Appraisal Id Name</th><th>Employee ID</th><th>Year</th><th>What Went Well</th><th>Improvements</th><th>Date</th></tr><tr><td>1</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2024</td><td>Successfully led the Q3 project delivery, meeting all deadlines and quality standards.</td><td>Improve time management to handle multiple projects more efficiently.</td><td>15-Dec-2025</td></tr><tr><td>1</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2024</td><td>Successfully led the Q3 project delivery, meeting all deadlines and quality standards.</td><td>Improve time management to handle multiple projects more efficiently.</td><td>15-Dec-2025</td></tr><tr><td>1</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2024</td><td>Successfully led the Q3 project delivery, meeting all deadlines and quality standards.</td><td>Improve time management to handle multiple projects more efficiently.</td><td>15-Dec-2025</td></tr><tr><td>2</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2023</td><td>Enhanced team collaboration by initiating weekly knowledge-sharing sessions.</td><td>Focus on developing advanced technical skills in cloud computing.</td><td>20-Nov-2025</td></tr><tr><td>2</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2023</td><td>Enhanced team collaboration by initiating weekly knowledge-sharing sessions.</td><td>Focus on developing advanced technical skills in cloud computing.</td><td>20-Nov-2025</td></tr><tr><td>2</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2023</td><td>Enhanced team collaboration by initiating weekly knowledge-sharing sessions.</td><td>Focus on developing advanced technical skills in cloud computing.</td><td>20-Nov-2025</td></tr><tr><td>3</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2025</td><td>Consistently exceeded sales targets and received positive client feedback.</td><td>Work on public speaking skills to improve presentation effectiveness.</td><td>10-Jan-2026</td></tr><tr><td>3</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2025</td><td>Consistently exceeded sales targets and received positive client feedback.</td><td>Work on public speaking skills to improve presentation effectiveness.</td><td>10-Jan-2026</td></tr><tr><td>3</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2025</td><td>Consistently exceeded sales targets and received positive client feedback.</td><td>Work on public speaking skills to improve presentation effectiveness.</td><td>10-Jan-2026</td></tr><tr><td>4</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2022</td><td>Improved client communication leading to faster issue resolution.</td><td>Develop better documentation practices for project handovers.</td><td>05-Oct-2025</td></tr><tr><td>4</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2022</td><td>Improved client communication leading to faster issue resolution.</td><td>Develop better documentation practices for project handovers.</td><td>05-Oct-2025</td></tr><tr><td>4</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2022</td><td>Improved client communication leading to faster issue resolution.</td><td>Develop better documentation practices for project handovers.</td><td>05-Oct-2025</td></tr><tr><td>6</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2020</td><td>Successfully implemented new software tools increasing productivity.</td><td>Work on balancing workload to avoid burnout during peak periods.</td><td>22-Aug-2025</td></tr><tr><td>6</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2020</td><td>Successfully implemented new software tools increasing productivity.</td><td>Work on balancing workload to avoid burnout during peak periods.</td><td>22-Aug-2025</td></tr><tr><td>6</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2020</td><td>Successfully implemented new software tools increasing productivity.</td><td>Work on balancing workload to avoid burnout during peak periods.</td><td>22-Aug-2025</td></tr><tr><td>8</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2018</td><td>Developed a training program that enhanced team skills.</td><td>Improve punctuality in submitting project deliverables.</td><td>18-Jun-2025</td></tr><tr><td>8</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2018</td><td>Developed a training program that enhanced team skills.</td><td>Improve punctuality in submitting project deliverables.</td><td>18-Jun-2025</td></tr><tr><td>8</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2018</td><td>Developed a training program that enhanced team skills.</td><td>Improve punctuality in submitting project deliverables.</td><td>18-Jun-2025</td></tr><tr><td>9</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2017</td><td>Optimized inventory management reducing costs by 15%.</td><td>Work on enhancing negotiation skills with suppliers.</td><td>25-May-2025</td></tr><tr><td>9</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2017</td><td>Optimized inventory management reducing costs by 15%.</td><td>Work on enhancing negotiation skills with suppliers.</td><td>25-May-2025</td></tr><tr><td>9</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2017</td><td>Optimized inventory management reducing costs by 15%.</td><td>Work on enhancing negotiation skills with suppliers.</td><td>25-May-2025</td></tr><tr><td>10</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2016</td><td>Increased customer satisfaction through personalized service.</td><td>Focus on learning new industry regulations and compliance.</td><td>12-Apr-2025</td></tr><tr><td>10</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2016</td><td>Increased customer satisfaction through personalized service.</td><td>Focus on learning new industry regulations and compliance.</td><td>12-Apr-2025</td></tr><tr><td>10</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2016</td><td>Increased customer satisfaction through personalized service.</td><td>Focus on learning new industry regulations and compliance.</td><td>12-Apr-2025</td></tr><tr><td>11</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2015</td><td>Reduced system downtime by implementing proactive maintenance.</td><td>Improve team motivation strategies during challenging projects.</td><td>08-Mar-2025</td></tr><tr><td>11</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2015</td><td>Reduced system downtime by implementing proactive maintenance.</td><td>Improve team motivation strategies during challenging projects.</td><td>08-Mar-2025</td></tr><tr><td>11</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2015</td><td>Reduced system downtime by implementing proactive maintenance.</td><td>Improve team motivation strategies during challenging projects.</td><td>08-Mar-2025</td></tr><tr><td>12</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2014</td><td>Enhanced product design based on user feedback.</td><td>Work on time allocation to prioritize high-impact tasks.</td><td>20-Feb-2025</td></tr><tr><td>12</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2014</td><td>Enhanced product design based on user feedback.</td><td>Work on time allocation to prioritize high-impact tasks.</td><td>20-Feb-2025</td></tr><tr><td>12</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2014</td><td>Enhanced product design based on user feedback.</td><td>Work on time allocation to prioritize high-impact tasks.</td><td>20-Feb-2025</td></tr><tr><td>13</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2013</td><td>Successfully managed budget cuts without impacting project quality.</td><td>Develop skills in advanced project management methodologies.</td><td>15-Jan-2025</td></tr><tr><td>13</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2013</td><td>Successfully managed budget cuts without impacting project quality.</td><td>Develop skills in advanced project management methodologies.</td><td>15-Jan-2025</td></tr><tr><td>13</td><td>e5d49f5b-5043-4620-a577-1e83dcd9e182</td><td>2013</td><td>Successfully managed budget cuts without impacting project quality.</td><td>Develop skills in advanced project management methodologies.</td><td>15-Jan-2025</td></tr></table><br/></body></html>


Screenshot 2026-01-27 140513.jpg
2023-10-16 05-50-48
Shingo Lam

Something that you can check:

  • is the text too long? please try the shorter html
  • is it a MUST to have <!DOCTYPE html> ? please try to html without it
  • is simple html ok to generate (without table or css)? please try as simple as possible
UserImage.jpg
Udit Prajapati

Done all these changes, with shorter HTML/ without css/ with simple HTML, still getting empty pdf.

UserImage.jpg
Jayaprakash Ramesh

hello @Udit Prajapati
this is the table you coded in the HTML, use minimal Code or pass the this text as variable into the HTML tag and download the HTML tag parent container with Ultimate PDF froge component , DO this after the suggestions of @Shingo Lam , 

UserImage.jpg
Udit Prajapati

Hi @Jayaprakash Ramesh , I am working with ODC studio, here the Ultimate PDF requires url of the page to be converted in pdf, and that is also not giving correct output, maybe due to it's incompatibility with Reactive pages. ODC studio doesn't have option to create traditional web page.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.