Page 1 of 1

PDF Meta Tags Problem

Posted: Tue Apr 03, 2012 3:52 pm
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




PDF Meta Tags Problem

Posted: Fri Apr 06, 2012 3:40 am
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.

PDF Meta Tags Problem

Posted: Mon Apr 09, 2012 7:22 am
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

PDF Meta Tags Problem

Posted: Tue Apr 10, 2012 6:25 pm
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.

PDF Meta Tags Problem

Posted: Wed Apr 11, 2012 11:53 am
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

PDF Meta Tags Problem

Posted: Thu Apr 12, 2012 2:48 am
by Ivan
Hello,

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

Thank you.

PDF Meta Tags Problem

Posted: Thu Apr 12, 2012 1:35 pm
by JockeD
Great,

Thank you.
Regards Joakim

PDF Meta Tags Problem

Posted: Mon Apr 16, 2012 1:43 am
by Andrew
Hello,

Great!

Thank you.