Product: Pdftron sdk
Product Version: Version 9.1.0
Please give a brief summary of your issue:
Font is showing garbled in the pdf exported from dwg.
Please describe your issue and provide steps to reproduce it:
Used pdftron sdk to export dwg to pdf file containing japanese text in the dwg file. The exported pdf file does not show the text clearly, it is garbled.
The below image shows the dwg content and exported pdf content, the garbled text is highlighted.
Herewith sharing the code snippet:
CADConvertOptions opts; opts.SetPageWidth(800); opts.SetPageHeight(600); opts.SetRasterDPI(150); opts.SetColorMode("Gray"); PDFDoc pdfdoc; Convert::FromCAD(pdfdoc, testFiles.inputFile, &opts); pdfdoc.Save(testFiles.outputFile, SDF::SDFDoc::e_linearized, NULL);
Actually when i copy the gabled data from pdf and check translating it in i get the japanese data, so the data is o/p in pdf but not able to display. This could be a font issue ? The font is in shx in dwg, can we and how to embed the shx font in the pdf ? or Any other solution to fix the issue ? Could you please help.