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

Free Support Forum - aspose.com

ImagePlacementAbsorber cannot return a result?

Hello,

I tried the <a rel=“nofollow” href=“https://gist.github.com/aspose-pdf/7e1330795d76012fcb04248bb81d45b3#file-examples-csharp-asposepdf-images-imageplacements-imageplacements-cs” style=“border: 0px; outline: 0px; color: rgb(102, 102, 102); text-decoration: none; font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Helvetica, Arial, sans-serif, “Apple Color Emoji”, “Segoe UI Emoji”, “Segoe UI Symbol”; font-size: 12px;”>ImagePlacements example
<a rel=“nofollow” href=“https://gist.github.com/aspose-pdf/7e1330795d76012fcb04248bb81d45b3#file-examples-csharp-asposepdf-images-imageplacements-imageplacements-cs” style=“border: 0px; outline: 0px; color: rgb(102, 102, 102); text-decoration: none; font-family: -apple-system, BlinkMacSystemFont, “Segoe UI”, Helvetica, Arial, sans-serif, “Apple Color Emoji”, “Segoe UI Emoji”, “Segoe UI Symbol”; font-size: 12px;”>Examples-CSharp-AsposePDF-Images-ImagePlacements-ImagePlacements.cs

<table class=“highlight tab-size js-file-line-container” data-tab-size=“8” style=“font-size: 12px; line-height: 1.4; color: rgb(51, 51, 51); clear: left; background: rgb(255, 255, 255); padding: 0px; margin: 0px; font-family: Consolas, “Liberation Mono”, Menlo, Courier, monospace; border: 0px; border-collapse: collapse;”> string dataDir = RunExamples.GetDataDir_AsposePdf_Images(); Aspose.Pdf.Document doc = new Aspose.Pdf.Document(dataDir+ ImagePlacement.pdf); ImagePlacementAbsorber abs = new ImagePlacementAbsorber();
doc.Pages[1].Accept(abs); foreach (ImagePlacement imagePlacement in abs.ImagePlacements)

But at the foreach ,it seems cannot output any string, I guess the abs.ImagePlacements is null?

I use VS2013 and aspose 17.1.0.
Thanks!

Hi Zhu,


Thanks for contacting support.

Can you please share the input file, so that we can test the scenario in our environment. We are sorry for this inconvenience.