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

Free Support Forum - aspose.com

PDF conversion to any format drops linked images

Hello,

The attached PDF has 3 images along the top. After conversion (to any format, xps, tiff, etc.) only the right most image is shown.

Here is the code used for conversion:
var pdfDocument = new Document(ms);

// Create Resolution object
Resolution resolution = new Resolution(300);

// Create TiffSettings object
TiffSettings tiffSettings = new TiffSettings
{
Compression = CompressionType.None,
Depth = ColorDepth.Default,
SkipBlankPages = false
};

// Create TIFF device
TiffDevice tiffDevice = new TiffDevice(resolution, tiffSettings);

// Convert a particular page and save the image to stream
var tiffStream = new MemoryStream();
tiffDevice.Process(pdfDocument, tiffStream);

Image img = Image.FromStream(tiffStream);

try{pdfDocument.Save(“test.xps”, SaveFormat.Xps);}catch{}
try{pdfDocument.Save(“test.svg”, SaveFormat.Svg);}catch{}
try{pdfDocument.Save(“test.doc”, SaveFormat.Doc);}catch{}
try{pdfDocument.Save(“test.docx”, SaveFormat.DocX);}catch{}
try{pdfDocument.Save(“test.epub”, SaveFormat.Epub);}catch{}
try{pdfDocument.Save(“test.xls”, SaveFormat.Excel);}catch{}
try{pdfDocument.Save(“test.html”, SaveFormat.Html);}catch{}
try{pdfDocument.Save(“test.xml”, SaveFormat.MobiXml);}catch{}
try{pdfDocument.Save(“test.tex”, SaveFormat.TeX);}catch{}
try { pdfDocument.Save(“test2.xml”, SaveFormat.Xml); }catch { }


These all produce the same results with the images missing.
I am using version 9.8 but I’ve downloaded and tested the same scenario on the latest version and the issue is the same.

Hi Charles,

Thanks for your inquiry. I have tested the scenario with shared document using Aspose.Pdf for .NET 11.2.0 and managed to observe the missing images issue. For further investigation, I have logged an issue in our issue tracking system as PDFNEWNET-40176 and also linked your request to it. We will keep you updated via this thread regarding the issue status.

We are sorry for the inconvenience caused.

<span style=“font-size:10.0pt;line-height:115%;font-family:“Arial”,“sans-serif”;
mso-fareast-font-family:Calibri;color:#333333;mso-ansi-language:EN-US;
mso-fareast-language:EN-US;mso-bidi-language:AR-SA”>Best Regards,