Title: [Doc]: Multipage PDF: unclear which backend supports and which does not support attach_note() · Issue #29428 · matplotlib/matplotlib · GitHub
Open Graph Title: [Doc]: Multipage PDF: unclear which backend supports and which does not support attach_note() · Issue #29428 · matplotlib/matplotlib
X Title: [Doc]: Multipage PDF: unclear which backend supports and which does not support attach_note() · Issue #29428 · matplotlib/matplotlib
Description: Documentation Link https://matplotlib.org/stable/gallery/misc/multipage_pdf.html Problem The issue is in the first two paragraphs of the page. This is a demo of creating a pdf file with several pages, as well as adding metadata and annot...
Open Graph Description: Documentation Link https://matplotlib.org/stable/gallery/misc/multipage_pdf.html Problem The issue is in the first two paragraphs of the page. This is a demo of creating a pdf file with several pag...
X Description: Documentation Link https://matplotlib.org/stable/gallery/misc/multipage_pdf.html Problem The issue is in the first two paragraphs of the page. This is a demo of creating a pdf file with several pag...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/29428
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Doc]: Multipage PDF: unclear which backend supports and which does not support attach_note()","articleBody":"### Documentation Link\n\nhttps://matplotlib.org/stable/gallery/misc/multipage_pdf.html\n\n### Problem\n\nThe issue is in the first two paragraphs of the page.\r\n\r\n\u003e This is a demo of creating a pdf file with several pages, as well as adding metadata and annotations to pdf files.\r\n\u003e \r\n\u003e If you want to use a multipage pdf file using LaTeX, you need to use from matplotlib.backends.backend_pgf import PdfPages. This version however does not support [attach_note](https://matplotlib.org/stable/api/backend_pdf_api.html#matplotlib.backends.backend_pdf.PdfPages.attach_note).\r\n\r\nReading, it is unclear whether \"this\" in the last sentence refers to `pdf` backend (as suggested by it being on the page for it) or `pgf` (as suggested by it being in the paragraph about `pgf`).\r\n\r\nOnly after clickking on the hyperlinked `attach_note` do I have to notice that it is a documentation page for a specific backend (which isn't obvious, being sent to an anchor in the middle of the document without header visible). From there, seeing that `pdf` has `attach_note()` I can infer that `pgf` doesn't. That string of logic is quite long for something that should have been clearly stated.\n\n### Suggested improvement\n\nChange \"this\" to \"that\" in the last quoted sentence would probably make it clearer it is referring to the backend *not* used in the example. Or perhaps a different change in wording.","author":{"url":"https://github.com/jaskij","@type":"Person","name":"jaskij"},"datePublished":"2025-01-07T20:41:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/29428/matplotlib/issues/29428"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3b6d0dd3-d533-9ae0-37a6-205355c2a868 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B156:24C5C6:1660B0E:1DB849E:6A51C06F |
| html-safe-nonce | f640ca14c19c4b1ea9dd062a6f2383242a340459499a15548267ee925d893b23 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTU2OjI0QzVDNjoxNjYwQjBFOjFEQjg0OUU6NkE1MUMwNkYiLCJ2aXNpdG9yX2lkIjoiMTg3MTAzOTM4MTE1MTc5MzI2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d04040e9113777ffa19b78c6564d9d81821f04c82de6aef13fe270624c43e721 |
| hovercard-subject-tag | issue:2773698031 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/29428/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b135db2a920db0ed50413eeb190c39748a448cbc26dbedc5c3384c90b1ebd368/matplotlib/matplotlib/issues/29428 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b135db2a920db0ed50413eeb190c39748a448cbc26dbedc5c3384c90b1ebd368/matplotlib/matplotlib/issues/29428 |
| og:image:alt | Documentation Link https://matplotlib.org/stable/gallery/misc/multipage_pdf.html Problem The issue is in the first two paragraphs of the page. This is a demo of creating a pdf file with several pag... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jaskij |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width