If you look at src/extension/internal/pdfinput/pdf-parser.cpp, line 1241:
void PdfParser::opRectangle(Object args[], int numArgs) {
double x, y, w, h;
x = args[0].getNum();
y = args[1].getNum();
w = args[2].getNum();
h = args[3].getNum();
state->moveTo(x, y); <-- HERE
state->lineTo(x + w, y);
state->lineTo(x + w, y + h);
state->lineTo(x, y + h);
state->closePath();
}
It looks like 'state' is null when state->moveTo(x,y) is called.
If you look at src/extension/ internal/ pdfinput/ pdf-parser. cpp, line 1241:
void PdfParser: :opRectangle( Object args[], int numArgs) {
double x, y, w, h;
x = args[0].getNum(); >closePath( );
y = args[1].getNum();
w = args[2].getNum();
h = args[3].getNum();
state->moveTo(x, y); <-- HERE
state->lineTo(x + w, y);
state->lineTo(x + w, y + h);
state->lineTo(x, y + h);
state-
}
It looks like 'state' is null when state->moveTo(x,y) is called.