diff options
Diffstat (limited to 'source/pdf/pdf-device.c')
-rw-r--r-- | source/pdf/pdf-device.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/pdf/pdf-device.c b/source/pdf/pdf-device.c index 39c19627..633d9975 100644 --- a/source/pdf/pdf-device.c +++ b/source/pdf/pdf-device.c @@ -1277,6 +1277,14 @@ pdf_dev_free_user(fz_device *dev) fz_free(ctx, pdev); } +static void +pdf_dev_rebind(fz_device *dev) +{ + pdf_device *pdev = dev->user; + + fz_rebind_document((fz_document *)pdev->doc, dev->ctx); +} + fz_device *pdf_new_pdf_device(pdf_document *doc, pdf_obj *contents, pdf_obj *resources, const fz_matrix *ctm) { fz_context *ctx = doc->ctx; @@ -1313,6 +1321,7 @@ fz_device *pdf_new_pdf_device(pdf_document *doc, pdf_obj *contents, pdf_obj *res fz_rethrow(ctx); } + dev->rebind = pdf_dev_rebind; dev->free_user = pdf_dev_free_user; dev->fill_path = pdf_dev_fill_path; |