Keywords in PDF without quotation marks

Is it possible to add keywords to PDF document without quotation marks at start and end?

PdfLoadedDocument loadedDocument = new PdfLoadedDocument("c:\\temp\\1961.pdf");

loadedDocument.DocumentInformation.Title = "Digitalziacja dokumentów PZGiK";
loadedDocument.DocumentInformation.Subject = "Archiwalne rejestry gruntów";
loadedDocument.DocumentInformation.Author = "GISNET";
loadedDocument.DocumentInformation.Creator = "GN Creator";
loadedDocument.DocumentInformation.Producer = "GISNET";
loadedDocument.DocumentInformation.Keywords = "rejestr; grunt; dane";

loadedDocument.Save("c:\\temp\\Output.pdf");
loadedDocument.Close(true);


quote.jpg


8 Replies

GK Gowthamraj Kumar Syncfusion Team September 1, 2022 03:30 PM UTC

Hi Grzegorz

Currently, we are analyzing your requirement on our end and we will update the further details on September 5th 2022.

Regards,

Gowthamraj K



GK Gowthamraj Kumar Syncfusion Team September 5, 2022 02:03 PM UTC

Hi Grzegorz


Sorry for the inconvenience caused.


Due to complexity, we are still analyzing on this requirement and we will update further details on September 6th 2022 without fail.


Regards,

Gowthamraj K



GK Gowthamraj Kumar Syncfusion Team September 6, 2022 06:32 AM UTC

Hi Grzegorz,


We have confirmed this “Rendering issue while adding keywords to PDF document information with special characters” as a defect in our product. We will include the fix for the reported issue in our upcoming weekly NuGet release on September 13th, 2022.


Regards,

Gowthamraj K



GK Gowthamraj Kumar Syncfusion Team September 13, 2022 01:10 PM UTC

Hi Grzegorz,

Sorry for the inconvenience caused.


We are unable to include the fix for the reported issue in our today weekly release. Currently, we are working on this and we will include the fix into our upcoming weekly NuGet release, which will be available on September 20th , 2022.


Regards,

Gowthamraj K



GK Gowthamraj Kumar Syncfusion Team September 20, 2022 01:31 PM UTC

Hi Grzegorz,


We have fixed the reported issue “Rendering issue while add keywords to PDF document information with special characters” and created custom NuGet for this fix in mentioned version (20.2.0.49). This fix will be available on the Vol 3 release which will be available on end of September tentatively.


Custom NuGet:  

https://www.syncfusion.com/downloads/support/directtrac/general/ze/syncfusion.pdf.net.core.20.2.0.49-668140750


Please refer to the below KB steps to install the custom NuGet package,    

https://www.syncfusion.com/kb/11556/how-to-install-the-customer-patch-nuget-in-windows-machine


We need add this following code snippet with resolve the reported issue,

 

PdfLoadedDocument loadedDocument = new PdfLoadedDocument(GetFileStream(Path.Combine(“invoice.pdf")));

loadedDocument.DocumentInformation.Title = "Haai; hello; welcome";

loadedDocument.DocumentInformation.Subject = "test; pdf; conformance";

loadedDocument.DocumentInformation.Author = "adobe; syncfusion; pdf";

loadedDocument.DocumentInformation.Creator = "GN; Creator";

loadedDocument.DocumentInformation.Producer = "GISNET; producer";

loadedDocument.DocumentInformation.Keywords = "keyword; with; comma";

var xmp = loadedDocument.DocumentInformation.XmpMetadata;

MemoryStream stream = new MemoryStream();

loadedDocument.Save(stream);

File.WriteAllBytes("sample.pdf", stream.ToArray());

 


Please let us know if you need any further assistance in this.


Regards,

Gowthamraj K



GR Grzegorz replied to Gowthamraj Kumar September 23, 2022 01:06 PM UTC

Thank you for taking care of my problem. Unfortunately, the indicated archive is damaged and does not unpack correctly. :(



GK Gowthamraj Kumar Syncfusion Team September 26, 2022 06:15 AM UTC

Hi Grzegorz,


Sorry for the inconvenience caused.


We have shared the new link for custom NuGet package for the issue “Rendering issue while add keywords to PDF document information with special characters” in this mentioned version (20.2.0.49).


Link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/syncfusion.pdf.net.core.20.2.0.491164612101


Please refer to the below KB steps to install the custom NuGet package,   

https://www.syncfusion.com/kb/11556/how-to-install-the-customer-patch-nuget-in-windows-machine


Note: You can refer to the code snippet from the previous update.


As we said earlier, this fix will be available on the Vol 3 release which will be available on end of September tentatively.


Regards,

Gowthamraj K



GK Gowthamraj Kumar Syncfusion Team September 29, 2022 12:41 PM UTC

Hi Grzegorz,


We have included the fix for this reported issue with “Rendering issue while add keywords to PDF document information with special characters” in our Essential Studio 2022 Volume 3 Main Release V20.3.0.47 and we are glad to announce that our Essential Studio 2022 Volume 3 Main Release V20.3.0.47 is rolled out and is available for download under the following link.


https://www.syncfusion.com/forums/177858/essential-studio-2022-volume-3-main-release-v20-3-0-47-is-available-for-download


We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.


Regards,

Gowthamraj K


Loader.
Up arrow icon