Generating Vector PDFs with Cairo’s PDF Surface Backend
Learn how to create vector PDFs with Cairo’s PDF surface backend, see a minimal C example, and understand font, transparency, and version trade‑offs.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Learn how to create vector PDFs with Cairo’s PDF surface backend, see a minimal C example, and understand font, transparency, and version trade‑offs.
Goal Pass a reference to a Crystal object into a C library callback so the C side can retain and later invoke it, while the Crystal process uses the default Boehm conservative garbage collector. Constraint The Boehm GC does not automatically treat pointers stored in C memory as roots, and Crystal's FFI documentation does not clearly specify a supported API f