Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/source/pdf/pdf-form.c @ 40:aa33339d6b8a upstream
ADD: MuPDF v1.26.10: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.5.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 11 Oct 2025 11:31:38 +0200 |
| parents | b50eed0cc0ef |
| children |
comparison
equal
deleted
inserted
replaced
| 39:a6bc019ac0b2 | 40:aa33339d6b8a |
|---|---|
| 2405 if (pdf_array_len(ctx, annots) == 0) | 2405 if (pdf_array_len(ctx, annots) == 0) |
| 2406 return; | 2406 return; |
| 2407 | 2407 |
| 2408 res = pdf_dict_get(ctx, page, PDF_NAME(Resources)); | 2408 res = pdf_dict_get(ctx, page, PDF_NAME(Resources)); |
| 2409 if (!res) | 2409 if (!res) |
| 2410 res = pdf_dict_put_dict(ctx, page, PDF_NAME(Resources), 4); | 2410 { |
| 2411 res = pdf_dict_get_inheritable(ctx, page, PDF_NAME(Resources)); | |
| 2412 if (res) | |
| 2413 pdf_dict_put(ctx, page, PDF_NAME(Resources), res); | |
| 2414 else | |
| 2415 res = pdf_dict_put_dict(ctx, page, PDF_NAME(Resources), 4); | |
| 2416 } | |
| 2411 | 2417 |
| 2412 res_xobj = pdf_dict_get(ctx, res, PDF_NAME(XObject)); | 2418 res_xobj = pdf_dict_get(ctx, res, PDF_NAME(XObject)); |
| 2413 if (!res_xobj) | 2419 if (!res_xobj) |
| 2414 res_xobj = pdf_dict_put_dict(ctx, res, PDF_NAME(XObject), 8); | 2420 res_xobj = pdf_dict_put_dict(ctx, res, PDF_NAME(XObject), 8); |
| 2415 | 2421 |
