careteditor / issues

Caret issues
https://caret.io
327 stars 12 forks source link

Page numbering #852

Open vindevoy opened 5 years ago

vindevoy commented 5 years ago

This is more a feature request:

Could you add a possibility to add page numbers when you export to PDF ?

astoilkov commented 5 years ago

Hi Yves,

The current PDF exporter that we are using doesn't have the functionality to add page numbers to pages. However, we plan to improve the PDF export by using another implementation. When we do that we could add the possibility to add page numbers.

Thanks for the suggestion.

vindevoy commented 5 years ago

Hi,

Thank you for reviewing my request. I understand that you cannot add all the features straight away. But I'm looking forward to new features.

I one thing I could ask more, it would be that I would like to change the template used to create the PDF. I suppose this is some kind of CSS file. So I would like to change that CSS with my fonts, for example.

Thank you for your time and your product,

Yves

On 07.01.2019 09:30, Antonio Stoilkov wrote:

Hi Yves,

The current PDF exporter that we are using doesn't have the functionality to add page numbers to pages. However, we plan to improve the PDF export by using another implementation. When we do that we could add the possibility to add page numbers.

Thanks for the suggestion.

-- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub [1], or mute the thread [2].

Links:

[1] https://github.com/careteditor/issues/issues/852#issuecomment-451857709 [2] https://github.com/notifications/unsubscribe-auth/AZe-yCanIpPW1iYb61gUJhRiNybSRzrLks5vAwWRgaJpZM4Zn0-T

astoilkov commented 5 years ago

If you understand CSS you can create your own CSS theme by going to View -> Preview Theme -> Add Theme and there you can modify everything you want. However, you should know that we will be removing that feature in the next major release.

Li-An commented 4 years ago

Hello, I’m interested with the feature. I create a document with images and headers and it’s impossible for the moment to manage how they will appear in pdf (end or debut of page). So I have to export the content into another editor to manage this. Too bad.

astoilkov commented 4 years ago

@Li-An With time we are moving away from controlling the presentation layer of the documents. We discovered that it's a very hard problem that needs more work than we have the capacity to handle.

Li-An commented 4 years ago

Thanks for the answer. Too bad it’s so hard to manage.

Li-An commented 4 years ago

Doing some research I found that a plugin of Visual Studio Code https://marketplace.visualstudio.com/items?itemName=yzane.markdown-pdf#user-content-markdown-pdfpageranges uses a pagebreak to separate pages <div class="page"/>. I don’t know if it is possible in Caret but it looks like an easy way to manage pdf presentation/pagination (well, I’m not coder :-)).

Li-An commented 4 years ago

Sorry to flood this thread but I finally discovered that <div style="page-break-before: always;"></div> will create a page break when exporting to pdf.

astoilkov commented 4 years ago

@Li-An You can achieve the same thing by writing +++ on an empty line.

Li-An commented 4 years ago

@Li-An You can achieve the same thing by writing +++ on an empty line.

Wow. I did not know the trick.

Li-An commented 4 years ago

I discovered that Panwriter https://panwriter.com/ proposes a page preview through CSS (well, it does not seem to work :-)) and code like this

---
title: my document
style :
@page {
size: A4;
margin-top : 2cm;
}
---

I don’t know if it’s a possible solution for Caret but if I don’t ask, I will never know. screenshot-css

astoilkov commented 4 years ago

@Li-An No, we don't support such a configuration.

Li-An commented 4 years ago

OK, thanks.