Hi,
I am trying to get a report on color spaces used in a pdf, but it is always returning 0 ColorSpaces
What am I doing wrong?
Here is my code
public class ResImportedPageArea : ImportedPageArea
{
public ResImportedPageArea(PdfPage pdfPage, float x, float y, float scale) : base(pdfPage, x, y, scale)
{
}
public ResImportedPageArea(string filePath, int pageNumber, float x, float y, float scale) : base(filePath, pageNumber, x, y, scale)
{
}
public override void Draw(PageWriter writer)
{
var spaces = writer.Resources.ColorSpaces;
base.Draw(writer);
}
}