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

Free Support Forum - aspose.com

Display a proper message for PDF Portfolio in browser

Hello,

Pdf portfolio file is showing as a blank page in the browser. We need the capability to show the proper message in browser i.e. For the best experience, open this PDF portfolio in Acrobat X or Adobe Reader X, or later.

Please find the attached screenshot for your reference. Requirement.PNG (70.1 KB)

Thanks,
Saurabh

1 Like

@sranjan50

Can you please share your sample document as well as sample code snippet that you are using? We will test the scenario in our environment and address it accordingly.

Is it related to FastWebView property of the document? If yes then how can we set this value as Yes?

Aspose_Generated_Portfolio_Document.pdf (10.9 KB)
Sample_Screentshots_NotGeneratedFromAspose.pdf (216.1 KB)

  using (Aspose.Pdf.Document doc = new Aspose.Pdf.Document())
            {
                doc.Collection = new Aspose.Pdf.Collection();
                foreach (var fName in selectedFileNames)
                {
                    string ext = Path.GetExtension(fName);
                    if (!ValidateExtesnion(ext))
                    {
                        MessageBox.Show("Not a valid extension file -" + ext);
                    }
                    using (Aspose.Pdf.FileSpecification fileSpecification = new Aspose.Pdf.FileSpecification(fName))
                    {
                        fileSpecification.Description = $"{ext} File";
                        doc.Collection.Add(fileSpecification);
                    }

                }
                doc.Save(outputPDF);
                doc.FreeMemory();
                doc.Collection = null;

            }

@sranjan50

In order to enable Fast Web View, please use Document.Optimize() method before saving the PDF file and let us know in case you still face any issues.

As per @sranjan50 it is related to cover page in pdf portfolio.
Existing Pdf portfolio file when viewed in edge/chrome, is showing cover page.

Where as pdf portfolio generated file having empty cover page and showing blank when viewed in edge/chrome.

Requirement is to how the cover page is added to portfolio pdf

@sranjan50

Can you please share the portfolio PDF generated using non-Aspose program? We will compare it in our environment for testing purposes and log an investigation ticket in our issue tracking system.

portfolio-sample.pdf (3.4 MB)
Attached sample PDF portfolio downloaded from other website
From Acrobatreader --> under menu
View --> Portfolio --> CoverSheet
Select this will give you default CoverSheet
Where as earlier shared pdf portfolio generated using Aspose and shared to you by Saurabh is showing blank

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PDFNET-53600

You can obtain Paid Support services if you need support on a priority basis, along with the direct access to our Paid Support management team.