After a recent discussion on IRC, it was acknowledged that some form of cairo_pdf_surface_get_filename() might be a viable addition. It'd return the filename that was passed to the constructor, or NULL if no name was supplied. Presumably, this would also be viable for PS, SVG, etc.
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/cairo/cairo/issues/323.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.