Beispiel #1
0
pdf_document *pdf_get_indirect_document(fz_context *ctx, pdf_obj *obj)
{
	if (!OBJ_IS_INDIRECT(obj))
		return NULL;
	return REF(obj)->doc;
}
Beispiel #2
0
int pdf_is_indirect(fz_context *ctx, pdf_obj *obj)
{
	return OBJ_IS_INDIRECT(obj);
}
Beispiel #3
0
int pdf_to_gen(fz_context *ctx, pdf_obj *obj)
{
	if (!OBJ_IS_INDIRECT(obj))
		return 0;
	return REF(obj)->gen;
}
Beispiel #4
0
int pdf_to_num(fz_context *ctx, pdf_obj *obj)
{
	if (OBJ_IS_INDIRECT(obj))
		return REF(obj)->num;
	return 0;
}