Questions tagged [openhtmltopdf]

This tag is to be used when asking questions about the openhtmltopdf Java library to convert an HTML to PDF.

This tag is to be used when asking questions about the openhtmltopdf Java library to convert an HTML to PDF. Check the wiki for more info.

72 questions
0
votes
0 answers

Pseudo-element :after not working anymore after upgrading 'openhtmltopdf' to v1.0.10

I'm working on a project, where we use thymeleaf to design .html files. These are being transformed to pdf using danfickles pure-Java library. Because the framework doesn't support CSS3 features, one has to work a lot with tables and such.. In our…
Ayume
  • 21
  • 5
0
votes
0 answers

How to determine the temp path of the nuget library after deploying

In my .net core web API , I'm using OpenHtmlToPdf nuget package for rendering HTML documents to PDF format. The implementation working fine locally but not in the server production K8 environment. I'm getting following message from the…
Sachith Wickramaarachchi
  • 5,546
  • 6
  • 39
  • 68
0
votes
1 answer

Customize table pagination for Html to pdf conversion

I'm currently using openhtmltopdf to convert an html to pdf. The html has a table1(no header) with 3 rows, then some text and then table2(with a header) which can have many rows. Assuming table2 is getting paginated across multiple pages, the pdf…
Sarthak
  • 57
  • 6
0
votes
1 answer

OpenHTMLToPDF Text has no space in generated PDF

I am using OpenHTMLToPDF C# library to generate PDF from HTML. Few words in my PDF generated doesn't have space in between letters. For example And Certificate. There is no space between letters A & n, r & t Below is my sample code and the styles…
Bhanu Reddy
  • 205
  • 3
  • 12
0
votes
1 answer

Draw HTML content to existing PDDocument with openhtmltopdf

I am having an already existing implementation of drawing PDF-s in SpringBoot with Apache PdfBox library. However, now there is a requirement to add text with HTML tags to an existing document. From what I have researched, PDFBox does not recognize…
0
votes
0 answers

Is there a way to set page orientation to landscape when a specific element is found in OpenHtmlToPDF (or another HTML to PDF converter)?

The functionality for the project that I am currently working is to get data from a WYSIWYG editor and convert all the input to a PDF document. The problem is sometimes there is necessary to add wider tables and this produces a truncated…
theraider
  • 1
  • 1
0
votes
0 answers

How do I set the page orientation to landscape when rendering html to pdf using openhtmltopdf?

I am trying to convert html to pdf using openhtmltopdf. I'm using mave openhtmltopdf. Then I write the Main class (example below), but the problem is that I need the landscape orientation of the page and it was possible to adjust the font (now…
Ekz0
  • 63
  • 1
  • 8
0
votes
1 answer

Why am I getting error CS0246: The type or namespace name could not be found when trying to use OpenHtmlToPdf?

I'm trying to use OpenHtmlToPdf to convert a Html file to pdf. This is the code i'm trying to run: using System.IO; using OpenHtmlToPdf; namespace Converter{ class Html_to_Pdf { static void Main(string[] args){ var html…
Janik313
  • 19
  • 3
0
votes
0 answers

convert HTML into PDF/PNG

I have following HTML file which has links to JS and CSS to different directory. I was wondering if I can convert this html file into PDF/PNG or image.
user1631306
  • 4,350
  • 8
  • 39
  • 74
0
votes
0 answers

Java: More spans containing different styles cannot be converted with OpenHtmlToPdf into PDF format

I am discovering OpenHtmlToPdf for converting html into pdf. Well it is working with my custom fonts, but when I give multiple span tags for styling it fails. In this case it is not loading the proper fonts....

invalid format

0
votes
1 answer

Openhtml to pdf messes up pdf display when build natively

I am using this - https://github.com/danfickle/openhtmltopdf to convert from html to pdf. (Which uses Apache PDFBox internally and that's where I guess the problem is). Everything works well in development mode - I am using quarkus. When I run - mvn…
Hhhh Hhhh
  • 23
  • 4
0
votes
1 answer

How to print checkmark openhtmltopdf java

Does anybody know how to print checkmark symbols like: ✓ "✓" "✓" "✓" ? I have tried include some google fonts, in browser i see symbol, but after render - only # instead of ✓.
Alexander
  • 89
  • 7
0
votes
2 answers

openhtmltopdf c# - page breaks not working and not creating new page in the PDF file

I am using OpenHtmltoPDF and its generating PDF files The problem that I have is, it is not creating new pages I tried including the below html, but they didn't work
Vignesh Subramanian
  • 7,161
  • 14
  • 87
  • 150
0
votes
0 answers

OpenHtmlToPdf results in Error when using PDF/A conformance

I am facing an issue, while creating a PDF using OpenHtmlToPdf. Creating a normal PDF works fine, but once PDF/A conformance is enabled, the application exits with a NullPointerException. The PDF i am trying to create has to be PDF/A conform.…
Thorben Kuck
  • 1,092
  • 12
  • 25
0
votes
0 answers

C# OpenHtmlToPdf missing styles

I'm using OpenHtmlToPdf to convert a html file to a pdf file. This works, but it doesn't support css grid and also doesn't render the svg which is embedded in the html file. Do you have an idea of how fix this or know any alternative libraries which…