chore(pdf): add initial test frame

This commit is contained in:
Steffen Jost 2022-05-20 16:28:35 +02:00
parent 9d4904f759
commit 9a432746fc

View File

@ -264,3 +264,19 @@ postAdminTestR = do
|]
i18n $ MsgPrintDebugForStupid "DebugForStupid"
getPDFTestR :: Handler TypedContent
getPDFTestR = do
let
writer = error "todo"
writeropts = error "todo"
doc = error "todo"
doc <- liftIO makePDF "pdflatex" writer writeropts doc
case doc of
Left bs ->
return $ TypedContent typeOctet $ toContent bs
Right bs ->
return $ TypedContent typeOctet $ toContent bs