Skip to content

DG02002/inlinepdf

Repository files navigation

InlinePDF Logo

InlinePDF

InlinePDF is a local-first PDF workspace for fast document operations without mandatory cloud upload.

Many PDF tools require server upload before merge, crop, extract, or conversion workflows can start. InlinePDF addresses that privacy and latency problem by running core file processing in the browser on local files. The result is a direct workflow for everyday PDF work, including retailer label preparation.

InlinePDF Preview

What InlinePDF Does

Core Tools

Merge PDF combines multiple PDFs in a selected order.
Extract Pages creates a new PDF from selected pages.
Crop PDF applies precise page-level cropping controls.
Image to PDF combines JPG and PNG files into one PDF.
PDF to Images exports pages as images in a ZIP archive.
PDF Info inspects metadata, producer details, and font data locally.

Retailer Label Workflows

InlinePDF includes dedicated shipping-label preparation for Meesho Labels, Amazon Labels, and Flipkart Labels from marketplace PDFs.

What Is Unique

Document operations run in-browser instead of remote processing. The same product includes general-purpose PDF tools and retailer label workflows, so multiple document tasks stay in one local-first workspace. The architecture is modular, which keeps feature delivery focused and predictable.

Benchmark

This benchmark uses one real retailer-label workflow so people can compare local-first performance quickly.

  • Input file: Meesho_784_pages.pdf
  • File size: 8.1 MB
  • Pages: 784
  • Workflow: Meesho Labels
  • Test condition: SKU sorting was turned on for every run, including InlinePDF, E-LabelCrop, and PDF Cropper, to keep the comparison fair.
Product Processing location Device or service Outcome Time Evidence
InlinePDF Local MacBook Air M4 Completed 11s Screenshot
InlinePDF Local Pixel 7a Completed 18s Screenshot
InlinePDF Local realme 2 Pro Completed 42s Screenshot
E-LabelCrop Cloud elabelcrop.com Completed 40.50s Screenshot
PDF Cropper Cloud pdfcropper.in Did not complete this file at the time of testing N/A Screenshot

Technical Notes

  • These results suggest that this Meesho Labels workload depends more on processor performance than on RAM for this input size.
  • The tested realme 2 Pro unit completed the job on the 4GB + 64GB variant. According to the realme 2 Pro tech specs, that model uses a Qualcomm Snapdragon 660 AIE processor with an octa-core CPU.
  • This does not mean RAM never matters. It suggests that 4GB was sufficient for this 784-page, 8.1 MB benchmark and that the larger performance gap is more likely tied to processor class and JavaScript execution speed than RAM capacity alone.
  • To match the benchmarked Chrome results, keep V8 optimization enabled. Google says V8 optimization is turned on by default to improve site performance. All benchmark runs in this section were performed with that setting enabled.
  • On Chrome for desktop, the path is Privacy and security > Security > Manage V8 security, then select Sites can use the V8 optimizer.
  • On Chrome for Android, open Privacy and security > JavaScript optimization and security, and leave JavaScript optimization turned on.

This is a point-in-time comparison for a single file and workflow. Results vary by device performance, browser, thermal state, network conditions, and service load.

The cloud services in this comparison showed ads during testing. InlinePDF completed the same Meesho label workflow locally on each tested device.

Build, Test, and Deploy

Local Development

pnpm install
pnpm run dev

Quality Gates

pnpm run lint
pnpm run typecheck
pnpm run build
pnpm run test

Local Release Readiness

pnpm run verify

This command runs linting, type checks, tests, and build in sequence.

Cloudflare Deploy

pnpm run deploy

pnpm run build generates Worker and static asset output under build/. wrangler deploy publishes the production Worker build. For staging, run wrangler deploy --env staging after build.

License

InlinePDF is released under the MIT License.

Acknowledgments

  • PDF.js: PDF rendering and parsing are powered by Mozilla's pdfjs-dist. (License)

  • pdf-lib: PDF creation and document manipulation are powered by pdf-lib. (License)

  • React + React Router + Vite: Application runtime and UI delivery are built with React, React Router, and Vite. (License, License, License)

  • Tailwind CSS + shadcn/ui + Base UI: Design system and component primitives are built with Tailwind CSS, shadcn, and Base UI. (License, License, License)

  • dnd-kit: Drag-and-drop interactions for file and page workflows are powered by @dnd-kit. (License)

  • JSZip: ZIP export workflows are powered by jszip. (License)

  • Hugeicons: Product iconography uses @hugeicons/core-free-icons and @hugeicons/react. (License)

  • Cloudflare Workers: Deployment and edge delivery are hosted on Cloudflare Workers.

About

InlinePDF is a local-first PDF workspace for fast document operations without mandatory cloud upload.

Resources

License

Stars

Watchers

Forks

Contributors

Languages