Free Support Forum - aspose.com

[.NET] Some special character missing when saving document.info with Aspose.PDF


#1

Hi,
I’m using aspose.pdf version 10.5.1.0 to set document info for a PDF file. And I met a problem, and this problem seems easier to reproduce with your sample code.
The code snippet as bellow
//specify document information
DocumentInfo docInfo = pdfDocument.Info;
docInfo.Keywords = “This is test ++ 未”;
//save output document
pdfDocument.Save(dataDir + “SetFileInfo_out.pdf”);
The problem is that, if the “Keywords” contains some Chinese word, like “未” , and also with special word “++”, then after saved the pdf, and open this pdf via Adobe Reader to check the Keywords, found that all of these special words “++” is missing!!

Can you explain and guide me how to resolve this issue?

Regards,


#2

@weibanban

We were able to reproduce the issue while using Aspose.PDF for .NET 19.5 and for the sake of correction, we have logged it as PDFNET-46407 in our issue tracking system. We will further look into details of the issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.


#3

Can you provide any quick workarounds for this issue?
And i found that not only Chinese word, Some special words like " α β" i inserted from Microsoft word will trigger the same problem.


#4

@weibanban

I am afraid that we cannot provide any workaround until the issue is investigated. As soon as we investigate the issue in details we will be able to provide any definite feedback.

Are you saving document as .pdf using Microsoft Word or Aspose.Words API? Would you please explain a bit more about this. We will also check the scenario from this perspective.


#5

It’s not related with Microsoft Word or Aspose.Words API. The scenario is that our customer maybe will copy some content from somewhere, and our application will save these content into keywords property of PDF for some purpose via Aspose.PDF API. Then this issue will be raised if these content contained some special words. Any progress please let me know. Thanks.


#6

@weibanban

Thanks for sharing details.

We will surely let you know as soon as additional updates are available regarding issue resolution.