Hi,
We use Aspose.PDF to dynamically add annotations to documents. We keep seperate document and annotations as different blob files and we try to merge them using Aspose.Pdf.Facades.PdfAnnotationEditor or Aspose.Pdf.Document methods called ImportAnnotationFromXfdf and ExportAnnotationXfdf. Exported data is ok (we manullay checked it html seams ok). But when we import it Turkish characters like Ğ,İ,Ş,ğ, ş,ı are messed up.
I don’t know if there is an encoding setting for importing annotations. There is no problem if you manually add annotations having Turkish characters. If you can advise any workarounds or solutions it would be appreciated.
I tried to add HighlightAnnotation and save with Aspose.Pdf.Document apis but same thing happened here too
We have discovered that problem causes from pdf conversion. We use Office Interop API and we didn’t set an Encoding if we set encoding to UTF8 everything is ok.
Hi,
We have discovered problem wasn’t caused by conversion encoding. We have managed to reproduce without setting any encoding. We narrow down the problem to Aspose.Pdf.Facades.PdfFileSecurity
if we update pdf document with it before adding annotations it causes the problem. If we set security settings after adding annotations everything is ok.
1.pdf is the source pdf.
code.txt has 2 code samples (working and not working versions)
aa.xml contains exported annotations
notworking.pdf and working.pdf output files.