Hi,
When creating a PDF portfolio, is there a way to set the properties that are visible by default? I cannot see this option anywhere in the code.
Code:
void Main()
{
// For complete examples and data files, please go to GitHub - aspose-pdf/Aspose.PDF-for-.NET: Aspose.PDF for .NET examples, plugins and showcase projects
// The path to the documents directory.
string dataDir = @"C:\mja\20200930";// Instantiate Document Object
Document doc = new Document();// Instantiate document Collection object
doc.Collection = new Collection();// Get Files to add to Portfolio
FileSpecification excel = new FileSpecification( dataDir + “excel.xlsx”);
FileSpecification word = new FileSpecification( dataDir + “word.docx”);
FileSpecification pdf = new FileSpecification(dataDir + “set_menu_230_z_wrzesien_2020.pdf”);// Provide description of the files
excel.Description = “Excel File”;
word.Description = “Word File”;
pdf.Description = “PDF File”;// Add files to document collection
doc.Collection.Add(excel);
doc.Collection.Add(word);
doc.Collection.Add(pdf);// Save Portfolio document
doc.Save(dataDir + “CreatePDFPortfolio_out.pdf”);
}// Define other methods and classes here
I would like to achieve:
- setting columns to “predefined ones” - please see the attached screenshot. It is possible to set manually after the portfolio has been created and opened.
pdf_portfolio_properties.png (11.2 KB) - creating own custom properties and displaying them by default
Aspose.PDF version - 21.5.0.0
Thanks in advance!