Stirling-Tools / Stirling-PDF

#1 Locally hosted web application that allows you to perform various operations on PDF files
https://stirlingpdf.com
MIT License
46.16k stars 3.76k forks source link

[Feature Request]: API Convert Markdown to PDF #1931

Closed clabnet closed 1 day ago

clabnet commented 1 month ago

Feature Description

It should be useful an API to create a pdf from a markdown file. see also #1568

Why is this feature valuable?

It seems missing from http://localhost:8080/swagger-ui/index.html

Suggested Implementation

No response

Additional Information

No response

No Duplicate of the Feature

akashsin63 commented 1 month ago

Hello @clabnet , I'd like to take on the "API Convert Markdown to PDF" feature request. I believe I can implement it efficiently and would love the opportunity to contribute. Could you please assign this issue to me?

Frooodle commented 1 month ago

Sounds good!

Frooodle commented 1 month ago

Just to add to this, we actually did support markdown to pdf till a few weeks ago... we did markdown to HTML and then HTML to PDF

HTML to pdf was disabled due to some security issues at the time you can find code here https://github.com/Stirling-Tools/Stirling-PDF/blob/main/src/main/java/stirling/software/SPDF/controller/api/converters/ConvertMarkdownToPdf.java

akashsin63 commented 1 month ago

Thank you for the heads up , Saw that new code for markdown to pdf as I pulled the new changes I m working on the feature taking reference will be raising PR in some hours Thanks. :)

clabnet commented 1 month ago

Thank you all!