Skip to content

celsowm/pagyra-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pagyra-js

A TypeScript-based HTML to PDF converter library.

Project Structure

  • src/ - Contains all source TypeScript files

    • src/pdf/ - PDF generation and rendering logic
    • src/html/ - HTML parsing and conversion logic
    • src/css/ - CSS parsing and styling logic
    • src/layout/ - Layout calculation logic
    • Other source directories...
  • dist/ - Contains compiled JavaScript files (generated by build)

    • dist/pdf/ - Compiled PDF module
    • dist/html/ - Compiled HTML module
    • Other compiled modules...
  • Root files:

    • package.json - Project dependencies and scripts
  • tsconfig.json - TypeScript configuration

  • vitest.config.ts - Testing configuration

Development

  1. Install dependencies: npm install
  2. Build the project: npm run build
  3. Run tests: npm test
  4. Run playground: npm run playground

Build Process

This is a TypeScript project that compiles source files from the src/ directory to JavaScript files in the dist/ directory. The build process is configured in tsconfig.json.

Note: Do not modify files in the dist/ directory directly. Make changes in the src/ directory and run npm run build to generate updated compiled files.

About

Typescript and Javascript PDF engine with rich layout and HTML support

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •