-
Notifications
You must be signed in to change notification settings - Fork 1
pdf layout improvements needed (wishlist) #25
Comments
Comparing word export to pdf with md export to pdf is not a fair comparison. MD does not have the concept of page etc.. where word clearly has it embedded (One markdown page can have 1000 lines!) Some elements are simply not possible with a MD to pdf processor (at least what we are using). For example table of contents with links and numbering requires multi parsing of content, which is not available. What can be changed: Header, footer, styling (colors etc..) A wish list is good, but let's try to keep the expectations reasonable. Or we need to use something else to create pdf |
The typical github style how md files are presented looks pretty good. Any chance to adopt the style sheet? |
Dear @msevestre @Yuri05 are there any improvements on the wish-list above, and if so which ones :). Regarding the issue 'hyperlinks are not created when converting to pdf' This should be possible as e.g. with Typora it works when exporting to pdf. This also counts for the table of contents with hyperlinks. Additional wish:
Many thanks! |
@Incei None. I have someone who is going to work on this package in the next few weeks to optimize the layout. However, the package that we are using is limited in terms of functionality. We will never be able to create a pdf that looks like a report you export from words and as such, expectation should be set accordingly What is typora? Are you able to create a pdf from our markdown export? |
Another option is to use pandoc to create the pdf. This requires latex but will create much nicer pdf that what we currently have |
But this is a massive undertaking...that will require some time to investigate |
Typora is a markdown editor too, yes it can create a pdf from our markdown export, however the markdowns need to be merged first together via a seperate script first (although I did not check if this is also a feature in typora). |
pan
pandoc is integrated /can be integrated with typora |
"In Typora, import function and export function for some file formats (including docx, odt, rtf, epub, LaTeX and wiki) are powered by a 3rd party software named Pandoc. Those features requires Pandoc (≥ v1.16) to be installed. Please note that install Pandoc is optional for Typora, if you do not need those advanced import/export support in typora, then you do not have to install Pandoc on your computer." |
typora is using pandoc for export What we can do is change the script to unify all markdown in one (whatever that means) to create a markdown that typora can use. Then use typora to create the report. Is this acceptable for everyone? Probably way easier than implementing the stuff ourselves |
Note: Typora will not be free forever. But still :) @Incei Please describe what needs to be done to migrate our joined markdown into a markdown that typora can understand Our markdown is conformed to specs so I am not sure why we would need to change anything |
I don't know what the current specs are, but when i copied all the markdown files from the markdown_for_pdf in the corrected order into 1 MD file, i could open it with typora and export it to pdf. The only thing i did different is:
I have an example copied where you can see the difference. https://github.com/Incei/Raltegravir-Model/tree/master/report_under_review/pdf ..files merged.pdf (and merged.md) versus old output.pdf |
Additionally 2 figures per page are created... |
I think we should aim at having only one figure per page in any case. Our figures are always different etc... Without any manual editing, it will never work |
@Incei The tables are weirdly formatted with typora. There is always en empty column... |
no page number etc... We have no time to investigate typora BTW. We will rely on your decision and once we move, we are all in. |
I do not know how this is possible with a dynamic approach. Even typora does not seem to get it right and this is the only thing they do. I would vote against this feature |
I didnt say it was perfect :), it even creates a bookmarks-naviation pane.
This is my manual copy-paste error..it exported the exact copy of the MD file which i also updated. |
I did not check the page numbering...but its also not my idea to investigate this into all the details. |
I also dont know it this is the perfect solution, but comparing it with our current pdf, it is defenitally not in the wrong direction ;). If you dont have time to invest for this alternative approach, then that is a pitty. I cannot say anything about that :). I was thinking even that we could just create 1 output MD file as final report output. Users can themselves then create a pdf/word file/latex file etc themselves via typora, depending on the intended use. This would even mean much less effort for you..? |
@Incei I think someone (you probably) needs to make sure that this tool matches your expectations. If yes, we can consider. If not, then we can forget about it There is no way for the very small dev team that we have to spend time on such a satellite feature. It would be easy to generate an export for typora that one could load in the tool directly. I'd say 4h work probably. The question is: Do we want to invest the time (and money) to fix our markdown -to pdf script to export pdf? or do we agree that we are going to use a 3rd party tool to create pdf from markdown |
@Yuri05 I have someone ready to start working on that very soon so I need to know asap |
@msevestre I will discuss this in our team meeting, and get back to this :).. |
correction...you are right...for windows its also beta :) hmm @msevestre btw, how do you know it will not remain freeware for windows? I could only read on the site that they referred to Mac versions to be free during beta. "* Free during beta. Available for mac OS X 10.13 and later." |
For me: YES |
It might remain free for windows but this would be a weird strategy to make it pay for one platform and not the other. At any rate, we cannot assume it will be always free |
This is ofcourse not ideal if it will be paid version lateron, but if we only would use typora for exporting into PDF, there are also other free md to pdf convertors out there. The point of discussion (i believe) is not typora, its MD-joiner. If we decide that we only create a single report.MD file as final output, and if there are other free ways to convert it to a pdf with the wishes as mentioned above included, then we are fine i think without any additional effort...right ? Have a nice weekend! :) |
This requirement is only for typora at the moment so yes it has something to do with it. I am going to put the upcoming implementation on hold for now (e.g. update our own MD to PDF converter) and focus on creating one output file FOR typora. If other MD to PDF tool support this format, even better |
@Incei. The |
Can either of you paste here a link to the output of the markdown joiner for a real qualification use case? In github, I can only find the generated pdf, which is not very useful What I want Ideally, for example for a CYP3A4 qualification, is Thanks |
page number: https://pdfpagenumber.com/...yet another tool |
I have uploaded the output o the md joiner and RE zipped under: https://github.com/Incei/test2
Additionally i added under https://github.com/Incei/test2 the pdf-styles.css file which is adjusted by Sebastian originally located under ' \markdown-joiner\src\styles' |
Shouldn't we use this style instead of the one we have already? I think it looks quite nice as is (and I am not sure that we should migrate away from the current implementation in that case considering all the issues that there is with typora). So what do you want us to do? |
No, we should not use it. It does not work with DDI. |
But the stylesheet is only about how things look and is not related to content. Why should it work with one use case and not the other? What issues were you having with DDI? |
The stylesheet also formats tables. The tables are not fully displayed anymore. |
That is exactly what i wrote...it doesnt work for our latest DDI work. We did not investigate why it didnt work for this latest work... We have however seen that the format can look much nicer. Should we not try to make it work for DDI too?? |
@sfrechen, for my understanding you were not happy with the current format.. Im trying to improve it, unless you prefer not to change it. Then we leave everything as it is. :) |
Ok we could work with the current version and make sure it does not screw up table. |
If we remove the blue color, that would already be quite an improvement (and pretty simple in the stylesheet). |
The stylesheet was left intentionally ugly so that we would need to update it with some user input :) |
ok so let's forget about typora for now and update the stylesheet to fit all scenarios Please send us links for pediatric and DDI reporting engine outputs |
That means, you are able to fix the other issues, like no hyperlinks and no md code interpretation? |
@msevestre Im a little confused :). Do we want to forget about typora, ignore the alternative stylesheet and only change coloring? @sfrechen, what I understand from @msevestre is that we cannnot fix the other issues and have to live with the way we have it currently, if we dont switch to e.g. typora instead.... |
Guys I have no idea what you want us to do. Please be clear and we'll go from there. I have tried typora and it cuts images, does not hvae page number, does not work with standard MD table and adds empty colums etc.. If this is what you want to use, we will use it. If your only complain is styling, we can update the stylesheet. I have no idea what md code is |
see #32 PDF will now be creaeted using typora. If typora supports your requirements, it will work |
Currently the pdf reports that are generated from MD files look very unprofessional, there are compared to e.g pdf created from word, that include
@Yuri05 @sfrechen
The text was updated successfully, but these errors were encountered: