PDF Portfolio - Size and Compressed size

Hi,

We are trying to achieve two things with Aspose.PDF (version 20.9.0.0​):​

  1. Set the size for the documents in portfolio
  2. Display “Compressed size” column by default.​


We are not able to achieve that using Aspose.PDF library. Could you let us know:​

  1. If it’s possible to set “Size” property? We can see that FileSpecification.Params.Size property is readonly. Even in your examples, Size is set to 0 bytes:
  1. How to make “Compressed size” property visible by default? In your example it’s visible (Working with Portfolio in PDF|Aspose.PDF for .NET) but when we create the portfolio, it needs to be added everytime the document is open.​


We would very much appreciate help on this.

@bch

Could you kindly provide a sample code snippet along with sample PDF documents that you are using at your side? Also, please share the screenshot of “Compressed Size” and share how you are adding it every time so that we can test the scenario in our environment and address it accordingly.

Hi Asad,

Code sample is very simple:

void Main(string[] args)
{
 	Aspose.Pdf.Document doc = new Aspose.Pdf.Document();	 
	doc.Collection = new Collection();
	 
	FileSpecification file1 = new FileSpecification(@"C:\temp\file1.txt");
	file1.Description = "file1";
	FileSpecification file2 = new FileSpecification(@"C:\temp\file2.png");
	file2.Description = "file2";
	
	doc.Collection.Add(file1);
	doc.Collection.Add(file2);
	 
	doc.Save(@"C:\temp\portfolio.pdf");
}

Input files and ouptut file have been attached here: files.zip (39.8 KB)

In this screenshot I marked the “Compressed size” property I need to add to the view manually: screeshots.zip (53.0 KB)

@bch

We have logged an issue as PDFNET-49796 in our issue tracking system to address your requirements. We will further look into its details and keep you posted with the status of its resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.

Hi Asad,

Any progress on this one?

@bch

The issue has been recently logged in our issue tracking system and we are afraid that it is not yet investigated. It will be analyzed and resolved on a first come first serve basis. We will surely let you know as soon as we have some definite updates regarding issue resolution. Please spare us some time.

We are sorry for the inconvenience.

Hi Asad,

Any progress on this one?

@bch

We are afraid that the earlier logged ticket has not been yet resolved. We will certainly inform you once we make some definite progress towards its resolution. Please be patient and spare us some time.

We are sorry for the inconvenience.

Hi Asad,

Any progress on this one?

@bch

We are afraid that the earlier logged ticket could not get resolved yet. We have however escalated its priority to next level and will surely inform you once we have some updates in this regard.

We apologize for the inconvenience.

Hello Asad. @asad.ali

Our team has the identical issue. Has there been any updates in this regard?

@HSHAPDF

Regretfully, no progress has been made towards this ticket. We have revived it after logging your comments under it and will inform you once we have some updates.