PageSourceSearch

https://page2doc.com/assets/chatgpt-page-P_OH1ggc.js

js page2doc.com collected 2026-09-24 14:49:57 UTC 19,589 bytes, 1 lines download raw bytes

1import{y as c,u as m,j as e,at as t,A as a,a1 as l,Z as x,S as r,L as h,d as p,au as b,a as o,F as d}from"./index--O6ybP7K.js";import{F as i}from"./file-code-corner-BLqWi1m8.js";import{C as n}from"./code-xml-BYHAp0dz.js";const g=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],u=c("terminal",g),k="2026-07-30",j=[{number:"01",title:"Add Page2Doc to ChatGPT",body:'Open ChatGPT, go to "Explore GPTs", and install the Page2Doc action. Authentication is pre-configured by the GPT owner — takes under 60 seconds.',icon:e.jsx(t,{className:"w-6 h-6 text-emerald-500"})},{number:"02",title:"Ask ChatGPT to convert any URL",body:'Type: "Convert https://example.com/article to PDF" — or Word, Excel, Markdown, JSON, HTML, or CSV. ChatGPT calls the Page2Doc API automatically.',icon:e.jsx(u,{className:"w-6 h-6 text-blue-500"})},{number:"03",title:"Receive your download link",body:"ChatGPT returns a direct download link for the converted document. No copy-paste, no browser tabs — just one natural language prompt.",icon:e.jsx(b,{className:"w-6 h-6 text-violet-500"})}],N=[{label:"PDF",ext:"pdf",desc:"Print-ready, shareable, widely supported",icon:e.jsx(o,{className:"w-5 h-5 text-red-500"}),color:"bg-red-50 border-red-100"},{label:"Word",ext:"docx",desc:"Editable .docx with headings, tables & images",icon:e.jsx(o,{className:"w-5 h-5 text-blue-600"}),color:"bg-blue-50 border-blue-100"},{label:"Excel",ext:"xlsx",desc:"All HTML tables extracted to spreadsheet",icon:e.jsx(d,{className:"w-5 h-5 text-green-600"}),color:"bg-green-50 border-green-100"},{label:"Markdown",ext:"md",desc:"Clean text for wikis, notes, LLM input",icon:e.jsx(n,{className:"w-5 h-5 text-gray-600"}),color:"bg-gray-50 border-gray-100"},{label:"JSON",ext:"json",desc:"Structured content for pipelines & APIs",icon:e.jsx(i,{className:"w-5 h-5 text-yellow-600"}),color:"bg-yellow-50 border-yellow-100"},{label:"HTML",ext:"html",desc:"Sanitized HTML without ads or nav clutter",icon:e.jsx(n,{className:"w-5 h-5 text-orange-500"}),color:"bg-orange-50 border-orange-100"},{label:"CSV",ext:"csv",desc:"Raw tabular data from any page",icon:e.jsx(d,{className:"w-5 h-5 text-teal-600"}),color:"bg-teal-50 border-teal-100"}],f=[{title:"Research & summaries",body:"Ask ChatGPT to convert a research paper URL to PDF, then summarise it — all in one conversation."},{title:"Data extraction",body:"Tell ChatGPT to pull a page's tables to Excel. The API extracts every HTML table into separate sheets."},{title:"Content archiving",body:"Convert news articles, blog posts, or documentation pages to Markdown for offline storage or Obsidian."},{title:"Automation workflows",body:"Use the JSON format to feed structured webpage content into AI pipelines, RAG systems, or custom apps."},{title:"Multi-format reports",body:"Convert the same URL to PDF and Word in one session — ChatGPT calls the API twice, you get both files."},{title:"Language & translation",body:"Pair with Page2Doc's AI translation endpoint to convert-then-translate in a single ChatGPT session."}],w=[{q:"What is the ChatGPT + Page2Doc integration?",a:"It's a GPT Action that lets ChatGPT call the Page2Doc API on your behalf. You describe what you want in plain English, and ChatGPT converts the URL — no code required."},{q:"How does authentication work?",a:"Authentication is handled automatically — it is configured by the GPT owner using Page2Doc backend credentials. You do not need to provide your own API key. Free plan allows 3 conversions per day; Pro users get a higher monthly limit."},{q:"What URL formats does it support?",a:"Any publicly accessible HTTPS URL — news articles, blog posts, Wikipedia pages, documentation sites, product pages, research papers, and more."},{q:"Is there a free tier?",a:"Yes. Free plan users get 3 ChatGPT conversions per day with no credit card required. For higher limits, upgrade on the pricing page."},{q:"How long are the download links valid?",a:"Download links expire after 24 hours. If your link has expired, you can ask ChatGPT to re-convert the URL to get a fresh link instantly."},{q:"Can I use this in my own GPT?",a:"Yes. The OpenAPI schema is available at /openapi/page2doc-chatgpt.yaml. Add it as a custom action in any GPT or LLM tool that supports OpenAPI-based tool calls."}];function T(){return m(),e.jsxs("div",{className:"min-h-screen bg-background text-foreground",children:[e.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-slate-900 via-slate-800 to-emerald-900 text-white",children:[e.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(ellipse_at_top_right,rgba(16,185,129,0.15),transparent_60%)]"}),e.jsxs("div",{className:"relative max-w-6xl mx-auto px-4 sm:px-6 py-14 md:py-28",children:[e.jsxs("div",{className:"inline-flex items-center gap-2 rounded-full bg-emerald-500/10 border border-emerald-500/20 px-4 py-1.5 text-emerald-400 text-sm font-medium mb-6",children:[e.jsx(t,{className:"w-4 h-4"}),"ChatGPT GPT Action"]}),e.jsxs("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-6xl font-bold leading-tight mb-5 max-w-3xl",children:["Convert Any URL to PDF"," ",e.jsx("span",{className:"bg-gradient-to-r from-emerald-400 to-cyan-400 bg-clip-text text-transparent",children:"directly in ChatGPT"})]}),e.jsx("p",{className:"text-base sm:text-lg md:text-xl text-slate-300 max-w-2xl mb-8 leading-relaxed",children:"Add the Page2Doc GPT Action to ChatGPT and convert any webpage to PDF, Word, Excel, Markdown, JSON, or CSV — just by asking. No copy-
1paste, no extra tabs."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-4",children:[e.jsxs("a",{href:"https://page2doc.com/pricing#token","data-testid":"link-chatgpt-get-started",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-emerald-500 hover:bg-emerald-400 text-white font-semibold px-7 py-3.5 transition-colors shadow-lg shadow-emerald-500/25",children:["Get your API key ",e.jsx(a,{className:"w-4 h-4"})]}),e.jsxs("a",{href:"https://chatgpt.com/g/g-6a1b44ab77188191a1c412443f171cd7-page2doc-webpage-converter","data-testid":"link-chatgpt-schema",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-white/10 hover:bg-white/15 border border-white/20 text-white font-medium px-7 py-3.5 transition-colors",children:[e.jsx(t,{className:"w-4 h-4"}),"P2D GPT Action"]})]}),e.jsx("p",{className:"mt-5 text-sm text-slate-400",children:"Free plan · 3 conversions/day · No credit card required"})]})]}),e.jsx("section",{className:"py-12 md:py-20 px-4 sm:px-6 bg-background",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-10 md:mb-14",children:[e.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold mb-3 md:mb-4",children:"How it works"}),e.jsx("p",{className:"text-muted-foreground text-base md:text-lg max-w-xl mx-auto",children:"Three steps from zero to converted document — entirely inside ChatGPT."})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-5 md:gap-8",children:j.map(s=>e.jsxs("div",{className:"relative p-5 sm:p-7 rounded-2xl border border-border bg-card shadow-sm",children:[e.jsx("div",{className:"text-4xl font-black text-muted-foreground/20 mb-4",children:s.number}),e.jsx("div",{className:"mb-3",children:s.icon}),e.jsx("h3",{className:"text-base sm:text-lg font-semibold mb-2",children:s.title}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:s.body})]},s.number))})]})}),e.jsx("section",{className:"py-12 md:py-20 px-4 sm:px-6 bg-muted/30",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-10 md:mb-14",children:[e.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold mb-3 md:mb-4",children:"7 output formats"}),e.jsx("p",{className:"text-muted-foreground text-base md:text-lg max-w-xl mx-auto",children:"Tell ChatGPT which format you need — it handles the rest."})]}),e.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3 sm:gap-4",children:N.map(s=>e.jsxs("div",{className:`p-4 sm:p-5 rounded-xl border ${s.color} flex flex-col gap-2 sm:gap-3`,"data-testid":`card-format-${s.ext}`,children:[e.jsxs("div",{className:"flex items-center gap-2",children:[s.icon,e.jsxs("span",{className:"font-semibold text-xs sm:text-sm",children:[".",s.ext.toUpperCase()]}),e.jsx("span",{className:"ml-auto text-xs font-medium text-muted-foreground hidden sm:block",children:s.label})]}),e.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:s.desc})]},s.ext))})]})}),e.jsx("section",{className:"py-12 md:py-20 px-4 sm:px-6 bg-background",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-10 md:mb-12",children:[e.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold mb-3 md:mb-4",children:"Natural language, real results"}),e.jsx("p",{className:"text-muted-foreground text-base md:text-lg",children:"No API calls, no code — just ask ChatGPT."})]}),e.jsxs("div",{className:"rounded-2xl border border-border bg-slate-950 text-slate-100 p-4 sm:p-6 md:p-8 font-mono text-xs sm:text-sm shadow-xl overflow-hidden",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-5 sm:mb-6",children:[e.jsx("div",{className:"w-3 h-3 rounded-full bg-red-500/70"}),e.jsx("div",{className:"w-3 h-3 rounded-full bg-yellow-500/70"}),e.jsx("div",{className:"w-3 h-3 rounded-full bg-green-500/70"}),e.jsx("span",{className:"ml-3 text-slate-500 text-xs font-sans",children:"ChatGPT"})]}
1),e.jsxs("div",{className:"space-y-4 sm:space-y-5",children:[e.jsxs("div",{className:"flex gap-2 sm:gap-3",children:[e.jsx("span",{className:"text-emerald-400 shrink-0",children:"You"}),e.jsxs("p",{className:"text-slate-200 break-all min-w-0",children:["Convert ",e.jsx("span",{className:"text-cyan-400",children:"https://en.wikipedia.org/wiki/Artificial_intelligence"})," to PDF"]})]}),e.jsxs("div",{className:"flex gap-2 sm:gap-3",children:[e.jsx("span",{className:"text-violet-400 shrink-0",children:"ChatGPT"}),e.jsxs("p",{className:"text-slate-300 min-w-0",children:["I'll convert that URL to PDF using Page2Doc…",e.jsx("br",{}),e.jsx("br",{}),"✓ Job queued — ",e.jsx("span",{className:"text-yellow-400",children:"job_7f3a1c9e2b"}),e.jsx("br",{}),"✓ Processing complete (12s)",e.jsx("br",{}),e.jsx("br",{}),e.jsx("span",{className:"text-emerald-400",children:"📄 Download your PDF"}),e.jsx("br",{}),e.jsx("span",{className:"text-slate-500 text-xs",children:"Link valid for 24 hours · 2.1 MB"})]})]}),e.jsxs("div",{className:"flex gap-2 sm:gap-3",children:[e.jsx("span",{className:"text-emerald-400 shrink-0",children:"You"}),e.jsx("p",{className:"text-slate-200 min-w-0",children:"Now convert it to Markdown too"})]}),e.jsxs("div",{className:"flex gap-2 sm:gap-3",children:[e.jsx("span",{className:"text-violet-400 shrink-0",children:"ChatGPT"}),e.jsxs("p",{className:"text-slate-300 min-w-0",children:["Converting the same URL to Markdown…",e.jsx("br",{}),e.jsx("br",{}),"✓ Done in 3s",e.jsx("br",{}),e.jsx("br",{}),e.jsx("span",{className:"text-emerald-400",children:"📝 Download Markdown"})]})]})]})]})]})}),e.jsx("section",{className:"py-12 md:py-20 px-4 sm:px-6 bg-muted/30",children:e.jsxs("div",{className:"max-w-5xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-10 md:mb-14",children:[e.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold mb-3 md:mb-4",children:"What you can build"}),e.jsx("p",{className:"text-muted-foreground text-base md:text-lg max-w-xl mx-auto",children:"From research to automation, the ChatGPT + Page2Doc combination unlocks powerful use cases."})]}),e.jsx("div",{className:"grid sm:grid-cols-2 lg:grid-cols-3 gap-4 sm:gap-6",children:f.map(s=>e.jsxs("div",{className:"p-5 sm:p-6 rounded-2xl bg-card border border-border",children:[e.jsx(l,{className:"w-5 h-5 text-emerald-500 mb-3"}),e.jsx("h3",{className:"font-semibold mb-2 text-sm sm:text-base",children:s.title}),e.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:s.body})]},s.title))})]})}),e.jsx("section",{className:"py-12 md:py-20 px-4 sm:px-6 bg-background",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-10 md:mb-12",children:[e.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold mb-3 md:mb-4",children:"Simple, transparent limits"}),e.jsx("p",{className:"text-muted-foreground text-base md:text-lg",children:"Start free — upgrade when you need more."})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4 sm:gap-6",children:[e.jsxs("div",{className:"rounded-2xl border border-border bg-card p-5 sm:p-8",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-5 sm:mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-slate-100 dark:bg-slate-800 flex items-center justify-center shrink-0",children:e.jsx(x,{className:"w-5 h-5 text-slate-500"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-bold text-lg",children:"Free"}),e.jsx("div",{className:"text-muted-foreground text-sm",children:"No credit card"})]})]}),e.jsx("ul",{className:"space-y-3 text-sm",children:["3 conversions / day","All 7 output formats","PDF, Word & Excel","Markdown, JSON, HTML","24-hour download links"].map(s=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(l,{className:"w-4 h-4 text-emerald-500 shrink-0"}),s]},s))}),e.jsx("a",{href:"https://page2doc.com/pricing","data-testid":"link-free-plan",className:"mt-6 sm:mt-7 block text-center rounded-xl bg-slate-100 dark:bg-slate-800 hover:bg-slate-200 dark:hover:bg-slate-700 text-foreground font-medium py-3 transition-colors",children:"Get your API key"})]}),e.jsxs("div",{className:"rounded-2xl border-2 border-emerald-500 bg-card p-5 sm:p-8 relative",children:[e.jsx("div",{className:"absolute -top-3 left-6 bg-emerald-500 text-white text-xs font-bold px-3 py-1 rounded-full",children:"MOST POPULAR"}),e.jsxs("div",{className:"flex items-center gap-3 mb-5 sm:mb-6",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-emerald-50 dark:bg-emerald-900/30 flex items-center justify-center shrink-0",children:e.jsx(r,{className:"w-5 h-5 text-emerald-500"})}),e.jsxs("div",{children:[e.jsx("div",{className:"font-bold text-lg",children:"Pro"}),e.jsx("div",{className:"text-muted-foreground text-sm",children:"Higher monthly limit"})]})]}),e.jsx("ul",{className:"space-y-3 text-sm",children:["Unlimited conversions / month","All 7 output formats","Priority Puppeteer queue","AI summarize & translate","Email invoice support"].map(s=>e.jsxs("li",{className:"flex items-center gap-2",children:[e.jsx(l,{className:"w-4 h-4 text-emerald-500 shrink-0"}),s]},s))}),e.jsx(h,{href:"/pricing#token","data-testid":"link-pro-plan",className:"mt-6 sm:mt-7 block text-center rounded-xl bg-emerald-500 hover:bg-emerald-400 text-white font-semibold py-3 transition-colors shadow-lg shadow-emerald-500/20",children:"Upgrade to Pro"})]})]})]})}),e.jsx("section",{className:"py-12 md:py-20 px-4 sm:px-6 bg-muted/30",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsxs("div",{className:"text-center mb-10 md:mb-12",children:[e.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold mb-3 md:mb-4",children:"Technical setup"}),e.jsx("p",{className:"text-muted-foreground text-base md:text-lg",children:"Developers can configure custom GPTs or LLM pipelines directly."})]}),e.jsxs("div",{className:"grid md:grid-cols-2 gap-4 sm:gap-6",children:[e.jsxs("div",{className:"rounded-2xl border border-border bg-card p-5 md:p-7",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(p,{className:"w-5 h-5 text-blue-500"}),e.jsx("h3",{className:"font-semibold",children:"API workflow"})]}),e.jsxs("ol",{className:"space-y-3 text-sm text-muted-foreground list-decimal list-inside",children:[e.jsx("li",{children:"POST /api/chatgpt/convert — submit URL + format"}),e.jsx("li",{children:"GET /api/chatgpt/jobs/:id — poll until completed"}),e.jsx("li",{children:"Present the downloadUrl to the user"})]}),e.jsxs("a",{href:"https://chatgpt.com/g/g-6a1b44ab77188191a1c412443f171cd7-page2doc-webpage-converter","data-testid":"link-openapi-yaml",target:"_blank",rel:"noopener noreferrer",className:"mt-5 inline-flex items-center gap-2 text-sm text-blue-600 dar
1k:text-blue-400 hover:underline font-medium",children:[e.jsx(i,{className:"w-4 h-4"}),"P2D GPT Action"]})]}),e.jsxs("div",{className:"rounded-2xl border border-border bg-card p-5 md:p-7",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[e.jsx(r,{className:"w-5 h-5 text-emerald-500"}),e.jsx("h3",{className:"font-semibold",children:"Authentication"})]}),e.jsx("p",{className:"text-sm text-muted-foreground mb-3",children:"Authentication is pre-configured by the GPT owner:"}),e.jsxs("code",{className:"block bg-muted rounded-lg px-4 py-3 text-xs font-mono text-foreground break-all",children:["Authorization: Bearer ","<token>"]}),e.jsx("p",{className:"mt-3 text-xs text-muted-foreground",children:"This GPT uses Page2Doc backend authentication configured by the GPT owner. No user-supplied API key is needed."})]})]})]})}),e.jsx("section",{className:"py-12 md:py-20 px-4 sm:px-6 bg-background",children:e.jsxs("div",{className:"max-w-3xl mx-auto",children:[e.jsx("div",{className:"text-center mb-10 md:mb-12",children:e.jsx("h2",{className:"text-2xl md:text-3xl lg:text-4xl font-bold mb-3 md:mb-4",children:"Frequently asked questions"})}),e.jsx("div",{className:"space-y-3 sm:space-y-4",children:w.map(s=>e.jsxs("details",{className:"group rounded-xl border border-border bg-card p-4 sm:p-5 cursor-pointer","data-testid":`faq-${s.q.slice(0,30).replace(/\s+/g,"-").toLowerCase()}`,children:[e.jsxs("summary",{className:"flex items-center justify-between font-medium list-none text-sm sm:text-base",children:[e.jsx("span",{className:"min-w-0 pr-2",children:s.q}),e.jsx(a,{className:"w-4 h-4 text-muted-foreground group-open:rotate-90 transition-transform shrink-0"})]}),e.jsx("p",{className:"mt-3 text-muted-foreground text-sm leading-relaxed",children:s.a})]},s.q))})]})}),e.jsx("section",{className:"py-14 md:py-20 px-4 sm:px-6 bg-gradient-to-br from-slate-900 via-slate-800 to-emerald-900 text-white",children:e.jsxs("div",{className:"max-w-2xl mx-auto text-center",children:[e.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-bold mb-4 sm:mb-5",children:"Ready to convert URLs in ChatGPT?"}),e.jsx("p",{className:"text-slate-300 text-base sm:text-lg mb-7 sm:mb-8",children:"Free plan available. No credit card, no setup beyond one ChatGPT action install."}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 sm:gap-4 justify-center",children:[e.jsxs("a",{href:"https://page2doc.com/pricing#token","data-testid":"link-cta-start",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-emerald-500 hover:bg-emerald-400 text-white font-semibold px-8 py-3.5 transition-colors shadow-lg shadow-emerald-500/25",children:["Get your API key ",e.jsx(a,{className:"w-4 h-4"})]}),e.jsxs("a",{href:"https://chatgpt.com/g/g-6a1b44ab77188191a1c412443f171cd7-page2doc-webpage-converter","data-testid":"link-cta-ai-features",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 rounded-xl bg-white/10 hover:bg-white/15 border border-white/20 text-white font-medium px-8 py-3.5 transition-colors",children:[e.jsx(t,{className:"w-4 h-4"}),"P2D GPT Action"]})]})]})})]})}export{k as PAGE_LASTMOD,T as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.