PDF Upload Demo

Upload PDF

Max 3 PDFs | PDF only | Max 2MB per file
Select a PDF document to upload (0/3)
Requirements: PDF format only, maximum file size 2MB
No PDFs uploaded yet. Use the form above to upload your first PDF document.

PDF Storage Benefits

  • Automatic Preview Thumbnails: First page of each PDF is converted to image thumbnails (150x150, 400x400, 800x800)
  • Organized Storage: PDFs are stored in a dedicated collection
  • Metadata Tracking: File size, MIME type, and upload date are automatically tracked
  • Easy Retrieval: Download or view PDFs directly in the browser
  • Secure Deletion: Both database records and physical files are removed together

Use Cases

  • Document management systems
  • Invoice and receipt storage
  • Report archives
  • User manuals and documentation
  • Contract and legal document storage

How PDF Thumbnails Work

  1. When you upload a PDF, the system uses Ghostscript to convert the first page to a JPG image
  2. This preview image is then processed through the same image processor as regular images
  3. Multiple variants are automatically generated: thumbnail (150x150), medium (400x400), and large (800x800)
  4. The thumbnail variants are stored alongside the original PDF and tracked in the database
  5. These thumbnails provide quick visual previews without opening the full PDF

Note: PDF thumbnail generation requires Ghostscript to be installed on the server. The thumbnails are generated automatically during the upload process.

Path Structure

PDFs are stored with this pattern:
FileStorage/pdfs/{randomPath}/{id}/{filename}.{extension}


Send your feedback or bugreport!