![]() Load a PDFDocument from the existing PDF bytesĬonst pdfDoc = await PDFDocument.load(existingPdfBytes) Ĭonst gothicNeoFont = await pdfDoc.embedFont(gothicNeoBytes) ĮxamplePage.drawText('순환성 기질을 가질 가능성이 높습니다. Import fontkit from download from "downloadjs" Ĭonst gothicNeoBytes = await fetch('./vendors/document-fonts/AppleSDGothicNeoUL00-13.otf').then(res => res.arrayBuffer()) Ĭonst existingPdfBytes = await fetch( example Pdf ).then(res => res.arrayBuffer()) how do i add fonts to adobe acrobat dc from mac open pdf and choose editing options open your pdf document to open the file, click 'file' > 'open' and locate the file in your pc to open the file, click 'file' > 'open' and locate the file in your pc. ![]() (this should work with any pdf you want to use to test it, just update the fetch) (github wont let me attach the specific font, since its an otf file) Here's my font embed code and some example stuff: Unfortunately, the file I made is for a client in the medical sector, so I can't share my whole code or the whole file I expected adobe to be able to read my font choice, or at least not to scramble the text uselessly. Whereas in mac preview or any other pdf renderer, the sentence correctly reads as:Īs a reference, I made an english version of the file, swapping out for a set of custom english fonts that Adobe also didn't have, but it understood them just fine. (copy paste from acrobat on that page returns yet another different string: 환성 기 을 성이. ![]() What actually happened?Īdobe loads a sample sentence from my pdf as: To double check I also swapped over to a different font for the korean text, repeated the installation, restart, and recreation steps, and achieved the same result. ![]() Restarted my computer after installing the fonts I double checked that I had the font i wanted installed correctly both on my system and in adobe acrobat pro DC. When I open the file in Mac Preview, everything is fine, but when I use Adobe Acrobat Pro DC to open the file, the text itself is different: How did you attempt to do it?įollowing guides online, most helpfully this one: ![]() Along the way I encountered an issue whereby Adobe Acrobat pro DC was scrambling the korean text in the document I made a pdf recently for a korean client using pdf-lib. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |