Free Support Forum -

The example ImageInformation cannot get pic?

<a rel=“nofollow” href=“” style=“border: 0px; outline: 0px; color: rgb(102, 102, 102); text-decoration: none; font-weight: 600; 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-ImageInformation-ImageInformation.cs

string dataDir = RunExamples.GetDataDir_AsposePdf_Images();
Document doc = new Document(dataDir+ “ImageInformation.pdf”);
int defaultResolution = 72;
System.Collections.Stack graphicsState = new System.Collections.Stack();
System.Collections.ArrayList imageNames = new System.Collections.ArrayList(doc.Pages[1].Resources.Images.Names);
graphicsState.Push(new System.Drawing.Drawing2D.Matrix(1, 0, 0, 1, 0, 0));

the above code cannot got anything?
It seems pdf has no picture?

Hello zhu,

Thanks for using our API’s.

Above example is working fine. Please try to run example with valid license.

Best Regards,