Skip to content
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

UTF-8 Checkboxes don't always get converted to PDF #697

Open
yennor opened this issue Jan 3, 2025 · 0 comments
Open

UTF-8 Checkboxes don't always get converted to PDF #697

yennor opened this issue Jan 3, 2025 · 0 comments

Comments

@yennor
Copy link

yennor commented Jan 3, 2025

I've had a document with some UTF-8 checkboxes. ☐ ☒
When converting the odt to pdf, none were converted (I had the same problem from DocX to PDF).
Then I chanced the font from Arial to Liberation Serif. And at once all were exported.
So I've created a sample document, with checkboxes in Arial and Liveration Serif, and in this example document, all the arial checkboxes are exported, but on of the liberation serif not. So no idea what the real problem is.
First i've used iText and then openPdf. Same result.
Anyway, document attached..

test.odt
result.pdf

pom.xml

		<dependency>
		    <groupId>fr.opensagres.xdocreport</groupId>
		    <artifactId>xdocreport</artifactId>
		    <version>2.1.0</version>
		</dependency>
		<dependency>
		    <groupId>fr.opensagres.xdocreport</groupId>
		    <artifactId>fr.opensagres.odfdom.converter.pdf.openpdf</artifactId>
		    <version>2.1.0</version>
		</dependency>

Code:

				Options options = Options.getTo(ConverterTypeTo.PDF).from(DocumentKind.ODT);
				IXDocReport report = XDocReportRegistry.getRegistry().loadReport(
						templateInputStream, TemplateEngineKind.Freemarker);
				IContext context = report.createContext();
				report.convert(context, options, odtOs);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant