void pdf_clear_annot_vertices(fz_context *ctx, pdf_annot *annot)
{
- pdf_annot_push_local_xref(ctx, annot);
+ begin_annot_op(ctx, annot, "Clear vertices");
fz_try(ctx)
{
pdf_dict_del(ctx, annot->obj, PDF_NAME(Vertices));
}
fz_always(ctx)
- pdf_annot_pop_local_xref(ctx, annot);
+ end_annot_op(ctx, annot);
fz_catch(ctx)
fz_rethrow(ctx);
void
pdf_clear_annot_ink_list(fz_context *ctx, pdf_annot *annot)
{
- pdf_annot_push_local_xref(ctx, annot);
+ begin_annot_op(ctx, annot, "Clear ink list");
fz_try(ctx)
pdf_dict_del(ctx, annot->obj, PDF_NAME(InkList));
fz_always(ctx)
- pdf_annot_pop_local_xref(ctx, annot);
+ end_annot_op(ctx, annot);
fz_catch(ctx)
fz_rethrow(ctx);