69 questions
-7
votes
1
answer
97
views
Adding HTML to a pdf partway through creating a PDF using pdfHtml [closed]
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 ...
0
votes
1
answer
96
views
Hyperlink/bookmarks not working with remote repository
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 ...
0
votes
0
answers
86
views
itext can not convert html to PDF correctly, when use Specific CSS selector (nth-last-child)
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:
&...
0
votes
2
answers
98
views
Page Breaks In Nested Free Marker Tables
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 ...
0
votes
1
answer
66
views
why the style error and chinese is not display when i use itext7 pdfhtml java lib translate svg to pdf
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 ...
-1
votes
1
answer
129
views
Adding images to a PDF generated by an API and Node.js
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 ...
0
votes
1
answer
183
views
How to unset link to <span> tagging in Advanced PDF/HTML Templates in NetSuite?
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 />
...
1
vote
1
answer
140
views
itext7 pdfHtml Xamarin.Forms 'Value cannot be null. Parameter name: assembly'
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 ...
0
votes
1
answer
3k
views
Conver itext7 PdfDocument to byte array in c#
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 ...
0
votes
1
answer
54
views
How to interpret htlm and css anotation in ajax data to pdfhtml5 datatable
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 = ...
-2
votes
1
answer
2k
views
itext7 html to pdf - vb example please?
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.
0
votes
0
answers
260
views
Html Table Caption problem in conversion to pdf
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 ...
0
votes
0
answers
426
views
Font-family ignored when rendering html-pre to pdf
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, ...
0
votes
1
answer
586
views
itext7.pdfhtml is ignoring padding and new lines when single file published
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\...
0
votes
1
answer
726
views
dynamic html to pdf CSS issue when rendering a table color
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 ...
0
votes
1
answer
497
views
IText7 pdfHtml not working in Azure Web App
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 ...
1
vote
0
answers
1k
views
iText 7 pdfHTML extension doesn't implement all of my CSS when converting my html to pdf in my C# utility
I have the following HTML:
<html>
<head>
<style>
.styled-table {
border-collapse: collapse;
margin: 25px 0;
font-size: 0.9em;
...
1
vote
0
answers
130
views
pdfHTML: Accessibility is not working properly with multiple tables which had heading converting html to pdf
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 ...
0
votes
1
answer
318
views
NetSuite WYSIWYG Preview no longer working
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.
...
0
votes
0
answers
303
views
iText 7 pdfHTML setCharset doesn't work on MS Server 2016
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 ...
1
vote
0
answers
1k
views
Issue with html to pdf conversion when using itext7
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; ...
2
votes
0
answers
162
views
PDFhtml with column-count css proprety
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:
...
0
votes
0
answers
302
views
Itext7 - html2PDF issue with rendering the ordered list
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 ...
0
votes
1
answer
4k
views
Font weight css is not working when using Itext's pdfHTML to convert html to pdf
This is how I am converting HTML to pdf:-
File pdfDest = new File("output");
ConverterProperties converterProperties = new ConverterProperties();
HtmlConverter.convertToPdf(html, new ...
1
vote
1
answer
293
views
Problems with itext7 pdfhtml headers and screen readers?
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 ...
0
votes
0
answers
98
views
Can html2pdf 3.0.4 convert complex html file?
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>
...
1
vote
1
answer
1k
views
Setting application/creator metadata with iText7 and htmlpdf
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 ...
1
vote
0
answers
30
views
Create a download multipage pdf from html using .print()
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 (...
-1
votes
1
answer
235
views
pdfHTML/iText 7: Print <table> start/end row count in <tfoot>
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 ...
1
vote
1
answer
260
views
Pandas Styling not reading css id
I'm generating the following html from pandas.
<style type="text/css" >
#T_header_tablerow0_col3,#T_header_tablerow0_col4{
background-color: #F5ABAB;
}
</style>
<...
1
vote
1
answer
307
views
iText7 html to pdf conversion with target-counter having dynamic target value not working
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 ...
2
votes
0
answers
193
views
Implementing target-counter in CssContentPropertyResolver
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-...
1
vote
0
answers
188
views
Trying to convert a gridview into a PDF document
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 ...
4
votes
0
answers
613
views
How to use @font-face in iText7 pdfHTML?
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: ...
1
vote
0
answers
377
views
How to use the 'page' property in iText / pdfHtml?
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'...
3
votes
0
answers
576
views
How to dynamically adjust the page margins according to the header / footer height
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 ...
-1
votes
1
answer
319
views
Hiding unfilled fields in pdf/html templates via source code
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
1
vote
1
answer
3k
views
iText 7 converting HTML to PDF - How to see entire wide table?
InputStream is = this.getClass().getResourceAsStream("/very-wide-table_01.html");
ByteArrayOutputStream os = new ByteArrayOutputStream();
HtmlConverter.convertToPdf(is, os);
When input HTML ...
2
votes
0
answers
537
views
Change page orientation for some pages directly in HTML without using HtmlConverter.convertToElements()
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 ...
0
votes
2
answers
476
views
How to cross out a table cell using pdfHtml and iText 7
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 ...
2
votes
1
answer
4k
views
Add footer to every page of an existing PDF in iText7 (.NET)
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 ...
0
votes
0
answers
2k
views
Apply CSS to HTML string with iText7 pdfHTML
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 ...
0
votes
1
answer
2k
views
itext7 + pdfHtml: how set portrait orientation and fit content on ConvertToPdf
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 ...
0
votes
1
answer
722
views
iText7 for .NET does not include images in the conversion from HTML to PDF
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;...
0
votes
1
answer
1k
views
Break a page in iText 7 pdfHTML
I want to break page while converting HTML to PDF using iText 7.
2
votes
1
answer
1k
views
Adding Table of Content with pdfHTML in iText7 [duplicate]
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 ...
0
votes
0
answers
292
views
How to prevent dataloss inside tables while convertig Html to Pdf using iText7?
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 ...
0
votes
1
answer
723
views
<fieldset> and <legend> tags with pdfHtml in itext7
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 ...
-1
votes
1
answer
5k
views
How to set the default font for iText7 / pdfhtml
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 ...
1
vote
1
answer
3k
views
IText7 PDFHtml generator with header and footer for C#
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 ...