pub async fn pdf_from_html( __arg0: State<SharedPool>, __arg1: Json<PdfFromHtmlRequest>, ) -> Response
Generate PDF from HTML content.
This handler converts HTML content directly to PDF without requiring a web server to host the HTML.
POST /pdf/html Content-Type: application/json
Router::new().route("/pdf/html", post(pdf_from_html)).with_state(pool)