pdf
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data β all from the browser, and deployed in milliseconds.
This directory contains TypeScript types and utilities shared between the frontend and backend.
Defines the structure for PDF tool operations:
type: Operation identifiername: Display namedescription: Tool descriptionicon: Emoji icon
Manages file upload state:
files: Array of selected filesisUploading: Upload statuserror: Error message if any
PDF metadata structure:
pageCount: Number of pagestitle,author,subject: PDF metadatacreationDate,modificationDate: TimestampsisEncrypted: Encryption statusfileSize: File size in bytes
Type definitions for tool-specific options:
SplitOptions: Page selection modesRotateOptions: Rotation angle and pagesProtectOptions: Password and permissionsConversionOptions: Image format and quality
Standard response format:
success: Operation success statusmessage: Status or error messagedownloadUrl: File download URLfilename: Suggested filenameinfo: PDF information (for info operations)
These types ensure type safety across the frontend and backend, providing a consistent interface for PDF operations and data structures.