PDF Meta Tags Problem

Stimulsoft Reports.WEB discussion
Post Reply
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

PDF Meta Tags Problem

Post by JockeD »

Hello,

I have a problem adding meta tags to a PDF when I try the following code i have two problems

Code: Select all

     var report = new StiReport();
            report.MetaTags.Add("Test1", "Value1");
            report.MetaTags.Add("Test2", "Value2");
            report.ReportAlias = "ReportAlias";
            report.ReportName = "ReportName";
            report.ReportAuthor = "ReportAuthor";
            var stiPdfExportSettings = new StiPdfExportSettings {KeywordsString = "Test1; Test2; Test3", PdfACompliance = true};
            StiReportResponse.ResponseAsPdf(this, report, false, stiPdfExportSettings);
1. The custom tags are not added to the PDF.
2. The keywords are added but as a string like "Test1; Test2; Test3"; "Test1; Test2; Test3"

Any ideas?

Regards Joakim



HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

PDF Meta Tags Problem

Post by HighAley »

JockeD wrote:I have a problem adding meta tags to a PDF when I try the following code i have two problems

Code: Select all

     var report = new StiReport();
            report.MetaTags.Add("Test1", "Value1");
            report.MetaTags.Add("Test2", "Value2");
            report.ReportAlias = "ReportAlias";
            report.ReportName = "ReportName";
            report.ReportAuthor = "ReportAuthor";
            var stiPdfExportSettings = new StiPdfExportSettings {KeywordsString = "Test1; Test2; Test3", PdfACompliance = true};
            StiReportResponse.ResponseAsPdf(this, report, false, stiPdfExportSettings);
1. The custom tags are not added to the PDF.
The MetaTags collection is for internal report use only and isn't transmitted anywhere else.
JockeD wrote:2. The keywords are added but as a string like "Test1; Test2; Test3"; "Test1; Test2; Test3"
It's a right behaviour. What are you expecting to get?

Thank you.
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

PDF Meta Tags Problem

Post by JockeD »

Hello,

Thanks for the reply.
1.
Aleksey wrote:The MetaTags collection is for internal report use only and isn't transmitted anywhere else.
I'm sorry I mixed this up with something else, What I'm trying to do is add custom XMP simple value to the PDF, but I realize that it's not supported, right?

2.
Aleksey wrote:It's a right behaviour. What are you expecting to get?
I would expect the string not beeing duplicated and not with the quotationmarks.
So it would be Test1; Test2; Test3 and not "Test1; Test2; Test3"; "Test1; Test2; Test3"

Regards Joakim
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

PDF Meta Tags Problem

Post by Ivan »

Hello,
JockeD wrote:What I'm trying to do is add custom XMP simple value to the PDF, but I realize that it's not supported, right?
Yes.
JockeD wrote:I would expect the string not beeing duplicated and not with the quotationmarks.
So it would be Test1; Test2; Test3 and not "Test1; Test2; Test3"; "Test1; Test2; Test3"
Which version of Adobe Acrobat do you use?

Thank you.
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

PDF Meta Tags Problem

Post by JockeD »

Ivan wrote:Hello,
Which version of Adobe Acrobat do you use?
I'll attach a screen dump.
Please note that if I write a simple string like Test it works as expected.

Regards Joakim
Attachments
1770.Pdf test.png
1770.Pdf test.png (19.98 KiB) Viewed 2543 times
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

PDF Meta Tags Problem

Post by Ivan »

Hello,

The problem is solved.
The patch will be available in the next prerelease build.

Thank you.
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

PDF Meta Tags Problem

Post by JockeD »

Great,

Thank you.
Regards Joakim
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

PDF Meta Tags Problem

Post by Andrew »

Hello,

Great!

Thank you.
Post Reply