Hi,
After opening a Pdf with the Document class, I find that it contains a single embedded file with most of its properties set to null.
2024-05-17 11_16_38-Clipboard.png (14.2 KB)
This doesn’t seem quite right to me. Can you confirm?
Hi,
After opening a Pdf with the Document class, I find that it contains a single embedded file with most of its properties set to null.
2024-05-17 11_16_38-Clipboard.png (14.2 KB)
This doesn’t seem quite right to me. Can you confirm?
Would you kindly share your sample PDF as well as the code snippet in text format that you are using to check the file properties? We will test the scenario in our environment and address it accordingly.
@asad.ali
Sorry for my late reply, the code is the following:
byte[] content = input.Content;
using (var doc = new AsposePdf.Document(new MemoryStream(content), true))
{
using (var ms = new MemoryStream())
{
AsposePdf.FileSpecification attachment =
doc.EmbeddedFiles?.FirstOrDefault(fileSpecs => fileSpecs?.Name != null &&
fileSpecs.Name.Equals(name, StringComparison.OrdinalIgnoreCase));
...
Unfortunately, the PDF that had the problem is our customer’s and we’re not at liberty to share it…
We assure you that we do not disclose your files with any one. We only use them for testing and investigation purposes and once its done, we remove them from our system. Additionally, you can also share the file via private message. You can please click on the username and press the Blue Message button to send a message.