Hello,
I am currently evaluating the HTML To PDF Conversion plug-in for generating PDF documents in Appian.
The basic conversion flow works correctly:
I can pass an HTML file as the source document.
The Smart Service generates a PDF document.
The generated PDF can be saved in Appian.
However, I am having an issue with Japanese text.
The HTML file displays Japanese characters correctly when opened as HTML, but after converting it to PDF, the Japanese characters are rendered as #### in the PDF. English text and numbers are displayed correctly.
####
I have already tried the following, but the result did not change:
Added <meta charset="UTF-8"/>
<meta charset="UTF-8"/>
Specified Japanese fonts in CSS, such as:
Noto Sans CJK JP
Noto Sans JP
Meiryo
Yu Gothic
Arial Unicode MS
Specified Open Sans, which is used in the Appian UI
Open Sans
Removed the <style> tag entirely to check whether CSS was the cause
<style>
My questions are:
Does this plug-in support Japanese / CJK / Unicode characters when converting HTML to PDF?
Is there any way to specify or embed a Japanese font for the PDF conversion?
Does the plug-in support @font-face or base64-embedded fonts?
@font-face
Are there any recommended settings or workarounds for generating Japanese PDF files?
If this plug-in does not support Japanese text, is there another recommended Appian plug-in or approach for generating PDFs with Japanese content?
Any guidance would be greatly appreciated.
Thank you.PDF
Discussion posts and replies are publicly visible
AFAIK, No native Appian plug-in fully supports Japanese/CJK PDF generation out of the box.
Thank you for your previous response.
I would like to ask a follow-up question about possible alternatives to the HTML To PDF Conversion plug-in.
Our requirement is to generate PDF documents in Appian that contain Japanese text, and then store the generated PDF files as Appian Documents.
The expected flow is something like this:
A user enters or confirms business data in an Appian interface.
At a certain business timing, such as submission, approval, or completion, Appian automatically generates a PDF document based on that data.
The generated PDF should contain Japanese labels and Japanese input values.
The PDF should be saved in Appian as a Document.
The saved PDF should be linked to the related business record so that users can view or download it later.
We tested the HTML To PDF Conversion plug-in, and the basic process worked:
HTML file input
PDF generation
PDF storage in Appian
However, Japanese characters were rendered as #### in the generated PDF, even though the source HTML displayed Japanese text correctly.
Since it seems that this plug-in may not fully support Japanese/CJK PDF generation, I would like to ask:
Are there any Appian plug-ins that can generate PDF files containing Japanese text correctly?
Is there a recommended approach in Appian for generating PDFs with Japanese/CJK content?
Would a PDF form template approach, such as filling fields in an existing PDF template, work better for Japanese text?
Would a DOCX/Word template approach be more suitable for Japanese PDF generation in Appian?
Are there any known best practices for generating and storing Japanese PDF documents in Appian?
If Appian plug-ins are not suitable for this, is using an external PDF generation service/API the recommended approach?
Our use case is not simply browser printing. We need server-side or process-driven PDF generation and storage in Appian.
Any suggestions or examples would be greatly appreciated.
Thank you.
Hey appianpram304724 ,I have few suggestions, that could help you choose best possible solution.
1) DOCX (Word) template → PDF (Best approach)
I would strongly recommend this approach as docx handles most fonts, but sometimes, its mostly related to type of font in Japanase text.
2) Custom iText-based plug-in (Best control, more effort)
A Custom plugin is needed to build, with iText Package using JAVA, that could be more efforts, but reliable and customized.
3) External PDF service (Most flexible, quickest to scale, but compromise privacy)
Compromise the privacy of the document and use the external PDF service like IlovePDF, smallPDF using APIs, but i dont recommend if its a private data, Please dont go for this, unless the content document contains, can be freely available in public
Thank you for your suggestions.
Based on the feedback, I am now considering a DOCX template → PDF approach instead of an HTML → PDF approach.
Our requirement is to generate documents that contain Japanese text in Appian and store the final PDF file as an Appian Document.
The expected flow is:
Prepare a DOCX template for the business document.
Populate the DOCX template with Appian business data.
Convert the generated DOCX file to PDF.
Store the generated PDF as an Appian Document.
Link the saved PDF Document to the related business record.
I found a plug-in called Convert DocX to PDF (Aspose), which seems to support custom fonts, but it requires an Aspose Java Words license.
I would like to ask:
Are there any recommended Appian plug-ins for converting DOCX files to PDF?
Has anyone successfully generated PDFs containing Japanese/CJK text using a DOCX-to-PDF approach in Appian?
Is Convert DocX to PDF (Aspose) a good option for this use case?
Are there any important limitations, licensing considerations, or Appian Cloud constraints when using this type of plug-in?
Are there any other plug-ins or approaches that you would recommend for DOCX template generation and PDF conversion in Appian?
Our key requirements are:
Japanese/CJK text must be rendered correctly in the final PDF.
The generated PDF must be stored in Appian as a Document.
Business data cannot be sent to an external PDF generation service or external API.
Any advice or examples would be greatly appreciated.