Skip to main content
Filter by
Sorted by
Tagged with
-7 votes
1 answer
97 views

I am generating a PDF from data that is not HTML based, and I have HTML that data that I want to insert part way through creating the PDF i.e. [Non HTML] [HTML] [Non HTML] [HTML] .... public class ...
Emma Harris's user avatar
0 votes
1 answer
96 views

I have a service with a dependency to a document generation library. The library uses iText pdfHTML to convert HTML to PDF. Inside the document, the Table of contents contains links for jumping to ...
Sobasus's user avatar
0 votes
0 answers
86 views

itext.html2pdf, Version=6.0.0.0 (so far, it is latest official version, 2025.01.07) when use it convert html to pdf, find the below css selector (nth-last-child(2)) is not work, such as below shows: &...
crazy's user avatar
  • 1
0 votes
2 answers
98 views

I am using Free Marker for an Netsuite custom form. I am attempting to iterate through each item in the record object and create a row for the respective entry. I have separated the entries out by ...
Joel Porter's user avatar
0 votes
1 answer
66 views

Initially, I utilized an SVG as a background image in the CSS of my HTML file and attempted to convert it to PDF using HtmlConvert.convertToPdf. However, my SVG images are experiencing styling issues ...
李当心's user avatar
-1 votes
1 answer
129 views

I would like to display an image on a PDF that is generated from HTML code (I am using two libraries, Mustache and html-pdf-node), but when I send a POST request with Postman, the image does not ...
Knov's user avatar
  • 1
0 votes
1 answer
183 views

We're having some problems in our PDF Templates. We have a part/code of PDF Template, code below: <td style="font-size:8.0pt"><br />Regards,<br /><br /> ...
cristian cabacaba's user avatar
1 vote
1 answer
140 views

When trying to generate a pdfHtml report in Xamarin.Forms using a .netStandard2 project, the exception System.ArgumentNullException: 'Value cannot be null. Prameter name: assembly. This is the code ...
rherzog's user avatar
  • 71
0 votes
1 answer
3k views

I am using itext7 pdfhtml (4.0.3) to convert Html to pdf in memory. Below method is taking html in memory and returning PdfDocument object of itext7. I need to convert that PdfDocument object to byte ...
Sushil Pal's user avatar
0 votes
1 answer
54 views

I have a problem exporting with pdfhtml5. I have data on datatable with HTML and CSS style and want to visualize it on pdf or another plugin. this is the variable exportOptions var thisExportOptions = ...
aicha's user avatar
  • 26
-2 votes
1 answer
2k views

Please can someone provide me with a simple example of converting a file from HTML to PDF in VB? I can find Java and C# examples but nothing using VB.
Clive Maby's user avatar
0 votes
0 answers
260 views

I am converting html to pdf by using HtmlConverter.convertToElements and then adding the iElements to the document. And it works with every html element except a caption element directly inside a ...
nikos's user avatar
  • 1
0 votes
0 answers
426 views

When I convert html with in-line styles to pdf, the font-family works on every tag I have tried except from pre. It seems that when a pre is converted to IBlockElement and then added to the document, ...
nikos's user avatar
  • 1
0 votes
1 answer
586 views

I have noticed that itext7.pdfhtml is generating incorrect PDF when app is published with PublishSingleFile set to true. Am I doing something wrong or is this known behavior? This C:\Projects\...
JeffRaska's user avatar
0 votes
1 answer
726 views

I have html contains a table. I am converting the html to pdf using pdfhtml itext7. the issue is when adding color to the table then the color is not rendering in the pdf. what to add to the CSS file ...
eded's user avatar
  • 67
0 votes
1 answer
497 views

I currently have my export to pdf working perfectly in my local, but after I publish to Azure web app, it does not work. Any suggestions? Does this work in Azure? Is it the chromeless thing that ...
Camrat's user avatar
  • 33
1 vote
0 answers
1k views

I have the following HTML: <html> <head> <style> .styled-table { border-collapse: collapse; margin: 25px 0; font-size: 0.9em; ...
dmalikyar's user avatar
  • 193
1 vote
0 answers
130 views

I am new to IText and we have a requirement to convert the existing pdf's to accessibility. So we need to convert html to pdf using java. The html documents have multiple tables with headings in div ...
Bhanu sistla's user avatar
0 votes
1 answer
318 views

I am creating a custom advanced PDF/HTML template. I switched between WYSIWYG editor and source code editor and maybe saved. So now my template no longer shows up properly when try to preview it. ...
Simon's user avatar
  • 1
0 votes
0 answers
303 views

I just finished a new service for creating pdf export which contains parts with html strings (two cells in a table), so I had to use pdfHTML. My code part: FontProvider fontProvider = new ...
Osee P's user avatar
  • 3
1 vote
0 answers
1k views

Apologies if has been asked before. Pretty new to using Itext. Haven't managed to find the solution to my issue. I have an html file using 2 non standard font families: p {font-size:small; ...
Isha's user avatar
  • 11
2 votes
0 answers
162 views

I have an HTML content that is using css proprety column-count:2;. I was expecting to get the columns in my generated PDF, but instead, I got only one, large column. Here is the converting method: ...
ihavenokia's user avatar
0 votes
0 answers
302 views

Iam using Itext7 HTML2PDF 3.0.5 to convert my html to PDF. In my html I have an ordered List and after converting to HTML, the listis been overalpped by the content of the list. Before i was using ...
user16753712's user avatar
0 votes
1 answer
4k views

This is how I am converting HTML to pdf:- File pdfDest = new File("output"); ConverterProperties converterProperties = new ConverterProperties(); HtmlConverter.convertToPdf(html, new ...
AConsumer's user avatar
  • 2,811
1 vote
1 answer
293 views

I'm working on iText7 using html to pdf capabilities. I just noted that Header set on every page has this problem. Header is not read by screen reader. The rest of the document works perfectly with ...
Falco's user avatar
  • 1,622
0 votes
0 answers
98 views

I have a html file draw a donut chart by canvas like below (it not done yet) and I want to convert it to pdf: <!DOCTYPE html> <html> <head> <title>Blayn-report</title> ...
Dattq2303's user avatar
  • 312
1 vote
1 answer
1k views

I have been using iText (on .Net) for some time but have only recently started using htmlpdf instead of building the document manually. In previous projects I used the following code to set the ...
JHW's user avatar
  • 136
1 vote
0 answers
30 views

I'm creating some books by some datas taked with a json, I created a html page to set the print layout but i need to export it, but not by the printer panel I already created a second page (...
Mimmo's user avatar
  • 11
-1 votes
1 answer
235 views

For a project I'm currently writing a document generator that uses pdfHTML 3.0.3 and iText 7.1.14. The document contains a table showing 'items'. These item rows will probably never actually fit one ...
Sander in 't Hout's user avatar
1 vote
1 answer
260 views

I'm generating the following html from pandas. <style type="text/css" > #T_header_tablerow0_col3,#T_header_tablerow0_col4{ background-color: #F5ABAB; } </style> <...
Koustav Mallick's user avatar
1 vote
1 answer
307 views

I have been looking into why the page numbers in my generated toc are not working on the latest (3.0.3) version of htmlpdf - even though the release note state that this is now supported. The devil is ...
jan.swaelens's user avatar
2 votes
0 answers
193 views

I am trying to add a table of contents with page numbers to a PDF I am generating using Freemarker -> HTML -> PDF. The HTML/CSS are below ul.toc a::after { content: " Page " target-...
Juan Philippe's user avatar
1 vote
0 answers
188 views

Basic principle is that I am trying to take a GridView and turn it into a PDF document. The GridView includes controls like checkboxes and some css classes with some colouring. I have tried putting ...
P S's user avatar
  • 33
4 votes
0 answers
613 views

I have added a directory containing Roboto font to the FontProvider. The Pdf can find Roboto font, but it doesn't work as expected. It always uses Roboto-Black when I use font-weight: 900; font-style: ...
Masum Mollik's user avatar
1 vote
0 answers
377 views

I'm using the @page rule to set specific options for pages. I just found out that you can also define different properties for different pages by naming them. That would be quite useful, but it doesn'...
Zuzu_Typ's user avatar
  • 107
3 votes
0 answers
576 views

I'm using iText and pdfHtml to convert HTML pages to PDF. Though I'm having trouble getting each page to adjust to it's specific header or footer. Some of the headers / footers I'm using are taller ...
Zuzu_Typ's user avatar
  • 107
-1 votes
1 answer
319 views

I'd like to make certain fields invisible/disappear when remain unfilled. i.e. Email: This will result in the email text field not being printed out
Stackalvinflow429's user avatar
1 vote
1 answer
3k views

InputStream is = this.getClass().getResourceAsStream("/very-wide-table_01.html"); ByteArrayOutputStream os = new ByteArrayOutputStream(); HtmlConverter.convertToPdf(is, os); When input HTML ...
LU_Busy_Bee's user avatar
2 votes
0 answers
537 views

I'm using pdfHtml and iText to convert an HTML document to PDF. There are some pages that need to be in portrait orientation and some that need to be in landscape orientation. This needs to be ...
Zuzu_Typ's user avatar
  • 107
0 votes
2 answers
476 views

I'm trying to display a crossed-out table cell. I've tried dozens of different approaches. My best solution was using four linear-gradients, one for each corner (because there is no support for ...
Zuzu_Typ's user avatar
  • 107
2 votes
1 answer
4k views

I am building a PDF at runtime in itext7.pdfHTML, using a template file. I want to add a footer to every page of the resulting PDF, which has two pages, but for some reason the footer only appears on ...
bmurrell30's user avatar
0 votes
0 answers
2k views

I am feeding HTML code stored in a string variable into iText7's pdfHTML plugin; how can I get my CSS to work correctly with it? Here's the details: I have an HTML file that serves as a template for ...
bmurrell30's user avatar
0 votes
1 answer
2k views

I did a simple html to pdf conversion getting a landscape orientation. In the pdfHtml release notes I see that the default orientation should be portrait but I got a landscape. I'm not able to find ...
Tonyc's user avatar
  • 739
0 votes
1 answer
722 views

I have this HTML: <table style="width:100%" class="table table-bordered"><tbody><tr><td><p><img src="https://stackoverflow.com/User/Images/logo-48_20200612183312_78003.jpg" style="width: 64px;...
jstuardo's user avatar
  • 4,543
0 votes
1 answer
1k views

I want to break page while converting HTML to PDF using iText 7.
Sagar N H's user avatar
2 votes
1 answer
1k views

Using HTML file, I generated PDF file using iText pdfHTML. Now I want to add table Of Content(TOC) to the 2nd page. I saw the same question adding-toc-dynamically . But no answer for this. I tried the ...
RedWhite's user avatar
0 votes
0 answers
292 views

I am new to iText7. I am using a java program to convert HTML files to PDF. I have used the iText's HtmlConverter to convert html into list of Elements and then create a layout document based on the ...
Lakshmi Nareddy's user avatar
0 votes
1 answer
723 views

Using HTML file, I generated PDF file using iText pdfHTML. I want to present caption for the content, just like in HTML <fieldset> and <legend> are doing. I used below HTML code. In HTML ...
Briyatis's user avatar
-1 votes
1 answer
5k views

Various comments are written into a PDF table. The table has one column. The comments come from an HTML editor from a web application and contain HTML text that is output with pdfhtml. Examples for ...
Penguin's user avatar
  • 59
1 vote
1 answer
3k views

I am trying to generating a PDF from predefined HTML content. I managed to generate the content, yet without the required HTML Header, HTML Footer, and Arabic language is not supported as well. My ...
TareqBallan's user avatar