Hi,
Hi Suresh,
Sorry for the inconvenience faced.
While using the latest version of Aspose.Pdf for NET 8.2.0, I’ve managed to reproduce this issue on my side and logged the issue in our bug tracking system as PDFNEWNET-35573 for further investigation and resolution. I’ve also linked your request to this issue and you will be notified via this thread as soon as it is resolved.
Please feel free to contact us for any further assistance.
Best Regards,
Hi, Is there any update to this issue? Please let me know.
Hi Suresh,
Hi Suresh,
Thanks for your patience.
In order to correctly add the files to PDF portfolio, please try using the following code snippet.
[C#]
string inPdf1 = "c:/pdftest/3---Offer_shows-zigzags.pdf";
string inPdf2 = "c:/pdftest/GivesBlankImage.pdf";
string inPdf3 = "c:/pdftest/GivesBlankImageOutput_page1.png";
Document pdf = new Document();
pdf.Collection = new Collection();
pdf.Collection.Add(new FileSpecification(inPdf1, "Attachment File 1"));
pdf.Collection.Add(new FileSpecification(inPdf2, "Attachment File 2"));
pdf.Collection.Add(new FileSpecification(inPdf3, "Attachment File 3"));
pdf.Collection.Add(new FileSpecification(inPdf3, "bla1"));
pdf.Collection.Add(new FileSpecification(inPdf3, "bla2"));
pdf.Collection.Add(new FileSpecification(inPdf3, "bla3"));
foreach (FileSpecification fs in pdf.Collection)
{
// { Debug.Writeln(fs.Description); }
}
pdf.Save("c:/pdftest/CorrectPortFolio.pdf");
Please note that with the above code snippet, you will see attachments in the right order, but if you try to see these attachments via Adobe Acrobat, the order will be changed because Acrobat uses default sorting by name.
Hi Nayyer,
The issues you have reported earlier (filed as PDFNEWNET-35573) have been fixed in Aspose.Pdf for .NET 8.4.0.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.