Hello Support,
I also have a Khmer PDF render issue and noticed this thread.
Whatever I try I cannot make it work. Could you please help/advise?
Here is my code:
import aspose.words as aw
from aspose.words.saving import PdfSaveOptions, PdfCompliance, PdfFontEmbeddingMode, PdfTextCompression
file = r'test_file.docx'
output = r'test_file.pdf'
doc = aw.Document(file)
pdf_options = aw.saving.PdfSaveOptions()
pdf_options.embed_full_fonts = True
pdf_options.compliance = PdfCompliance.PDF_A1A
pdf_options.update_fields = True
pdf_options.embed_full_fonts = True
pdf_options.jpeg_quality = 100
pdf_options.allow_embedding_post_script_fonts = True
pdf_options.font_embedding_mode = PdfFontEmbeddingMode.EMBED_ALL
pdf_options.text_compression = PdfTextCompression.NONE
pdf_options.preserve_form_fields = True
doc.save(output, pdf_options)
@rob2902 Could you please attach your problematic input and output documents here for testing? We will check the issue and provide you more information.
Yes, thank you!
Screenshot of the issue and input and output attached.
image.png (15.5 KB)
test_file.docx (13.2 KB)
test_file.pdf (992.2 KB)
@rob2902 Thank you for additional information. To get Khmer text rendered closer to MS Word it is required to enable open type features. In .NET version of Aspose.Words Aspose.Words.Shaping.Harfbuzz package provides support for OpenType features in Aspose.Words using the HarfBuzz text shaping engine. unfortunately, this feature is not yet provided in Python version of Aspose.Words.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): WORDSPYTHON-124
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
PS: Here is PDF document produced by Aspose.Words for .NET with open type features enabled: out_HarfBuzz.pdf (6.3 KB)