This web service generates PDF files with easy-to-understand and standard-compliant measurement parameters for software testing and custom usage.
GET /pagesizes
returns a list of aliased PageSize
like A4
, A0
or LETTER
, ...
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 |
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 |
GET /generate/empty/${pagesize}/${pagecount}
GET /generate/empty/${width}/${height}/${pagecount}
GET /generate/imaged/${pagesize}/${pagecount}
GET /generate/imaged/${width}/${height}/${pagecount}
GET /generate/imaged/cat/${pagesize}/${pagecount}
GET /generate/imaged/cat/${width}/${height}/${pagecount}
Run the following commands sequentially to resolve the application dependencies, build the application, and run the tests
To restore dependencies from NuGet
dotnet restore
To build the application and the test libary
dotnet build --no-restore
To run tests, run the following command
dotnet test --no-build --verbosity normal
The application is configurable by customizing these environment variables:
Parameter | Description |
---|---|
FILE_NAMING_SCHEMA |
Naming schema used for creation of document filenames |