1import{s as a}from"./index-5sf7JV6p.js";import{I as e}from"./installCommands-t20512Mu.js";const s=[{id:"rust",displayName:"Rust",installCommand:e.rust,registryUrl:"https://crates.io/crates/pdfluent",registryLabel:"crates.io",docsPath:"/docs/rust/",snippetLanguage:"rust",smokeSnippet:a["smoke-page-count"]},{id:"python",displayName:"Python",installCommand:e.python,registryUrl:"https://pypi.org/project/pdfluent/",registryLabel:"PyPI",docsPath:"/docs/python/",snippetLanguage:"python",smokeSnippet:`import pdfluent 2 3doc = pdfluent.open("invoice.pdf") 4print(f"{doc.page_count()} pages")`},{id:"wasm",displayName:"WASM / JavaScript",installCommand:e.wasm,registryUrl:"https://www.npmjs.com/package/@pdfluent/sdk-wasm",registryLabel:"npm",docsPath:"/docs/wasm/",snippetLanguage:"typescript",smokeSnippet:`import init, { PdfDocument } from '@pdfluent/sdk-wasm'; 5 6await init(); 7const bytes = new Uint8Array(await file.arrayBuffer()); 8const doc = PdfDocument.open(bytes); 9console.log(\`\${doc.pageCount()} pages\`);`},{id:"dotnet",displayName:".NET",installCommand:e.dotnet,registryUrl:"https://www.nuget.org/packages/PDFluent",registryLabel:"NuGet",docsPath:"/docs/dotnet/",snippetLanguage:"csharp",smokeSnippet:`using PDFluent; 10 11using var doc = PdfDocument.Open("invoice.pdf"); 12Console.WriteLine($"{doc.PageCount} pages");`},{id:"java",displayName:"Java",installCommand:e.javaGav,registryUrl:"https://central.sonatype.com/artifact/com.pdfluent/pdfluent",registryLabel:"Maven Central",docsPath:"/docs/java/",snippetLanguage:"java",smokeSnippet:`import com.pdfluent.PdfDocument; 13 14try (PdfDocument doc = PdfDocument.open("invoice.pdf")) { 15 System.out.println(doc.pageCount() + " pages"); 16}`},{id:"node",displayName:"Node.js",installCommand:e.node,registryUrl:"https://www.npmjs.com/package/@pdfluent/node",registryLabel:"npm",docsPath:"/docs/node/",snippetLanguage:"typescript",smokeSnippet:`import { PdfDocument } from '@pdfluent/node'; 17import { readFileSync } from 'node:fs'; 18 19const doc = PdfDocument.open(readFileSync('invoice.pdf')); 20console.log(\`\${doc.pageCount} pages\`);`}],d=`<dependency> 21 <groupId>com.pdfluent</groupId> 22 <artifactId>pdfluent</artifactId> 23 <version>${e.javaVersion}</version> 24</dependency>`;function r(t){const n=s.find(o=>o.id===t);if(!n)throw new Error(`Unknown channel id: ${t}`);return n}export{s as D,d as J,r as g};
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.