Hi,
we are use this version Aspose.Zip 22.10.0.
When I package a PDF file, it gets cut off.
So I get an error when I try to pen a file from an archive.
PDF files up to 5mb work correctly.
Examle
using (FileStream zipFile = File.Open(dataDir + “CompressWithTraditionalEncryption_out.zip”, FileMode.Create))
{
using (FileStream file1 = File.Open(dataDir + “1.pdf”, FileMode.Open, FileAccess.Read))
{
using (var archive = new Archive(new ArchiveEntrySettings(null, new TraditionalEncryptionSettings(“test”))))
{
archive.CreateEntry(“1.pdf”, file1);
archive.Save(zipFile);
}
}
}