We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

PDF Portfolio - default visible properties

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 https://github.com/aspose-pdf/Aspose.PDF-for-.NET
// 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:

  1. 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)
  2. creating own custom properties and displaying them by default

Aspose.PDF version - 21.5.0.0

Thanks in advance!

@bch

Could you please ZIP and attach your input files (Word, Excel and PDF), problematic and expected output PDF files here for testing? We will investigate the issue and provide you more information on it.

Hi @tahir.manzoor, please find attached files here: files.zip (305.0 KB)

As for the expected PDF - I attached the output PDF “CreatePDFPortfolio_out.pdf” but the actual issue is that I cannot set what I want - it has been described earlier.

Thanks.

@bch

We have logged this problem in our issue tracking system as PDFJAVA-41188. You will be notified via this forum thread once there is an update available on it. We apologize for your inconvenience.