In case you are still experiencing any further difficulties, it would be greatly appreciated if you can specify more details about the specific case and how to reproduce it locally.
Thank you in advance for your cooperation.
Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
I have successfully exported pdf using pdfexporter from radgridview.
When I open pdf in any viewer and view its properties, there is a metadata (like author, title, description) called Creator and its value is "Telerik PdfProcessing". I want to change or remove this property
Dess | Tech Support Engineer, Principal
Telerik team
commented on 08 Dec 2022, 11:26 AM
Hello, Maninder,
The GridViewPdfExport object utilizes the powerful RadPdfProcessing library and exports RadGridView`s data natively to the PDF format. That is why the document info may state that Telerik RadSpreadProcessing has created the exported file. Note that once the pdf document is generated, you can use the output file and load it with the help of RadPdfProcessing where you can specify the RadFixedDocument.DocumentInfo according to your needs:
Telerik.WinControls.Export.GridViewPdfExport pdfExporter = new Telerik.WinControls.Export.GridViewPdfExport(this.radGridView1);
pdfExporter.FileExtension = "pdf";
string fileName = @"..\..\ExportedData" + DateTime.Now.ToLongTimeString().Replace(":", "_") + ".pdf";
pdfExporter.RunExport(fileName, new Telerik.WinControls.Export.PdfExportRenderer());
PdfFormatProvider provider = new PdfFormatProvider();
using (Stream stream = File.OpenRead(fileName))
{
RadFixedDocument document = provider.Import(stream);
document.DocumentInfo.Author = "My author";
document.DocumentInfo.Description = "My description";
document.DocumentInfo.Title = "My title";
using (Stream output = File.OpenWrite(@"..\..\output.pdf"))
{
provider.Export(document, output);
}
}