Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

[Feature Request]: API Convert Markdown to PDF

Open clabnet opened this issue 1 year ago • 5 comments

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

  • [X] I have verified that there are no existing features requests similar to my request.

clabnet avatar Sep 18 '24 13:09 clabnet

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?

akashsin63 avatar Sep 22 '24 08:09 akashsin63

Sounds good!

Frooodle avatar Sep 22 '24 10:09 Frooodle

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

Frooodle avatar Sep 22 '24 10:09 Frooodle

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. :)

akashsin63 avatar Sep 22 '24 17:09 akashsin63

Thank you all!

clabnet avatar Sep 22 '24 18:09 clabnet