Skip to content

bennetbo/PdfGenerator

Repository files navigation

PdfGenerator

This web service generates PDF files with easy-to-understand and standard-compliant measurement parameters for software testing and custom usage.

API Reference

Get all valid page size aliases

  GET /pagesizes

returns a list of aliased PageSize like A4, A0 or LETTER, ...

Generate a PDF document containing lorem-impsum sentences

by alias
  GET /generate/${pagesize}/${pagecount}
Parameter Type Description
pagesize PageSize Required. Pagesize alias to use for file generation (A4, A5, ...)
pagecount int Required. Number of pages the document should have
or by using explicit size arguments
  GET /generate/${width}/${height}/${pagecount}
Parameter Type Description
width int Required. Page width in points to be used in document generation
height int Required. Page height in points to be used in document generation
pagecount int Required. Number of pages the document should have

Contents

Get a PDF document with empty pages

  GET /generate/empty/${pagesize}/${pagecount}
  GET /generate/empty/${width}/${height}/${pagecount}

Get a PDF document with gradient images

  GET /generate/imaged/${pagesize}/${pagecount}
  GET /generate/imaged/${width}/${height}/${pagecount}

Get a PDF document with an image of an adorable cat

  GET /generate/imaged/cat/${pagesize}/${pagecount}
  GET /generate/imaged/cat/${width}/${height}/${pagecount}

Commands

Run the following commands sequentially to resolve the application dependencies, build the application, and run the tests

Restore Dependencies

To restore dependencies from NuGet

  dotnet restore

Build

To build the application and the test libary

  dotnet build --no-restore

Running Tests

To run tests, run the following command

  dotnet test --no-build --verbosity normal

Environment Variables

The application is configurable by customizing these environment variables:

Parameter Description
FILE_NAMING_SCHEMA Naming schema used for creation of document filenames

Tech Stack

Server: Microsoft.AspNetCore, QuestPDF | Client: ... missing

Badges

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •