{"id":52347,"library":"phpdave11-gofpdi","title":"gofpdi","description":"Package gofpdi provides PDF document import functionality for use with gofpdf.","status":"active","version":"1.0.16","language":"go","source_language":null,"source_url":"https://github.com/phpdave11/gofpdi","tags":["pdf","import","template","gofpdf"],"install":[{"cmd":"go get github.com/phpdave11/gofpdi","lang":"bash","label":"Install github.com/phpdave11/gofpdi"}],"dependencies":[],"imports":[{"symbol":"gofpdi","correct":"github.com/phpdave11/gofpdi"}],"quickstart":{"code":"package main\n\nimport (\n\t\"github.com/phpdave11/gofpdi\"\n\t\"github.com/go-pdf/fpdf\"\n)\n\nfunc main() {\n\tpdf := fpdf.New(\"P\", \"mm\", \"A4\", \"\")\n\tpdf.AddPage()\n\n\t// Import an existing PDF page as a template\n\ttpl := gofpdi.ImportPage(pdf, \"source.pdf\", 1, \"/MediaBox\")\n\tgofpdi.UseImportedTemplate(pdf, tpl, 0, 0, 210, 0)\n\n\tpdf.OutputFileAndClose(\"output.pdf\")\n}","lang":"go","description":"Import a page from an existing PDF and use it as a template."},"warnings":[],"env_vars":null,"search_vec":"'document':6 'function':8 'gofpdf':12,16 'gofpdi':1,3 'import':7,14 'packag':2 'pdf':5,13 'provid':4 'templat':15 'use':10","created_at":"2026-06-15T06:51:12.085381+00:00","updated_at":"2026-06-15T06:51:12.085381+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/phpdave11/gofpdi","github":"https://github.com/phpdave11/gofpdi","docs":"https://pkg.go.dev/github.com/phpdave11/gofpdi#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility","other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-15","next_check":"2026-12-12","install_tag":null}}