question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Khmer Unicode Issue in PDF Generation

See original GitHub issue

This may related with issue #391.

I try exporting from the table or javascript data.

image

This is the original data image

I also try something like font coversion like this https://jsbin.com/fufafotoji/edit?html,js,output

It does show Khmer text (but not properly character) and lose all English text as shown here image

Note: If I use jsPDF generating pdf from html. it works.


` openPDF():void {
    let DATA = document.getElementById('htmlData');
    html2canvas(DATA).then(canvas => {

        let fileWidth = 208;
        let fileHeight = canvas.height * fileWidth / canvas.width;

        const FILEURI = canvas.toDataURL('image/png')
        let PDF = new jsPDF('p', 'mm', 'a4');
        let position = 0;
        PDF.addImage(FILEURI, 'PNG', 0, position, fileWidth, fileHeight)

        PDF.save(`${this.title}.pdf`);

    });
  }`

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SivKaycommented, May 11, 2022

Thanks a lot

0reactions
chhinsrascommented, May 11, 2022

how about react brother? Have you got one?

https://react-pdf.org/components#document, try this. or you can use broswer print.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Khmer Unicode Render Not Correctly when Export As PDF
Dear Support Team, I have a problem when I call Export Dialog of gridcontrol.ShowRibbonPrintPreview() then I select PDF as my export option.
Read more >
PDF rendering issue with Khmer language - Stack Overflow
I think your issue should be solved with recent Android version from 4.4.4 that the render of Khmer Unicode is fine.
Read more >
Khmer unicode is not shown in PDF doc - Free Support Forum
I want to create a pdf doc which can display khmer language (Unicode font).Here is my code String fontPath = Environment.
Read more >
Can not generate correct PDF from Khmer Unicode(Cambodia ...
Hi, I am Visal who like Joomla so much. I can not generate correct PDF from Khmer(Asian) article. It show non-readable content in...
Read more >
How to get Khmer fonts on the .pdf output in XML Publisher
Hi, We are trying to generate PDFs containing text in Khmer Unicode (Cambodian) fonts. The text is rendered correctly in the XML Output...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found