{"repo":"neozhu/PdfGeneratorApi","free":true,"listed":false,"github":"https://github.com/neozhu/PdfGeneratorApi","clone":"git clone https://github.com/neozhu/PdfGeneratorApi.git","description":"This project is a Minimal APIs application built with ASP.NET Core and Playwright. It provides an API to generate PDFs from HTML content or URLs","language":"C#","stars":15,"topics":["pdf-converter","pdfgenerator","playwright"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"PDF Generation API with Watermark and Stamp using Playwright Overview This lightweight .NET minimal API leverages Microsoft.Playwright to generate PDFs from either a provided URL or full HTML content. It supports dynamic watermarking and stamping, allowing users to overlay custom watermark text and a stamp image on the PDF. The API is secured via API Key authentication and comes with integrated Swagger/OpenAPI documentation for easy testing and exploration. Features - PDF Generation from URL: Render any webpage and generate a PDF. - PDF Generation from HTML: Generate a PDF from complete HTML content. - Custom Watermark: - Optionally add watermark text with dynamic font sizing based on text length. - The watermark text is styled with an adjustable line height, rotated -45° for a diagonal appearance, and rendered with semi-transparency. - Includes logic to wrap long text to prevent overlapping. - Custom Stamp: - Optionally add a stamp image to the bottom-right corner. - The stamp is injected to the top layer with a high z-index and padded from the edges. - API Key Authentication: Secures endpoints by requiring a valid API key provided in the request header. - Swagger/OpenAPI Integration: Automatically generated API documentation and testing interface. Endpoints Generate PDF from URL - Endpoint: /api/pdf/from-url - Method: POST - Parameters: - url (string, required): The URL of the webpage to render. - watermarkText (string, optional): Watermark text to overlay on the PDF. - sta","default_branch":null,"files":null,"tree":[],"storefront":"/r/neozhu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/neozhu/PdfGeneratorApi/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}