{
  "id": "task_libraries:pdf/ruby",
  "path": "/exapedia/ruby-pdf-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "Ruby PDF libraries",
  "answer": [
    {
      "t": "text",
      "text": "Ruby PDF libraries generate, read, and modify PDF documents from Ruby code. A generator either draws pages with its own layout commands or converts HTML through an external renderer such as wkhtmltopdf. These libraries let Rails apps, billing systems, and reporting jobs produce invoices, reports, and forms as PDF files."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "Ruby PDF libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pdf-reader",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F248"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#prawn",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F261"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#wicked-pdf",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F275"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F279"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F277"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#combinepdf",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F294"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F295"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F301"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F298"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F296"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pdfkit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F311"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F312"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F320"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F315"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F313"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pdf-inspector",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F330"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F331"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F339"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F334"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F332"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#hexapdf",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F346"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F347"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F353"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F350"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F348"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pdf-forms",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F365"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F366"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F374"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F369"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F367"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "RubyGems"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#pdf-reader",
          "label": [
            {
              "t": "text",
              "text": "PDF::Reader"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F245"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Existing PDF input",
            "Browser HTML to PDF"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#pdf-reader",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F244"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#prawn",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F261"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F269"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F270"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#wicked-pdf",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F275"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F286"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#combinepdf",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F294"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F302"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F303"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pdfkit",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F311"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F321"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F322"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pdf-inspector",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F330"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F340"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F341"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#hexapdf",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F346"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F354"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F355"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#pdf-forms",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F365"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F375"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F376"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "pdf-reader",
          "name": [
            {
              "t": "fact",
              "fact": "F244"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/yob/pdf-reader"
            },
            {
              "label": "RubyGems",
              "href": "https://rubygems.org/gems/pdf-reader"
            },
            {
              "label": "Docs",
              "href": "https://www.rubydoc.info/gems/pdf-reader/2.16.0"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F93"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F251"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.rubydoc.info/gems/pdf-reader/2.16.0",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F96"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F97"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F98"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F99"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/huginn/huginn",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F259"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "ruby",
              "code": "def check_url(in_url, payload)\n      return unless in_url.present?\n\n      Array(in_url).each do |url|\n        uri = URI(url) rescue nil\n        unless uri.is_a?(URI::HTTP)\n          error \"Unsupported URL: #{url}\"\n          next\n        end\n\n        log \"Fetching #{url}\"\n        response = faraday.get(url)\n        reader = PDF::Reader.new(StringIO.new(response.body))\n\n        info = reader.info.to_h { |key, value|\n          [key.to_s, decode_pdf_date(value) || value]\n        }\n        info[\"Pages\"] = reader.page_count.to_s\n        if (page = reader.pages.first)\n          info[\"Page size\"] = \"#{page.width} x #{page.height} pts\"\n        end\n        info[\"PDF version\"] = reader.pdf_version.to_s\n\n        create_event payload: info.merge(payload)\n      end\n    end",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/huginn/huginn/blob/639c050b2bf4e14ef9983012af99dfc1dc68b334/app/models/agents/pdf_info_agent.rb#L61-L86",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Ruby%20applications%20using%20pdf-reader%20for%20PDF%20report%20layouts%20form%20filling%20metadata%20extraction%20and%20document%20merging&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F244"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "ruby",
              "code": "require \"pdf/reader\"\n\nreader = PDF::Reader.new(\"input.pdf\")\nputs reader.page_count\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/yob/pdf-reader",
                  "label": [
                    {
                      "t": "text",
                      "text": "pdf-reader.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F249"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "prawn",
          "name": [
            {
              "t": "fact",
              "fact": "F261"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/prawnpdf/prawn"
            },
            {
              "label": "RubyGems",
              "href": "https://rubygems.org/gems/prawn"
            },
            {
              "label": "Docs",
              "href": "https://prawnpdf.org/docs/prawn/2.5.0/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F40"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F264"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F263"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://prawnpdf.org/docs/prawn/2.5.0/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F261"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "ruby",
              "code": "require \"prawn\"\n\nPrawn::Document.generate(\"hello.pdf\") do |pdf|\n  pdf.text \"Hello World!\"\nend\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/prawnpdf/prawn",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Ruby%20applications%20using%20prawn%20for%20PDF%20report%20layouts%20form%20filling%20metadata%20extraction%20and%20document%20merging&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F261"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F266"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "wicked-pdf",
          "name": [
            {
              "t": "fact",
              "fact": "F275"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/mileszs/wicked_pdf"
            },
            {
              "label": "RubyGems",
              "href": "https://rubygems.org/gems/wicked_pdf"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F282"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F276"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F277"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/mileszs/wicked_pdf",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F275"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F292"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F293"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/vteams/open-source-billing",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F292"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "ruby",
              "code": "def notify_client_with_pdf_invoice_attachment(current_user, id = nil)\n    invoice_string  = ApplicationController.new.render_to_string('invoices/show.html.erb', layout: 'pdf_mode', locals: {invoice: self})\n    invoice_pdf_file = WickedPdf.new.pdf_from_string(invoice_string)\n    notify(current_user, self.id, invoice_pdf_file)\n  end",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/vteams/open-source-billing/blob/61cd6edfd224200b2d10ac1ac613444e96d5769a/app/models/invoice.rb#L292-L296",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F291"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=wicked_pdf%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F275"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "ruby",
              "code": "require \"wicked_pdf\"\n\npdf = WickedPdf.new.pdf_from_string(\"<h1>Hello World!</h1>\")\nFile.binwrite(\"hello.pdf\", pdf)\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/mileszs/wicked_pdf",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F280"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "combinepdf",
          "name": [
            {
              "t": "fact",
              "fact": "F294"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/boazsegev/combine_pdf"
            },
            {
              "label": "RubyGems",
              "href": "https://rubygems.org/gems/combine_pdf"
            },
            {
              "label": "Docs",
              "href": "https://www.rubydoc.info/gems/combine_pdf/1.0.31"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F146"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F295"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F301"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F297"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F296"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.rubydoc.info/gems/combine_pdf/1.0.31",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F294"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F147"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F148"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F149"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F150"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F153"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F309"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F310"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/openfoodfoundation/openfoodnetwork",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F309"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "ruby",
              "code": "def generate_invoice(order)\n    renderer_data = if OpenFoodNetwork::FeatureToggle.enabled?(:invoices, current_user)\n                      Orders::GenerateInvoiceService.new(order).generate_or_update_latest_invoice\n                      order.invoices.first.presenter\n                    else\n                      order\n                    end\n    invoice = renderer.render_to_string(renderer_data, current_user)\n    pdf << CombinePDF.parse(invoice)\n  end",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/openfoodfoundation/openfoodnetwork/blob/a1bc64fc67356a06808558635e442a7d77c38ae0/app/jobs/bulk_invoice_job.rb#L30-L39",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F308"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Ruby%20applications%20using%20combine_pdf%20for%20PDF%20report%20layouts%20form%20filling%20metadata%20extraction%20and%20document%20merging&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F294"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "ruby",
              "code": "require \"combine_pdf\"\n\npdf = CombinePDF.load(\"input.pdf\")\npdf.save(\"output.pdf\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/boazsegev/combine_pdf",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F299"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pdfkit",
          "name": [
            {
              "t": "fact",
              "fact": "F311"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/pdfkit/pdfkit"
            },
            {
              "label": "RubyGems",
              "href": "https://rubygems.org/gems/pdfkit"
            },
            {
              "label": "Docs",
              "href": "https://www.rubydoc.info/gems/pdfkit/0.8.7.3"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F318"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F312"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F320"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F314"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F313"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.rubydoc.info/gems/pdfkit/0.8.7.3",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F311"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F328"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F329"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/binford2k/showoff",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F328"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "ruby",
              "code": "def pdf(name)\n      @slides = get_slides_html(:static=>true, :toc=>true, :print=>true)\n      @inline = true\n\n      html = erb :onepage\n\n      # Process inline css and js for included images\n      # The css uses relative paths for images and we prepend the file url\n      html.gsub!(/url\\([\\\"\\']?(?!https?:\\/\\/)(.*?)[\\\"\\']?\\)/) do |s|\n        \"url(file://#{settings.pres_dir}/#{$1})\"\n      end\n\n      # remove the weird /files component, since that doesn't exist on the filesystem\n      # replace it for file://<PATH> for correct use with wkhtmltopdf (exactly with qt-webkit)\n      html.gsub!(/<img src=\".\\/file\\/([^\"]*)/) do |s|\n        \"<img src=\\\"file:\\/\\/#{settings.pres_dir}\\/#{$1}\"\n      end\n\n      # PDFKit.new takes the HTML and any options for wkhtmltopdf\n      # run `wkhtmltopdf --extended-help` for a full list of options\n      kit = PDFKit.new(html, ShowoffUtils.showoff_pdf_options(settings.pres_dir))\n\n      # Save the PDF to a file\n      kit.to_file(name)\n    end",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/binford2k/showoff/blob/8c06a49deb8ea788ca509b7d13806c26d449f874/lib/showoff.rb#L1447-L1471",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F327"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pdfkit%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F311"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "ruby",
              "code": "require \"pdfkit\"\n\nkit = PDFKit.new(\"<h1>Hello World!</h1>\")\nkit.to_file(\"hello.pdf\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/pdfkit/pdfkit",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F316"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pdf-inspector",
          "name": [
            {
              "t": "fact",
              "fact": "F330"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/prawnpdf/pdf-inspector"
            },
            {
              "label": "RubyGems",
              "href": "https://rubygems.org/gems/pdf-inspector"
            },
            {
              "label": "Docs",
              "href": "https://www.rubydoc.info/gems/pdf-inspector/1.3.0"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F337"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F331"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F339"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F333"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F332"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.rubydoc.info/gems/pdf-inspector/1.3.0",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F330"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "ruby",
              "code": "require \"pdf/inspector\"\n\nanalysis = PDF::Inspector::Text.analyze(File.binread(\"input.pdf\"))\np analysis.strings\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/prawnpdf/pdf-inspector",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pdf-inspector%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F330"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F335"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "hexapdf",
          "name": [
            {
              "t": "fact",
              "fact": "F346"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/gettalong/hexapdf"
            },
            {
              "label": "RubyGems",
              "href": "https://rubygems.org/gems/hexapdf"
            },
            {
              "label": "Docs",
              "href": "http://hexapdf.gettalong.org/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F204"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F347"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F353"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F349"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F348"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "http://hexapdf.gettalong.org/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F346"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F205"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F206"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F209"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F363"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F364"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/decidim/decidim",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F363"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "ruby",
              "code": "def signed_pdf\n      signed_file = Tempfile.new(\"signed_pdf\")\n\n      doc = HexaPDF::Document.new(io: StringIO.new(pdf))\n\n      # Prepare the document for embedding of the digital signature\n      data = nil # Used for storing the to-be-signed data\n      signing_mechanism = lambda do |io, byte_range|\n        # Store the to-be-signed data in the local variable data\n        io.pos = byte_range[0]\n        data = io.read(byte_range[1])\n        io.pos = byte_range[2]\n        data << io.read(byte_range[3])\n        \"\"\n      end\n      doc.sign(signed_file.path, signature: signature_widget(doc), reason: caption, signature_size: 10_000, external_signing: signing_mechanism)\n\n      signature = OpenSSL::PKCS7.sign(certificate, key, data,\n                                      # [HexaPDF.demo_cert.sub_ca, HexaPDF.demo_cert.root_ca],\n                                      [],\n                                      OpenSSL::PKCS7::DETACHED | OpenSSL::PKCS7::BINARY).to_der\n\n      # Embed the signature\n      HexaPDF::DigitalSignature::Signing.embed_signature(File.open(signed_file.path, \"rb+\"), signature)\n\n      File.binread(signed_file.path)\n    ensure\n      signed_file.close\n      signed_file.unlink\n    end",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/decidim/decidim/blob/4f1760c5884e5bf2beb82a05bf467bf5ffe5d0b2/decidim-core/lib/decidim/pdf_signature_example.rb#L18-L47",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F362"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=Ruby%20applications%20using%20hexapdf%20for%20PDF%20report%20layouts%20form%20filling%20metadata%20extraction%20and%20document%20merging&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F346"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "ruby",
              "code": "require \"hexapdf\"\n\ndoc = HexaPDF::Document.new\ncanvas = doc.pages.add.canvas\ncanvas.font(\"Helvetica\", size: 100)\ncanvas.text(\"Hello World!\", at: [20, 400])\ndoc.write(\"hello.pdf\")\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/gettalong/hexapdf",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F351"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "pdf-forms",
          "name": [
            {
              "t": "fact",
              "fact": "F365"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/jkraemer/pdf-forms"
            },
            {
              "label": "RubyGems",
              "href": "https://rubygems.org/gems/pdf-forms"
            },
            {
              "label": "Docs",
              "href": "https://www.rubydoc.info/gems/pdf-forms/1.5.2"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F372"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F366"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F374"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F368"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F367"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://www.rubydoc.info/gems/pdf-forms/1.5.2",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F365"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [],
          "cons": [],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F382"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F383"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/abntex/limarka",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F382"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "ruby",
              "code": "def exporta\n      configuracao_pdf  = \"configuracao.pdf\"\n      configuracao_yaml = \"configuracao.yaml\"\n      Dir.chdir(options[:input_dir]) do\n        raise IOError, \"Arquivo não encontrado: #{options[:input_dir]}/\" + configuracao_pdf unless File.exist? (configuracao_pdf)\n        pdf = PdfForms::Pdf.new configuracao_pdf, (PdfForms.new 'pdftk'), utf8_fields: true\n        pdfconf = Limarka::Pdfconf.new(pdf: pdf)\n\n        # exporta sem validação\n        h = pdfconf.exporta(false)\n\n        target_file = options[:output_dir]+'/'+configuracao_yaml\n        puts \"Sobrescrevendo #{target_file}\".green if File.exist?(target_file)\n        Limarka::Trabalho.save_yaml(h, target_file)\n      end\n    end",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/abntex/limarka/blob/95a786454f8e3db9db284ee9d4927a8c2c2f0aed/lib/limarka/configuracao.rb#L19-L34",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F381"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=pdf-forms%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F365"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "ruby",
              "code": "require \"pdf_forms\"\n\npdftk = PdfForms.new(\"pdftk\")\npdftk.fill_form(\"input.pdf\", \"output.pdf\", {\"foo\" => \"bar\"})\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/jkraemer/pdf-forms",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F370"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which Ruby PDF library should I use?",
      "a": [
        {
          "t": "link",
          "href": "#prawn",
          "label": [
            {
              "t": "text",
              "text": "Prawn"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits PDFs drawn from Ruby with vector shapes, flowing text, and embedded fonts. "
        },
        {
          "t": "link",
          "href": "#wicked-pdf",
          "label": [
            {
              "t": "text",
              "text": "Wicked PDF"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits PDFs rendered from HTML through wkhtmltopdf. "
        },
        {
          "t": "link",
          "href": "#pdf-reader",
          "label": [
            {
              "t": "text",
              "text": "PDF::Reader"
            }
          ]
        },
        {
          "t": "text",
          "text": " suits reading text and metadata from existing PDFs."
        }
      ]
    },
    {
      "q": "What is Wicked PDF?",
      "a": [
        {
          "t": "link",
          "href": "#wicked-pdf",
          "label": [
            {
              "t": "text",
              "text": "Wicked PDF"
            }
          ]
        },
        {
          "t": "text",
          "text": " uses the wkhtmltopdf shell utility to serve a PDF file generated from HTML."
        }
      ]
    },
    {
      "q": "Can Prawn convert HTML to PDF?",
      "a": [
        {
          "t": "text",
          "text": "No. "
        },
        {
          "t": "link",
          "href": "#prawn",
          "label": [
            {
              "t": "text",
              "text": "Prawn"
            }
          ]
        },
        {
          "t": "text",
          "text": " cannot convert full HTML pages. Those need a browser renderer or an HTML-based tool such as "
        },
        {
          "t": "link",
          "href": "#wicked-pdf",
          "label": [
            {
              "t": "text",
              "text": "Wicked PDF"
            }
          ]
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "q": "How do I merge PDFs in Ruby?",
      "a": [
        {
          "t": "link",
          "href": "#combinepdf",
          "label": [
            {
              "t": "text",
              "text": "combine_pdf"
            }
          ]
        },
        {
          "t": "text",
          "text": " appends complete PDFs or selected pages. Its original maintenance has stopped."
        }
      ]
    },
    {
      "q": "How do I fill PDF forms in Ruby?",
      "a": [
        {
          "t": "link",
          "href": "#hexapdf",
          "label": [
            {
              "t": "text",
              "text": "HexaPDF"
            }
          ]
        },
        {
          "t": "text",
          "text": " assigns values to AcroForm fields from a data hash. "
        },
        {
          "t": "link",
          "href": "#pdf-forms",
          "label": [
            {
              "t": "text",
              "text": "pdf-forms"
            }
          ]
        },
        {
          "t": "text",
          "text": " fills templates through the pdftk binary."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, prawn",
      "display": "Prawn",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Daily downloads, prawn, 2026-10-18",
      "display": "27743",
      "asOf": "2026-10-18"
    },
    "F3": {
      "label": "Daily downloads, prawn, 2026-10-19",
      "display": "78839",
      "asOf": "2026-10-19"
    },
    "F4": {
      "label": "Daily downloads, prawn, 2026-10-20",
      "display": "114205",
      "asOf": "2026-10-20"
    },
    "F5": {
      "label": "Daily downloads, prawn, 2026-10-21",
      "display": "122581",
      "asOf": "2026-10-21"
    },
    "F6": {
      "label": "Daily downloads, prawn, 2026-10-22",
      "display": "339139",
      "asOf": "2026-10-22"
    },
    "F7": {
      "label": "Daily downloads, prawn, 2026-10-23",
      "display": "128828",
      "asOf": "2026-10-23"
    },
    "F8": {
      "label": "Daily downloads, prawn, 2026-10-24",
      "display": "71541",
      "asOf": "2026-10-24"
    },
    "F9": {
      "label": "Daily downloads, prawn, 2026-10-25",
      "display": "31907",
      "asOf": "2026-10-25"
    },
    "F10": {
      "label": "Daily downloads, prawn, 2026-10-26",
      "display": "83688",
      "asOf": "2026-10-26"
    },
    "F11": {
      "label": "Daily downloads, prawn, 2026-10-27",
      "display": "130104",
      "asOf": "2026-10-27"
    },
    "F12": {
      "label": "Daily downloads, prawn, 2026-10-28",
      "display": "123404",
      "asOf": "2026-10-28"
    },
    "F13": {
      "label": "Daily downloads, prawn, 2026-10-29",
      "display": "123889",
      "asOf": "2026-10-29"
    },
    "F14": {
      "label": "Daily downloads, prawn, 2026-10-30",
      "display": "118574",
      "asOf": "2026-10-30"
    },
    "F15": {
      "label": "Daily downloads, prawn, 2026-10-31",
      "display": "66006",
      "asOf": "2026-10-31"
    },
    "F16": {
      "label": "Daily downloads, prawn, 2026-11-01",
      "display": "34245",
      "asOf": "2026-11-01"
    },
    "F17": {
      "label": "Daily downloads, prawn, 2026-11-02",
      "display": "80934",
      "asOf": "2026-11-02"
    },
    "F18": {
      "label": "Daily downloads, prawn, 2026-11-03",
      "display": "122696",
      "asOf": "2026-11-03"
    },
    "F19": {
      "label": "Daily downloads, prawn, 2026-11-04",
      "display": "121088",
      "asOf": "2026-11-04"
    },
    "F20": {
      "label": "Daily downloads, prawn, 2026-11-05",
      "display": "128296",
      "asOf": "2026-11-05"
    },
    "F21": {
      "label": "Daily downloads, prawn, 2026-11-06",
      "display": "117909",
      "asOf": "2026-11-06"
    },
    "F22": {
      "label": "Daily downloads, prawn, 2026-11-07",
      "display": "72868",
      "asOf": "2026-11-07"
    },
    "F23": {
      "label": "Daily downloads, prawn, 2026-11-08",
      "display": "28189",
      "asOf": "2026-11-08"
    },
    "F24": {
      "label": "Daily downloads, prawn, 2026-11-09",
      "display": "72324",
      "asOf": "2026-11-09"
    },
    "F25": {
      "label": "Daily downloads, prawn, 2026-11-10",
      "display": "121581",
      "asOf": "2026-11-10"
    },
    "F26": {
      "label": "Daily downloads, prawn, 2026-11-11",
      "display": "122244",
      "asOf": "2026-11-11"
    },
    "F27": {
      "label": "Daily downloads, prawn, 2026-11-12",
      "display": "115927",
      "asOf": "2026-11-12"
    },
    "F28": {
      "label": "Daily downloads, prawn, 2026-11-13",
      "display": "114948",
      "asOf": "2026-11-13"
    },
    "F29": {
      "label": "Daily downloads, prawn, 2026-11-14",
      "display": "71496",
      "asOf": "2026-11-14"
    },
    "F30": {
      "label": "Daily downloads, prawn, 2026-11-15",
      "display": "33064",
      "asOf": "2026-11-15"
    },
    "F31": {
      "label": "Daily downloads, prawn, 2026-11-16",
      "display": "82408",
      "asOf": "2026-11-16"
    },
    "F32": {
      "label": "Monthly downloads, prawn",
      "display": "3.0M",
      "asOf": "2026-11-16"
    },
    "F33": {
      "label": "License, prawn",
      "display": "Ruby / GPLv2 / GPLv3",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "Package release, prawn",
      "display": "2.5.0, Mar 2024",
      "asOf": "2024-03-05"
    },
    "F35": {
      "label": "Package release date, prawn",
      "display": "Mar 2024",
      "asOf": "2024-03-05"
    },
    "F36": {
      "label": "Repository stars, prawn",
      "display": "4.8K",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Creates PDF files, prawn",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Output formats, prawn",
      "display": "PDF",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "Install, prawn",
      "display": "gem install prawn",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "What it does, prawn",
      "display": "Generates PDF documents using Ruby.",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths lead, prawn",
      "display": "Draws vector shapes and text",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths, prawn",
      "display": "Combine lines, curves, flowing text, and embedded fonts.",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths lead, prawn",
      "display": "Repeats headers and page numbers",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "strengths, prawn",
      "display": "Render repeated content across document pages.",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations lead, prawn",
      "display": "Cannot convert full HTML pages",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations, prawn",
      "display": "Use a browser renderer when the source is a full HTML page.",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "Quickstart, prawn",
      "display": "require \"prawn\"\n\nPrawn::Document.generate(\"hello.pdf\") do\n  text \"Hello World!\"\nend\n",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Project function, prawn",
      "display": "def ensure_space_for(height)\n          if pdf.cursor >= height + SECTION_SPACING\n            pdf.move_down SECTION_SPACING\n          else\n            pdf.start_new_page\n            pdf.move_down HEADER_SPACING\n          end\n        end",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Project function reference, prawn",
      "display": "generate_dashboard_pdf_service.rb · ensure_space_for()",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Project repository, prawn",
      "display": "gitlabhq/gitlabhq",
      "asOf": "2026-11-17"
    },
    "F51": {
      "label": "Project stars, gitlabhq/gitlabhq",
      "display": "24.6K",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Project push date, gitlabhq/gitlabhq",
      "display": "Oct 2026",
      "asOf": "2026-10-23"
    },
    "F53": {
      "label": "Library name, pdf-reader",
      "display": "PDF::Reader",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Daily downloads, pdf-reader, 2026-10-18",
      "display": "26552",
      "asOf": "2026-10-18"
    },
    "F55": {
      "label": "Daily downloads, pdf-reader, 2026-10-19",
      "display": "75238",
      "asOf": "2026-10-19"
    },
    "F56": {
      "label": "Daily downloads, pdf-reader, 2026-10-20",
      "display": "109366",
      "asOf": "2026-10-20"
    },
    "F57": {
      "label": "Daily downloads, pdf-reader, 2026-10-21",
      "display": "117420",
      "asOf": "2026-10-21"
    },
    "F58": {
      "label": "Daily downloads, pdf-reader, 2026-10-22",
      "display": "112999",
      "asOf": "2026-10-22"
    },
    "F59": {
      "label": "Daily downloads, pdf-reader, 2026-10-23",
      "display": "114638",
      "asOf": "2026-10-23"
    },
    "F60": {
      "label": "Daily downloads, pdf-reader, 2026-10-24",
      "display": "73197",
      "asOf": "2026-10-24"
    },
    "F61": {
      "label": "Daily downloads, pdf-reader, 2026-10-25",
      "display": "34186",
      "asOf": "2026-10-25"
    },
    "F62": {
      "label": "Daily downloads, pdf-reader, 2026-10-26",
      "display": "82455",
      "asOf": "2026-10-26"
    },
    "F63": {
      "label": "Daily downloads, pdf-reader, 2026-10-27",
      "display": "132390",
      "asOf": "2026-10-27"
    },
    "F64": {
      "label": "Daily downloads, pdf-reader, 2026-10-28",
      "display": "114826",
      "asOf": "2026-10-28"
    },
    "F65": {
      "label": "Daily downloads, pdf-reader, 2026-10-29",
      "display": "120902",
      "asOf": "2026-10-29"
    },
    "F66": {
      "label": "Daily downloads, pdf-reader, 2026-10-30",
      "display": "121481",
      "asOf": "2026-10-30"
    },
    "F67": {
      "label": "Daily downloads, pdf-reader, 2026-10-31",
      "display": "78841",
      "asOf": "2026-10-31"
    },
    "F68": {
      "label": "Daily downloads, pdf-reader, 2026-11-01",
      "display": "52104",
      "asOf": "2026-11-01"
    },
    "F69": {
      "label": "Daily downloads, pdf-reader, 2026-11-02",
      "display": "93193",
      "asOf": "2026-11-02"
    },
    "F70": {
      "label": "Daily downloads, pdf-reader, 2026-11-03",
      "display": "124944",
      "asOf": "2026-11-03"
    },
    "F71": {
      "label": "Daily downloads, pdf-reader, 2026-11-04",
      "display": "112443",
      "asOf": "2026-11-04"
    },
    "F72": {
      "label": "Daily downloads, pdf-reader, 2026-11-05",
      "display": "121929",
      "asOf": "2026-11-05"
    },
    "F73": {
      "label": "Daily downloads, pdf-reader, 2026-11-06",
      "display": "106126",
      "asOf": "2026-11-06"
    },
    "F74": {
      "label": "Daily downloads, pdf-reader, 2026-11-07",
      "display": "58918",
      "asOf": "2026-11-07"
    },
    "F75": {
      "label": "Daily downloads, pdf-reader, 2026-11-08",
      "display": "28483",
      "asOf": "2026-11-08"
    },
    "F76": {
      "label": "Daily downloads, pdf-reader, 2026-11-09",
      "display": "71853",
      "asOf": "2026-11-09"
    },
    "F77": {
      "label": "Daily downloads, pdf-reader, 2026-11-10",
      "display": "112975",
      "asOf": "2026-11-10"
    },
    "F78": {
      "label": "Daily downloads, pdf-reader, 2026-11-11",
      "display": "116011",
      "asOf": "2026-11-11"
    },
    "F79": {
      "label": "Daily downloads, pdf-reader, 2026-11-12",
      "display": "109586",
      "asOf": "2026-11-12"
    },
    "F80": {
      "label": "Daily downloads, pdf-reader, 2026-11-13",
      "display": "109764",
      "asOf": "2026-11-13"
    },
    "F81": {
      "label": "Daily downloads, pdf-reader, 2026-11-14",
      "display": "69624",
      "asOf": "2026-11-14"
    },
    "F82": {
      "label": "Daily downloads, pdf-reader, 2026-11-15",
      "display": "42115",
      "asOf": "2026-11-15"
    },
    "F83": {
      "label": "Daily downloads, pdf-reader, 2026-11-16",
      "display": "83400",
      "asOf": "2026-11-16"
    },
    "F84": {
      "label": "Monthly downloads, pdf-reader",
      "display": "2.7M",
      "asOf": "2026-11-16"
    },
    "F85": {
      "label": "License, pdf-reader",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Package release, pdf-reader",
      "display": "2.16.0, Aug 2026",
      "asOf": "2026-08-09"
    },
    "F87": {
      "label": "Package release date, pdf-reader",
      "display": "Aug 2026",
      "asOf": "2026-08-09"
    },
    "F88": {
      "label": "Repository stars, pdf-reader",
      "display": "1.9K",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "Reads existing PDFs, pdf-reader",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "Extracts page text, pdf-reader",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "Output formats, pdf-reader",
      "display": "Text",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "Install, pdf-reader",
      "display": "gem install pdf-reader",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "What it does, pdf-reader",
      "display": "Provides programmatic access to PDF file contents.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "strengths lead, pdf-reader",
      "display": "Exposes document-level information",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "strengths, pdf-reader",
      "display": "Read metadata and page counts from one reader.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "strengths lead, pdf-reader",
      "display": "Returns text in UTF-8",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "strengths, pdf-reader",
      "display": "Receive text in UTF-8 regardless of the document’s internal encoding.",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "limitations lead, pdf-reader",
      "display": "Unrecognized text becomes replacement characters",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "limitations, pdf-reader",
      "display": "Invalid stored bytes can appear as a replacement box.",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Quickstart, pdf-reader",
      "display": "#!/usr/bin/env ruby\n\nrequire 'rubygems'\nrequire 'pdf/reader'\n\nif ARGV.empty?\n  browser = PDF::Reader.new(StringIO.new(ARGF.read))\nelse\n  browser = PDF::Reader.new(ARGV[0])\nend\nbrowser.pages.each do |page|\n  puts page.text\nend\n",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Project function, pdf-reader",
      "display": "def check_url(in_url, payload)\n      return unless in_url.present?\n\n      Array(in_url).each do |url|\n        uri = URI(url) rescue nil\n        unless uri.is_a?(URI::HTTP)\n          error \"Unsupported URL: #{url}\"\n          next\n        end\n\n        log \"Fetching #{url}\"\n        response = faraday.get(url)\n        reader = PDF::Reader.new(StringIO.new(response.body))\n\n        info = reader.info.to_h { |key, value|\n          [key.to_s, decode_pdf_date(value) || value]\n        }\n        info[\"Pages\"] = reader.page_count.to_s\n        if (page = reader.pages.first)\n          info[\"Page size\"] = \"#{page.width} x #{page.height} pts\"\n        end\n        info[\"PDF version\"] = reader.pdf_version.to_s\n\n        create_event payload: info.merge(payload)\n      end\n    end",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Project function reference, pdf-reader",
      "display": "pdf_info_agent.rb · check_url()",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Project repository, pdf-reader",
      "display": "huginn/huginn",
      "asOf": "2026-11-17"
    },
    "F104": {
      "label": "Project stars, huginn/huginn",
      "display": "50.6K",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Project push date, huginn/huginn",
      "display": "Nov 2026",
      "asOf": "2026-11-09"
    },
    "F106": {
      "label": "Library name, combine_pdf",
      "display": "CombinePDF",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Daily downloads, combine_pdf, 2026-10-18",
      "display": "11432",
      "asOf": "2026-10-18"
    },
    "F108": {
      "label": "Daily downloads, combine_pdf, 2026-10-19",
      "display": "73836",
      "asOf": "2026-10-19"
    },
    "F109": {
      "label": "Daily downloads, combine_pdf, 2026-10-20",
      "display": "114445",
      "asOf": "2026-10-20"
    },
    "F110": {
      "label": "Daily downloads, combine_pdf, 2026-10-21",
      "display": "124363",
      "asOf": "2026-10-21"
    },
    "F111": {
      "label": "Daily downloads, combine_pdf, 2026-10-22",
      "display": "327627",
      "asOf": "2026-10-22"
    },
    "F112": {
      "label": "Daily downloads, combine_pdf, 2026-10-23",
      "display": "119140",
      "asOf": "2026-10-23"
    },
    "F113": {
      "label": "Daily downloads, combine_pdf, 2026-10-24",
      "display": "56542",
      "asOf": "2026-10-24"
    },
    "F114": {
      "label": "Daily downloads, combine_pdf, 2026-10-25",
      "display": "16244",
      "asOf": "2026-10-25"
    },
    "F115": {
      "label": "Daily downloads, combine_pdf, 2026-10-26",
      "display": "67655",
      "asOf": "2026-10-26"
    },
    "F116": {
      "label": "Daily downloads, combine_pdf, 2026-10-27",
      "display": "106794",
      "asOf": "2026-10-27"
    },
    "F117": {
      "label": "Daily downloads, combine_pdf, 2026-10-28",
      "display": "104327",
      "asOf": "2026-10-28"
    },
    "F118": {
      "label": "Daily downloads, combine_pdf, 2026-10-29",
      "display": "111610",
      "asOf": "2026-10-29"
    },
    "F119": {
      "label": "Daily downloads, combine_pdf, 2026-10-30",
      "display": "114500",
      "asOf": "2026-10-30"
    },
    "F120": {
      "label": "Daily downloads, combine_pdf, 2026-10-31",
      "display": "57586",
      "asOf": "2026-10-31"
    },
    "F121": {
      "label": "Daily downloads, combine_pdf, 2026-11-01",
      "display": "12984",
      "asOf": "2026-11-01"
    },
    "F122": {
      "label": "Daily downloads, combine_pdf, 2026-11-02",
      "display": "60317",
      "asOf": "2026-11-02"
    },
    "F123": {
      "label": "Daily downloads, combine_pdf, 2026-11-03",
      "display": "106736",
      "asOf": "2026-11-03"
    },
    "F124": {
      "label": "Daily downloads, combine_pdf, 2026-11-04",
      "display": "97878",
      "asOf": "2026-11-04"
    },
    "F125": {
      "label": "Daily downloads, combine_pdf, 2026-11-05",
      "display": "113916",
      "asOf": "2026-11-05"
    },
    "F126": {
      "label": "Daily downloads, combine_pdf, 2026-11-06",
      "display": "132128",
      "asOf": "2026-11-06"
    },
    "F127": {
      "label": "Daily downloads, combine_pdf, 2026-11-07",
      "display": "53095",
      "asOf": "2026-11-07"
    },
    "F128": {
      "label": "Daily downloads, combine_pdf, 2026-11-08",
      "display": "11755",
      "asOf": "2026-11-08"
    },
    "F129": {
      "label": "Daily downloads, combine_pdf, 2026-11-09",
      "display": "63944",
      "asOf": "2026-11-09"
    },
    "F130": {
      "label": "Daily downloads, combine_pdf, 2026-11-10",
      "display": "88152",
      "asOf": "2026-11-10"
    },
    "F131": {
      "label": "Daily downloads, combine_pdf, 2026-11-11",
      "display": "72766",
      "asOf": "2026-11-11"
    },
    "F132": {
      "label": "Daily downloads, combine_pdf, 2026-11-12",
      "display": "72075",
      "asOf": "2026-11-12"
    },
    "F133": {
      "label": "Daily downloads, combine_pdf, 2026-11-13",
      "display": "67246",
      "asOf": "2026-11-13"
    },
    "F134": {
      "label": "Daily downloads, combine_pdf, 2026-11-14",
      "display": "42310",
      "asOf": "2026-11-14"
    },
    "F135": {
      "label": "Daily downloads, combine_pdf, 2026-11-15",
      "display": "11663",
      "asOf": "2026-11-15"
    },
    "F136": {
      "label": "Daily downloads, combine_pdf, 2026-11-16",
      "display": "33810",
      "asOf": "2026-11-16"
    },
    "F137": {
      "label": "Monthly downloads, combine_pdf",
      "display": "2.4M",
      "asOf": "2026-11-16"
    },
    "F138": {
      "label": "License, combine_pdf",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F139": {
      "label": "Package release, combine_pdf",
      "display": "1.0.31, Apr 2025",
      "asOf": "2025-04-08"
    },
    "F140": {
      "label": "Package release date, combine_pdf",
      "display": "Apr 2025",
      "asOf": "2025-04-08"
    },
    "F141": {
      "label": "Repository stars, combine_pdf",
      "display": "785",
      "asOf": "2026-11-17"
    },
    "F142": {
      "label": "Creates PDF files, combine_pdf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F143": {
      "label": "Reads existing PDFs, combine_pdf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F144": {
      "label": "Output formats, combine_pdf",
      "display": "PDF",
      "asOf": "2026-11-17"
    },
    "F145": {
      "label": "Install, combine_pdf",
      "display": "gem install combine_pdf",
      "asOf": "2026-11-17"
    },
    "F146": {
      "label": "What it does, combine_pdf",
      "display": "Merges PDF documents and overlays existing page content using Ruby.",
      "asOf": "2026-11-17"
    },
    "F147": {
      "label": "strengths lead, combine_pdf",
      "display": "Merges whole documents or pages",
      "asOf": "2026-11-17"
    },
    "F148": {
      "label": "strengths, combine_pdf",
      "display": "Append complete PDFs or select individual pages to combine.",
      "asOf": "2026-11-17"
    },
    "F149": {
      "label": "strengths lead, combine_pdf",
      "display": "Overlays existing PDF page content",
      "asOf": "2026-11-17"
    },
    "F150": {
      "label": "strengths, combine_pdf",
      "display": "Load a logo page and overlay it on existing pages.",
      "asOf": "2026-11-17"
    },
    "F151": {
      "label": "limitations lead, combine_pdf",
      "display": "Original maintenance has stopped",
      "asOf": "2026-11-17"
    },
    "F152": {
      "label": "limitations, combine_pdf",
      "display": "Evaluate maintenance coverage before adopting it for new production workflows.",
      "asOf": "2026-11-17"
    },
    "F153": {
      "label": "limitations lead, combine_pdf",
      "display": "Merging can unify form fields",
      "asOf": "2026-11-17"
    },
    "F154": {
      "label": "limitations, combine_pdf",
      "display": "Matching field names can link their values across merged forms.",
      "asOf": "2026-11-17"
    },
    "F155": {
      "label": "limitations lead, combine_pdf",
      "display": "Page-only merges can lose links",
      "asOf": "2026-11-17"
    },
    "F156": {
      "label": "limitations, combine_pdf",
      "display": "Combine whole documents when preserving links and named destinations.",
      "asOf": "2026-11-17"
    },
    "F157": {
      "label": "Quickstart, combine_pdf",
      "display": "require 'combine_pdf'\nrequire 'net/http'\n\npdf = CombinePDF.new\npdf << CombinePDF.load(\"file1.pdf\") # one way to combine, very fast.\npdf << CombinePDF.load(\"file2.pdf\")\npdf.save \"combined.pdf\"\n",
      "asOf": "2026-11-17"
    },
    "F158": {
      "label": "Project function, combine_pdf",
      "display": "def generate_invoice(order)\n    renderer_data = if OpenFoodNetwork::FeatureToggle.enabled?(:invoices, current_user)\n                      Orders::GenerateInvoiceService.new(order).generate_or_update_latest_invoice\n                      order.invoices.first.presenter\n                    else\n                      order\n                    end\n    invoice = renderer.render_to_string(renderer_data, current_user)\n    pdf << CombinePDF.parse(invoice)\n  end",
      "asOf": "2026-11-17"
    },
    "F159": {
      "label": "Project function reference, combine_pdf",
      "display": "bulk_invoice_job.rb · generate_invoice()",
      "asOf": "2026-11-17"
    },
    "F160": {
      "label": "Project repository, combine_pdf",
      "display": "openfoodfoundation/openfoodnetwork",
      "asOf": "2026-11-17"
    },
    "F161": {
      "label": "Project stars, openfoodfoundation/openfoodnetwork",
      "display": "1.3K",
      "asOf": "2026-11-17"
    },
    "F162": {
      "label": "Project push date, openfoodfoundation/openfoodnetwork",
      "display": "Nov 2026",
      "asOf": "2026-11-16"
    },
    "F163": {
      "label": "Library name, hexapdf",
      "display": "HexaPDF",
      "asOf": "2026-11-17"
    },
    "F164": {
      "label": "Daily downloads, hexapdf, 2026-10-18",
      "display": "5732",
      "asOf": "2026-10-18"
    },
    "F165": {
      "label": "Daily downloads, hexapdf, 2026-10-19",
      "display": "14265",
      "asOf": "2026-10-19"
    },
    "F166": {
      "label": "Daily downloads, hexapdf, 2026-10-20",
      "display": "29926",
      "asOf": "2026-10-20"
    },
    "F167": {
      "label": "Daily downloads, hexapdf, 2026-10-21",
      "display": "32049",
      "asOf": "2026-10-21"
    },
    "F168": {
      "label": "Daily downloads, hexapdf, 2026-10-22",
      "display": "29320",
      "asOf": "2026-10-22"
    },
    "F169": {
      "label": "Daily downloads, hexapdf, 2026-10-23",
      "display": "30228",
      "asOf": "2026-10-23"
    },
    "F170": {
      "label": "Daily downloads, hexapdf, 2026-10-24",
      "display": "15854",
      "asOf": "2026-10-24"
    },
    "F171": {
      "label": "Daily downloads, hexapdf, 2026-10-25",
      "display": "6375",
      "asOf": "2026-10-25"
    },
    "F172": {
      "label": "Daily downloads, hexapdf, 2026-10-26",
      "display": "17863",
      "asOf": "2026-10-26"
    },
    "F173": {
      "label": "Daily downloads, hexapdf, 2026-10-27",
      "display": "32192",
      "asOf": "2026-10-27"
    },
    "F174": {
      "label": "Daily downloads, hexapdf, 2026-10-28",
      "display": "29906",
      "asOf": "2026-10-28"
    },
    "F175": {
      "label": "Daily downloads, hexapdf, 2026-10-29",
      "display": "30525",
      "asOf": "2026-10-29"
    },
    "F176": {
      "label": "Daily downloads, hexapdf, 2026-10-30",
      "display": "31355",
      "asOf": "2026-10-30"
    },
    "F177": {
      "label": "Daily downloads, hexapdf, 2026-10-31",
      "display": "14921",
      "asOf": "2026-10-31"
    },
    "F178": {
      "label": "Daily downloads, hexapdf, 2026-11-01",
      "display": "7336",
      "asOf": "2026-11-01"
    },
    "F179": {
      "label": "Daily downloads, hexapdf, 2026-11-02",
      "display": "16794",
      "asOf": "2026-11-02"
    },
    "F180": {
      "label": "Daily downloads, hexapdf, 2026-11-03",
      "display": "33324",
      "asOf": "2026-11-03"
    },
    "F181": {
      "label": "Daily downloads, hexapdf, 2026-11-04",
      "display": "29362",
      "asOf": "2026-11-04"
    },
    "F182": {
      "label": "Daily downloads, hexapdf, 2026-11-05",
      "display": "31109",
      "asOf": "2026-11-05"
    },
    "F183": {
      "label": "Daily downloads, hexapdf, 2026-11-06",
      "display": "25474",
      "asOf": "2026-11-06"
    },
    "F184": {
      "label": "Daily downloads, hexapdf, 2026-11-07",
      "display": "12954",
      "asOf": "2026-11-07"
    },
    "F185": {
      "label": "Daily downloads, hexapdf, 2026-11-08",
      "display": "5280",
      "asOf": "2026-11-08"
    },
    "F186": {
      "label": "Daily downloads, hexapdf, 2026-11-09",
      "display": "15791",
      "asOf": "2026-11-09"
    },
    "F187": {
      "label": "Daily downloads, hexapdf, 2026-11-10",
      "display": "27564",
      "asOf": "2026-11-10"
    },
    "F188": {
      "label": "Daily downloads, hexapdf, 2026-11-11",
      "display": "23858",
      "asOf": "2026-11-11"
    },
    "F189": {
      "label": "Daily downloads, hexapdf, 2026-11-12",
      "display": "27086",
      "asOf": "2026-11-12"
    },
    "F190": {
      "label": "Daily downloads, hexapdf, 2026-11-13",
      "display": "25611",
      "asOf": "2026-11-13"
    },
    "F191": {
      "label": "Daily downloads, hexapdf, 2026-11-14",
      "display": "13943",
      "asOf": "2026-11-14"
    },
    "F192": {
      "label": "Daily downloads, hexapdf, 2026-11-15",
      "display": "6790",
      "asOf": "2026-11-15"
    },
    "F193": {
      "label": "Daily downloads, hexapdf, 2026-11-16",
      "display": "15407",
      "asOf": "2026-11-16"
    },
    "F194": {
      "label": "Monthly downloads, hexapdf",
      "display": "638.2K",
      "asOf": "2026-11-16"
    },
    "F195": {
      "label": "License, hexapdf",
      "display": "AGPL / Commercial",
      "asOf": "2026-11-17"
    },
    "F196": {
      "label": "Package release, hexapdf",
      "display": "1.11.2, Oct 2026",
      "asOf": "2026-10-20"
    },
    "F197": {
      "label": "Package release date, hexapdf",
      "display": "Oct 2026",
      "asOf": "2026-10-20"
    },
    "F198": {
      "label": "Repository stars, hexapdf",
      "display": "1.4K",
      "asOf": "2026-11-17"
    },
    "F199": {
      "label": "Creates PDF files, hexapdf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F200": {
      "label": "Reads existing PDFs, hexapdf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F201": {
      "label": "Extracts page text, hexapdf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F202": {
      "label": "Output formats, hexapdf",
      "display": "PDF",
      "asOf": "2026-11-17"
    },
    "F203": {
      "label": "Install, hexapdf",
      "display": "gem install hexapdf",
      "asOf": "2026-11-17"
    },
    "F204": {
      "label": "What it does, hexapdf",
      "display": "Creates PDF files and manipulates existing documents.",
      "asOf": "2026-11-17"
    },
    "F205": {
      "label": "strengths lead, hexapdf",
      "display": "Edits existing PDF structures",
      "asOf": "2026-11-17"
    },
    "F206": {
      "label": "strengths, hexapdf",
      "display": "Modify document objects or content before writing the PDF again.",
      "asOf": "2026-11-17"
    },
    "F207": {
      "label": "strengths lead, hexapdf",
      "display": "Fills predefined PDF form fields",
      "asOf": "2026-11-17"
    },
    "F208": {
      "label": "strengths, hexapdf",
      "display": "Assign values to AcroForm fields using a data hash.",
      "asOf": "2026-11-17"
    },
    "F209": {
      "label": "limitations lead, hexapdf",
      "display": "Nonblock opening buffers the file",
      "asOf": "2026-11-17"
    },
    "F210": {
      "label": "limitations, hexapdf",
      "display": "Opening without a block reads the whole file into memory.",
      "asOf": "2026-11-17"
    },
    "F211": {
      "label": "Quickstart, hexapdf",
      "display": "require 'hexapdf'\n\ndoc = HexaPDF::Document.new\ncanvas = doc.pages.add.canvas\ncanvas.font('Helvetica', size: 100)\ncanvas.text(\"Hello World!\", at: [20, 400])\ndoc.write(\"hello-world.pdf\")\n",
      "asOf": "2026-11-17"
    },
    "F212": {
      "label": "Developer need",
      "display": "Drawing PDF layouts from Ruby",
      "asOf": "2026-11-17"
    },
    "F213": {
      "label": "Why choose prawn",
      "display": "vector and text layout APIs",
      "asOf": "2026-11-17"
    },
    "F214": {
      "label": "Developer need in introduction",
      "display": "drawing PDF layouts from Ruby",
      "asOf": "2026-11-17"
    },
    "F215": {
      "label": "When to consider hexapdf",
      "display": "existing PDF structures need modification",
      "asOf": "2026-11-17"
    },
    "F216": {
      "label": "Developer need",
      "display": "Updating existing PDF content",
      "asOf": "2026-11-17"
    },
    "F217": {
      "label": "Why choose hexapdf",
      "display": "document structure editing",
      "asOf": "2026-11-17"
    },
    "F218": {
      "label": "Developer need in introduction",
      "display": "updating existing PDF content",
      "asOf": "2026-11-17"
    },
    "F219": {
      "label": "When to consider prawn",
      "display": "generating page content is the main job",
      "asOf": "2026-11-17"
    },
    "F220": {
      "label": "Developer need",
      "display": "Combining existing PDF pages",
      "asOf": "2026-11-17"
    },
    "F221": {
      "label": "Why choose combine_pdf",
      "display": "whole-document and selected-page merging",
      "asOf": "2026-11-17"
    },
    "F222": {
      "label": "Developer need in introduction",
      "display": "combining existing PDF pages",
      "asOf": "2026-11-17"
    },
    "F223": {
      "label": "When to consider hexapdf",
      "display": "editing PDF structures is also required",
      "asOf": "2026-11-17"
    },
    "F224": {
      "label": "Developer need",
      "display": "Reading PDF properties",
      "asOf": "2026-11-17"
    },
    "F225": {
      "label": "Why choose pdf-reader",
      "display": "document-level information",
      "asOf": "2026-11-17"
    },
    "F226": {
      "label": "Developer need in introduction",
      "display": "reading PDF properties",
      "asOf": "2026-11-17"
    },
    "F227": {
      "label": "When to consider hexapdf",
      "display": "the workflow must modify an existing document",
      "asOf": "2026-11-17"
    },
    "F228": {
      "label": "Page introduction",
      "display": "Ruby PDF libraries let application developers create or read PDF documents.",
      "asOf": "2026-11-17"
    },
    "F229": {
      "label": "FAQ: Which tool creates new PDF layouts?",
      "display": "Prawn supplies vector drawing, flowing text, and font embedding.",
      "asOf": "2026-11-17"
    },
    "F230": {
      "label": "FAQ: Which tool creates new PDF layouts?",
      "display": "HexaPDF also creates new documents and modifies existing ones.",
      "asOf": "2026-11-17"
    },
    "F231": {
      "label": "FAQ: Can Prawn convert a complete HTML page?",
      "display": "Prawn explicitly excludes full HTML-to-PDF conversion; inline styling is limited.",
      "asOf": "2026-11-17"
    },
    "F232": {
      "label": "FAQ: How does opening a large document affect memory?",
      "display": "HexaPDF reads the whole file into memory when open is used without a block.",
      "asOf": "2026-11-17"
    },
    "F233": {
      "label": "FAQ: How does opening a large document affect memory?",
      "display": "The block form is useful when only a small portion of a large file is needed.",
      "asOf": "2026-11-17"
    },
    "F234": {
      "label": "FAQ: Can a PDF form be filled with a data hash?",
      "display": "HexaPDF Form.fill assigns values from a hash to form fields.",
      "asOf": "2026-11-17"
    },
    "F235": {
      "label": "FAQ: Which PDF form family does HexaPDF support?",
      "display": "Its interactive form support is for AcroForms.",
      "asOf": "2026-11-17"
    },
    "F236": {
      "label": "FAQ: Which PDF form family does HexaPDF support?",
      "display": "The project excludes the deprecated XFA form family.",
      "asOf": "2026-11-17"
    },
    "F237": {
      "label": "FAQ: Is CombinePDF actively maintained?",
      "display": "Its own README says the author stopped maintaining the gem and requests maintainers.",
      "asOf": "2026-11-17"
    },
    "F238": {
      "label": "FAQ: Why can merged form values become linked?",
      "display": "CombinePDF warns that combining forms can unify values for identically named fields.",
      "asOf": "2026-11-17"
    },
    "F239": {
      "label": "FAQ: Why can copying individual pages lose links?",
      "display": "Some links and named destinations live at document level; preserving them requires merging whole PDF objects.",
      "asOf": "2026-11-17"
    },
    "F240": {
      "label": "FAQ: Can existing PDF content be used as a watermark?",
      "display": "CombinePDF loads content from a PDF page and overlays it on existing pages.",
      "asOf": "2026-11-17"
    },
    "F241": {
      "label": "FAQ: What text encoding does PDF::Reader return?",
      "display": "Text is converted to UTF-8 before being returned, regardless of the PDF’s internal encoding.",
      "asOf": "2026-11-17"
    },
    "F242": {
      "label": "FAQ: Why can extracted text contain replacement boxes?",
      "display": "Some stored text or invalid bytes cannot be recognized; PDF::Reader emits a replacement box.",
      "asOf": "2026-11-17"
    },
    "F243": {
      "label": "FAQ: How should PDF input files be opened in Ruby?",
      "display": "PDF::Reader recommends binary rb mode when using File.open or IO.open.",
      "asOf": "2026-11-17"
    },
    "F244": {
      "label": "Library name, pdf-reader",
      "display": "PDF::Reader",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "All-version lifetime gem downloads, pdf-reader",
      "display": "119574974",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "License, pdf-reader",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Package release, pdf-reader",
      "display": "2.16.0",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Package release date, pdf-reader",
      "display": "Aug 2026",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Install, pdf-reader",
      "display": "gem install pdf-reader -v 2.16.0",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Quickstart, pdf-reader",
      "display": "require \"pdf/reader\"\n\nreader = PDF::Reader.new(\"input.pdf\")\nputs reader.page_count\n",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Repository stars, pdf-reader",
      "display": "1.9K",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Existing PDF input, pdf-reader",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Browser HTML to PDF, pdf-reader",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "Document workflow, pdf-reader",
      "display": "Read PDF metadata,page count/dimensions,and text/content through a Ruby document parser.",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "First-call prerequisites, pdf-reader",
      "display": "A readable valid supported input.pdf; password/options for encrypted files follow the native API. This counts pages,not OCR or PDF creation.",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "External workflow contract, pdf-reader",
      "display": "Current2.16 Reader accepts IO/StringIO PDF bytes. info returns metadata hash,pages returns page objects,page_count and pdf_version remain public; Page.width/height remain documented/current native methods. Original HTTP URI validation/Faraday fetch and decode_pdf_date are host code,not selected SDK operations. Fetched response must be a valid supported PDF; callers supply original agent state. Builds a host event hash of metadata,first-page dimensions,page count,and PDF version. Native values are converted to strings or passed to original decode helper; no semantic body-text/OCR claim. Does not execute or certify HTTP,agent framework,or date-decoder host behavior.",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Project function, pdf-reader",
      "display": "def check_url(in_url, payload)\n      return unless in_url.present?\n\n      Array(in_url).each do |url|\n        uri = URI(url) rescue nil\n        unless uri.is_a?(URI::HTTP)\n          error \"Unsupported URL: #{url}\"\n          next\n        end\n\n        log \"Fetching #{url}\"\n        response = faraday.get(url)\n        reader = PDF::Reader.new(StringIO.new(response.body))\n\n        info = reader.info.to_h { |key, value|\n          [key.to_s, decode_pdf_date(value) || value]\n        }\n        info[\"Pages\"] = reader.page_count.to_s\n        if (page = reader.pages.first)\n          info[\"Page size\"] = \"#{page.width} x #{page.height} pts\"\n        end\n        info[\"PDF version\"] = reader.pdf_version.to_s\n\n        create_event payload: info.merge(payload)\n      end\n    end",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Project source file, pdf-reader",
      "display": "app/models/agents/pdf_info_agent.rb",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Project full_name, pdf-reader",
      "display": "huginn/huginn",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "Project stargazers_count, pdf-reader",
      "display": "50.6K",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Library name, prawn",
      "display": "Prawn",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "All-version lifetime gem downloads, prawn",
      "display": "109466447",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "License, prawn",
      "display": "Modified Ruby license OR GPL-2.0-only OR GPL-3.0-only",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Package release, prawn",
      "display": "2.5.0",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Package release date, prawn",
      "display": "Mar 2024",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Install, prawn",
      "display": "gem install prawn -v 2.5.0",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "Quickstart, prawn",
      "display": "require \"prawn\"\n\nPrawn::Document.generate(\"hello.pdf\") do |pdf|\n  pdf.text \"Hello World!\"\nend\n",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Repository stars, prawn",
      "display": "4.8K",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Existing PDF input, prawn",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Browser HTML to PDF, prawn",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Document workflow, prawn",
      "display": "Create paginated PDFs directly with Ruby drawing/text/layout APIs.",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "First-call prerequisites, prawn",
      "display": "Writable output directory and installed gem. Uses built-in basic font for ASCII greeting; additional fonts/layout assets are separate.",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "External workflow contract, prawn",
      "display": "Actual attr_reader :pdf is initialized to Prawn::Document in the original class. Current2.5.0 cursor returns numeric current position; move_down accepts numeric amount; start_new_page accepts no-argument default. Original height/spacing must be numeric and normal page state initialized. Numeric >= and arithmetic are Ruby peers,not SDK call padding. Moves the existing document cursor or starts a fresh page then moves it; returns the selected branch result,not rendered PDF bytes. Parent execute later renders file. Does not certify graph-specific helpers elsewhere in the historical GitLab class.",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "License alternatives, prawn",
      "display": "Modified Ruby license OR GPL-2.0-only OR GPL-3.0-only",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Library name, wicked_pdf",
      "display": "Wicked PDF",
      "asOf": "2026-11-20"
    },
    "F276": {
      "label": "All-version lifetime gem downloads, wicked_pdf",
      "display": "88673892",
      "asOf": "2026-11-20"
    },
    "F277": {
      "label": "License, wicked_pdf",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F278": {
      "label": "Package release, wicked_pdf",
      "display": "2.8.2",
      "asOf": "2026-11-20"
    },
    "F279": {
      "label": "Package release date, wicked_pdf",
      "display": "Oct 2024",
      "asOf": "2026-11-20"
    },
    "F280": {
      "label": "Install, wicked_pdf",
      "display": "gem install wicked_pdf -v 2.8.2",
      "asOf": "2026-11-20"
    },
    "F281": {
      "label": "Quickstart, wicked_pdf",
      "display": "require \"wicked_pdf\"\n\npdf = WickedPdf.new.pdf_from_string(\"<h1>Hello World!</h1>\")\nFile.binwrite(\"hello.pdf\", pdf)\n",
      "asOf": "2026-11-20"
    },
    "F282": {
      "label": "Official description, wicked_pdf",
      "display": "Serves a PDF file generated from HTML through the wkhtmltopdf shell utility.",
      "asOf": "2026-11-20"
    },
    "F283": {
      "label": "Quickstart source file, wicked_pdf",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F284": {
      "label": "Repository stars, wicked_pdf",
      "display": "3.6K",
      "asOf": "2026-11-20"
    },
    "F285": {
      "label": "Existing PDF input, wicked_pdf",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F286": {
      "label": "Browser HTML to PDF, wicked_pdf",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F287": {
      "label": "Document workflow, wicked_pdf",
      "display": "Render Rails HTML into PDF through wkhtmltopdf; original example sends generated invoice data.",
      "asOf": "2026-11-20"
    },
    "F288": {
      "label": "First-call prerequisites, wicked_pdf",
      "display": "Installed reachable compatible wkhtmltopdf executable,configured if not on PATH. Gem alone does not provide a browser binary; output is PDF data,not return_file tempfile mode.",
      "asOf": "2026-11-20"
    },
    "F289": {
      "label": "External workflow contract, wicked_pdf",
      "display": "Current public Wicked PDF usage documents no-argument client factory and pdf_from_string(html),used exactly by unchanged function. Original Rails render_to_string supplies invoice HTML; no unsupported return_file option or obsolete version-specific flag in this chosen function. Configured wkhtmltopdf binary,HTML templates/assets,and original notify method are host prerequisites. Default call returns PDF data passed to original notify. No file return or asynchronous browser result inferred. Original optional id parameter is unused; notification delivery itself is host behavior and was not run.",
      "asOf": "2026-11-20"
    },
    "F290": {
      "label": "Project function, wicked_pdf",
      "display": "def notify_client_with_pdf_invoice_attachment(current_user, id = nil)\n    invoice_string  = ApplicationController.new.render_to_string('invoices/show.html.erb', layout: 'pdf_mode', locals: {invoice: self})\n    invoice_pdf_file = WickedPdf.new.pdf_from_string(invoice_string)\n    notify(current_user, self.id, invoice_pdf_file)\n  end",
      "asOf": "2026-11-20"
    },
    "F291": {
      "label": "Project source file, wicked_pdf",
      "display": "app/models/invoice.rb",
      "asOf": "2026-11-20"
    },
    "F292": {
      "label": "Project full_name, wicked_pdf",
      "display": "vteams/open-source-billing",
      "asOf": "2026-11-20"
    },
    "F293": {
      "label": "Project stargazers_count, wicked_pdf",
      "display": "775",
      "asOf": "2026-11-20"
    },
    "F294": {
      "label": "Library name, combine_pdf",
      "display": "combine_pdf",
      "asOf": "2026-11-20"
    },
    "F295": {
      "label": "All-version lifetime gem downloads, combine_pdf",
      "display": "63487617",
      "asOf": "2026-11-20"
    },
    "F296": {
      "label": "License, combine_pdf",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F297": {
      "label": "Package release, combine_pdf",
      "display": "1.0.31",
      "asOf": "2026-11-20"
    },
    "F298": {
      "label": "Package release date, combine_pdf",
      "display": "Apr 2025",
      "asOf": "2026-11-20"
    },
    "F299": {
      "label": "Install, combine_pdf",
      "display": "gem install combine_pdf -v 1.0.31",
      "asOf": "2026-11-20"
    },
    "F300": {
      "label": "Quickstart, combine_pdf",
      "display": "require \"combine_pdf\"\n\npdf = CombinePDF.load(\"input.pdf\")\npdf.save(\"output.pdf\")\n",
      "asOf": "2026-11-20"
    },
    "F301": {
      "label": "Repository stars, combine_pdf",
      "display": "785",
      "asOf": "2026-11-20"
    },
    "F302": {
      "label": "Existing PDF input, combine_pdf",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F303": {
      "label": "Browser HTML to PDF, combine_pdf",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F304": {
      "label": "Document workflow, combine_pdf",
      "display": "Parse and combine existing PDFs,append pages,and later save merged output.",
      "asOf": "2026-11-20"
    },
    "F305": {
      "label": "First-call prerequisites, combine_pdf",
      "display": "Readable supported input.pdf and writable distinct output.pdf. One load/save first workflow,not a fabricated merge benchmark. Current encrypted/problematic-input limitations remain in own README.",
      "asOf": "2026-11-20"
    },
    "F306": {
      "label": "External workflow contract, combine_pdf",
      "display": "Original pdf method owns CombinePDF.new. Current1.0.31 parse accepts a PDF String and returns CombinePDF::PDF; << accepts the parsed PDF and appends its pages. Original InvoiceRenderer returns PdfRenderer.render,which forwards html/display_url to documented FerrumPdf.render_pdf; that separate Chrome renderer supplies PDF data. Its current host/runtime and valid raw PDF String are explicit prerequisites; HTML is not directly passed to CombinePDF.parse. Neither Rails renderer nor browser rendering counts as a second native CombinePDF call. Appends one rendered invoice to the existing CombinePDF aggregate. Parent perform later saves it; this exact method does not itself save/return final PDF bytes. Header/footer/form edge cases remain governed by CombinePDF primary limitations.",
      "asOf": "2026-11-20"
    },
    "F307": {
      "label": "Project function, combine_pdf",
      "display": "def generate_invoice(order)\n    renderer_data = if OpenFoodNetwork::FeatureToggle.enabled?(:invoices, current_user)\n                      Orders::GenerateInvoiceService.new(order).generate_or_update_latest_invoice\n                      order.invoices.first.presenter\n                    else\n                      order\n                    end\n    invoice = renderer.render_to_string(renderer_data, current_user)\n    pdf << CombinePDF.parse(invoice)\n  end",
      "asOf": "2026-11-20"
    },
    "F308": {
      "label": "Project source file, combine_pdf",
      "display": "app/jobs/bulk_invoice_job.rb",
      "asOf": "2026-11-20"
    },
    "F309": {
      "label": "Project full_name, combine_pdf",
      "display": "openfoodfoundation/openfoodnetwork",
      "asOf": "2026-11-20"
    },
    "F310": {
      "label": "Project stargazers_count, combine_pdf",
      "display": "1.3K",
      "asOf": "2026-11-20"
    },
    "F311": {
      "label": "Library name, pdfkit",
      "display": "pdfkit",
      "asOf": "2026-11-20"
    },
    "F312": {
      "label": "All-version lifetime gem downloads, pdfkit",
      "display": "31048099",
      "asOf": "2026-11-20"
    },
    "F313": {
      "label": "License, pdfkit",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F314": {
      "label": "Package release, pdfkit",
      "display": "0.8.7.3",
      "asOf": "2026-11-20"
    },
    "F315": {
      "label": "Package release date, pdfkit",
      "display": "May 2023",
      "asOf": "2026-11-20"
    },
    "F316": {
      "label": "Install, pdfkit",
      "display": "gem install pdfkit -v 0.8.7.3",
      "asOf": "2026-11-20"
    },
    "F317": {
      "label": "Quickstart, pdfkit",
      "display": "require \"pdfkit\"\n\nkit = PDFKit.new(\"<h1>Hello World!</h1>\")\nkit.to_file(\"hello.pdf\")\n",
      "asOf": "2026-11-20"
    },
    "F318": {
      "label": "Official description, pdfkit",
      "display": "Creates PDFs from HTML with wkhtmltopdf.",
      "asOf": "2026-11-20"
    },
    "F319": {
      "label": "Quickstart source file, pdfkit",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F320": {
      "label": "Repository stars, pdfkit",
      "display": "2.9K",
      "asOf": "2026-11-20"
    },
    "F321": {
      "label": "Existing PDF input, pdfkit",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F322": {
      "label": "Browser HTML to PDF, pdfkit",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F323": {
      "label": "Document workflow, pdfkit",
      "display": "Convert HTML or URLs into PDF through wkhtmltopdf; independent Ruby wrapper interface.",
      "asOf": "2026-11-20"
    },
    "F324": {
      "label": "First-call prerequisites, pdfkit",
      "display": "Installed compatible wkhtmltopdf binary and writable output path. Browser/assets/configuration are host requirements; no Rails app needed for this direct first call.",
      "asOf": "2026-11-20"
    },
    "F325": {
      "label": "External workflow contract, pdfkit",
      "display": "Current0.8.7.3 constructor accepts HTML plus options hash; exact helper returns symbol-keyed Hash,defaulting page_size Letter,orientation Landscape,and print_media_type true. to_file accepts destination path. Extra host options must be supported by installed wkhtmltopdf; source local file URL rewrites require appropriate browser access/configuration. Sinatra/ERB/HTML string transformations and ShowoffUtils are host peers,not extra PDFKit operations. Converts full slide HTML and writes PDF; to_file returns a File handle per public API. Does not certify every host template,asset URL,binary flag,or modern Showoff dependency. Native SDK delegates to external wkhtmltopdf,not pure-Ruby browser layout.",
      "asOf": "2026-11-20"
    },
    "F326": {
      "label": "Project function, pdfkit",
      "display": "def pdf(name)\n      @slides = get_slides_html(:static=>true, :toc=>true, :print=>true)\n      @inline = true\n\n      html = erb :onepage\n\n      # Process inline css and js for included images\n      # The css uses relative paths for images and we prepend the file url\n      html.gsub!(/url\\([\\\"\\']?(?!https?:\\/\\/)(.*?)[\\\"\\']?\\)/) do |s|\n        \"url(file://#{settings.pres_dir}/#{$1})\"\n      end\n\n      # remove the weird /files component, since that doesn't exist on the filesystem\n      # replace it for file://<PATH> for correct use with wkhtmltopdf (exactly with qt-webkit)\n      html.gsub!(/<img src=\".\\/file\\/([^\"]*)/) do |s|\n        \"<img src=\\\"file:\\/\\/#{settings.pres_dir}\\/#{$1}\"\n      end\n\n      # PDFKit.new takes the HTML and any options for wkhtmltopdf\n      # run `wkhtmltopdf --extended-help` for a full list of options\n      kit = PDFKit.new(html, ShowoffUtils.showoff_pdf_options(settings.pres_dir))\n\n      # Save the PDF to a file\n      kit.to_file(name)\n    end",
      "asOf": "2026-11-20"
    },
    "F327": {
      "label": "Project source file, pdfkit",
      "display": "lib/showoff.rb",
      "asOf": "2026-11-20"
    },
    "F328": {
      "label": "Project full_name, pdfkit",
      "display": "binford2k/showoff",
      "asOf": "2026-11-20"
    },
    "F329": {
      "label": "Project stargazers_count, pdfkit",
      "display": "948",
      "asOf": "2026-11-20"
    },
    "F330": {
      "label": "Library name, pdf-inspector",
      "display": "pdf-inspector",
      "asOf": "2026-11-20"
    },
    "F331": {
      "label": "All-version lifetime gem downloads, pdf-inspector",
      "display": "24766071",
      "asOf": "2026-11-20"
    },
    "F332": {
      "label": "License, pdf-inspector",
      "display": "Modified Ruby license OR GPLv2 OR GPLv3",
      "asOf": "2026-11-20"
    },
    "F333": {
      "label": "Package release, pdf-inspector",
      "display": "1.3.0",
      "asOf": "2026-11-20"
    },
    "F334": {
      "label": "Package release date, pdf-inspector",
      "display": "Mar 2017",
      "asOf": "2026-11-20"
    },
    "F335": {
      "label": "Install, pdf-inspector",
      "display": "gem install pdf-inspector -v 1.3.0",
      "asOf": "2026-11-20"
    },
    "F336": {
      "label": "Quickstart, pdf-inspector",
      "display": "require \"pdf/inspector\"\n\nanalysis = PDF::Inspector::Text.analyze(File.binread(\"input.pdf\"))\np analysis.strings\n",
      "asOf": "2026-11-20"
    },
    "F337": {
      "label": "Official description, pdf-inspector",
      "display": "Inspects PDF output with analysis classes based on PDF::Reader, mainly for testing Prawn.",
      "asOf": "2026-11-20"
    },
    "F338": {
      "label": "Quickstart source file, pdf-inspector",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F339": {
      "label": "Repository stars, pdf-inspector",
      "display": "182",
      "asOf": "2026-11-20"
    },
    "F340": {
      "label": "Existing PDF input, pdf-inspector",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F341": {
      "label": "Browser HTML to PDF, pdf-inspector",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F342": {
      "label": "Document workflow, pdf-inspector",
      "display": "Inspect PDF drawing/text/page operations through a PDF::Reader-based analysis facade,primarily for testing output.",
      "asOf": "2026-11-20"
    },
    "F343": {
      "label": "First-call prerequisites, pdf-inspector",
      "display": "Existing PDF input. strings returns one fragment per drawing operation,not reconstructed semantic paragraphs; underlying PDF::Reader is a separate dependency/engine.",
      "asOf": "2026-11-20"
    },
    "F344": {
      "label": "Text-analysis granularity, pdf-inspector",
      "display": "strings contains a string for each text drawing operation. Joining may help text searches,but output is fragmented and not semantic paragraph reconstruction. Uses PDF::Reader internally; counters overlap conceptually and are not pooled.",
      "asOf": "2026-11-20"
    },
    "F345": {
      "label": "License alternatives, pdf-inspector",
      "display": "Modified Ruby license OR GPLv2 OR GPLv3",
      "asOf": "2026-11-20"
    },
    "F346": {
      "label": "Library name, hexapdf",
      "display": "HexaPDF",
      "asOf": "2026-11-20"
    },
    "F347": {
      "label": "All-version lifetime gem downloads, hexapdf",
      "display": "15347097",
      "asOf": "2026-11-20"
    },
    "F348": {
      "label": "License, hexapdf",
      "display": "AGPL-3.0 OR commercial",
      "asOf": "2026-11-20"
    },
    "F349": {
      "label": "Package release, hexapdf",
      "display": "1.11.2",
      "asOf": "2026-11-20"
    },
    "F350": {
      "label": "Package release date, hexapdf",
      "display": "Oct 2026",
      "asOf": "2026-11-20"
    },
    "F351": {
      "label": "Install, hexapdf",
      "display": "gem install hexapdf -v 1.11.2",
      "asOf": "2026-11-20"
    },
    "F352": {
      "label": "Quickstart, hexapdf",
      "display": "require \"hexapdf\"\n\ndoc = HexaPDF::Document.new\ncanvas = doc.pages.add.canvas\ncanvas.font(\"Helvetica\", size: 100)\ncanvas.text(\"Hello World!\", at: [20, 400])\ndoc.write(\"hello.pdf\")\n",
      "asOf": "2026-11-20"
    },
    "F353": {
      "label": "Repository stars, hexapdf",
      "display": "1.4K",
      "asOf": "2026-11-20"
    },
    "F354": {
      "label": "Existing PDF input, hexapdf",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F355": {
      "label": "Browser HTML to PDF, hexapdf",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F356": {
      "label": "Document workflow, hexapdf",
      "display": "Read,edit,create,and sign PDF object documents using Ruby APIs; AGPL/commercial alternatives.",
      "asOf": "2026-11-20"
    },
    "F357": {
      "label": "First-call prerequisites, hexapdf",
      "display": "Installed gem and writable output path. Licensing alternatives/asset fonts remain as published. Ruby3.0+ is required by the current own README. Exact simple public HelloWorld document/canvas recipe,not the advanced signing application example.",
      "asOf": "2026-11-20"
    },
    "F358": {
      "label": "External workflow contract, hexapdf",
      "display": "Current official Document reference accepts IO via new and sign(file_or_io,signature:,**handler_options); public Signing reference documents embed_signature(io,signature) for external signing. DefaultHandler public source documents reason,signature_size,and external_signing callback receiving IO/byte range. Original helper builds a native Sig dictionary/widget and passes it as signature; callback captures requested byte ranges and returns empty placeholder before later DER embedding. Selected published version1.11.2 is retained; fetched own implementation VERSION is1.11.1,so no exact1.11.2 implementation/tag assertion. Public documented contract is the basis; source snapshot discrepancy is explicit. Writes prepared signature placeholder,embeds returned DER signature,and returns final PDF bytes before Tempfile cleanup. Original class creates its own example certificate/key; this is framework-supplied external-signing demonstration,not proof of third-party identity trust. Native sign/embed results are otherwise discarded. Requires valid nonempty PDF and signature fitting reserved10000bytes.",
      "asOf": "2026-11-20"
    },
    "F359": {
      "label": "License alternatives, hexapdf",
      "display": "AGPL-3.0 OR commercial",
      "asOf": "2026-11-20"
    },
    "F360": {
      "label": "Published-release/source snapshot conflict, hexapdf",
      "display": "RubyGems reports1.11.2; retained own master version file says1.11.1. Current official public document/signing reference and linked public source support called APIs; an exact1.11.2 implementation/tag was not retained. Do not claim source/binary identity.",
      "asOf": "2026-11-20"
    },
    "F361": {
      "label": "Project function, hexapdf",
      "display": "def signed_pdf\n      signed_file = Tempfile.new(\"signed_pdf\")\n\n      doc = HexaPDF::Document.new(io: StringIO.new(pdf))\n\n      # Prepare the document for embedding of the digital signature\n      data = nil # Used for storing the to-be-signed data\n      signing_mechanism = lambda do |io, byte_range|\n        # Store the to-be-signed data in the local variable data\n        io.pos = byte_range[0]\n        data = io.read(byte_range[1])\n        io.pos = byte_range[2]\n        data << io.read(byte_range[3])\n        \"\"\n      end\n      doc.sign(signed_file.path, signature: signature_widget(doc), reason: caption, signature_size: 10_000, external_signing: signing_mechanism)\n\n      signature = OpenSSL::PKCS7.sign(certificate, key, data,\n                                      # [HexaPDF.demo_cert.sub_ca, HexaPDF.demo_cert.root_ca],\n                                      [],\n                                      OpenSSL::PKCS7::DETACHED | OpenSSL::PKCS7::BINARY).to_der\n\n      # Embed the signature\n      HexaPDF::DigitalSignature::Signing.embed_signature(File.open(signed_file.path, \"rb+\"), signature)\n\n      File.binread(signed_file.path)\n    ensure\n      signed_file.close\n      signed_file.unlink\n    end",
      "asOf": "2026-11-20"
    },
    "F362": {
      "label": "Project source file, hexapdf",
      "display": "decidim-core/lib/decidim/pdf_signature_example.rb",
      "asOf": "2026-11-20"
    },
    "F363": {
      "label": "Project full_name, hexapdf",
      "display": "decidim/decidim",
      "asOf": "2026-11-20"
    },
    "F364": {
      "label": "Project stargazers_count, hexapdf",
      "display": "1.9K",
      "asOf": "2026-11-20"
    },
    "F365": {
      "label": "Library name, pdf-forms",
      "display": "pdf-forms",
      "asOf": "2026-11-20"
    },
    "F366": {
      "label": "All-version lifetime gem downloads, pdf-forms",
      "display": "9437249",
      "asOf": "2026-11-20"
    },
    "F367": {
      "label": "License, pdf-forms",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F368": {
      "label": "Package release, pdf-forms",
      "display": "1.5.2",
      "asOf": "2026-11-20"
    },
    "F369": {
      "label": "Package release date, pdf-forms",
      "display": "Feb 2025",
      "asOf": "2026-11-20"
    },
    "F370": {
      "label": "Install, pdf-forms",
      "display": "gem install pdf-forms -v 1.5.2",
      "asOf": "2026-11-20"
    },
    "F371": {
      "label": "Quickstart, pdf-forms",
      "display": "require \"pdf_forms\"\n\npdftk = PdfForms.new(\"pdftk\")\npdftk.fill_form(\"input.pdf\", \"output.pdf\", {\"foo\" => \"bar\"})\n",
      "asOf": "2026-11-20"
    },
    "F372": {
      "label": "Official description, pdf-forms",
      "display": "Fills PDF templates from a data hash through the pdftk binary, with FDF and XFDF creation.",
      "asOf": "2026-11-20"
    },
    "F373": {
      "label": "Quickstart source file, pdf-forms",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F374": {
      "label": "Repository stars, pdf-forms",
      "display": "304",
      "asOf": "2026-11-20"
    },
    "F375": {
      "label": "Existing PDF input, pdf-forms",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F376": {
      "label": "Browser HTML to PDF, pdf-forms",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F377": {
      "label": "Document workflow, pdf-forms",
      "display": "Read/fill PDF form data through a Ruby wrapper around pdftk,including Java-port-compatible workflow.",
      "asOf": "2026-11-20"
    },
    "F378": {
      "label": "First-call prerequisites, pdf-forms",
      "display": "Installed pdftk executable or compatible Java port,readable fillable input.pdf with field foo,and writable output.pdf. Not OCR or HTML conversion.",
      "asOf": "2026-11-20"
    },
    "F379": {
      "label": "External workflow contract, pdf-forms",
      "display": "Actual tagged1.5.2 module factory returns PdftkWrapper,accepting explicit pdftk executable name. PdfForms::Pdf.new(path,wrapper,options={}) accepts existing readable PDF path and utf8_fields:true; class fields reader returns Field objects using dump_data_fields_utf8 when selected. Public SDK constructors are real wrapper/document operations,not TypedDict configuration padding. Current module imports the document class. Constructed Pdf object is passed to original Limarka::Pdfconf adapter,then its exported configuration is saved as YAML. YAML schema,validation mode false,filesystem changes,and colorized host logging are not native SDK guarantees. This example reads PDF form configuration rather than pretending to fill a PDF.",
      "asOf": "2026-11-20"
    },
    "F380": {
      "label": "Project function, pdf-forms",
      "display": "def exporta\n      configuracao_pdf  = \"configuracao.pdf\"\n      configuracao_yaml = \"configuracao.yaml\"\n      Dir.chdir(options[:input_dir]) do\n        raise IOError, \"Arquivo não encontrado: #{options[:input_dir]}/\" + configuracao_pdf unless File.exist? (configuracao_pdf)\n        pdf = PdfForms::Pdf.new configuracao_pdf, (PdfForms.new 'pdftk'), utf8_fields: true\n        pdfconf = Limarka::Pdfconf.new(pdf: pdf)\n\n        # exporta sem validação\n        h = pdfconf.exporta(false)\n\n        target_file = options[:output_dir]+'/'+configuracao_yaml\n        puts \"Sobrescrevendo #{target_file}\".green if File.exist?(target_file)\n        Limarka::Trabalho.save_yaml(h, target_file)\n      end\n    end",
      "asOf": "2026-11-20"
    },
    "F381": {
      "label": "Project source file, pdf-forms",
      "display": "lib/limarka/configuracao.rb",
      "asOf": "2026-11-20"
    },
    "F382": {
      "label": "Project full_name, pdf-forms",
      "display": "abntex/limarka",
      "asOf": "2026-11-20"
    },
    "F383": {
      "label": "Project stargazers_count, pdf-forms",
      "display": "446",
      "asOf": "2026-11-20"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best Ruby PDF libraries Prawn HexaPDF CombinePDF PDF Reader code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
