As far as I know much of the problems with printing are browser's problems, far more than tw's. A lot of prints rules are not implemented nor consistent.
I struggled with this for a professional project. It's only a demonstrator and will not go further. And maybe it will not help at all. But you may find hints (or not ;-) within stylesheet.
* https://know-rmandie.frama.io/TiddlyPAC/tiddlyPAC-Normandie.html for "print" testing (in a PDF of course it's about 50 pages long ;-)
* https://framagit.org/know-rmandie/TiddlyPAC for the code
Cheers
Sylvain
@sycom
I recently developed a solution for a client. I will look at your links soon.
I avoided the complexity of dealing with printing from the tiddlywiki page and printing the story. Instead I did what I could to make the contents of a single tiddler wysiwyg what you see is what you get (except pagebreaks), you could read the tiddlywiki.com reference to substories if you did want to print a story.
One you have a single tiddler displaying what you want use open in new window and trigger the print from there. This removed the complexity of the full page from the print process.
I have seen some cases where the new window looses some css and you may need import variables or transclude css into your print tiddler so its available in the new window (as a last resort).
I will post more tips from my desktop.
Tony
@page {
margin: 1cm;
}
@media print {
header {
position: fixed;
top: 0;
width: 100%;
}
footer {
position: fixed;
bottom: 0;
text-align: centre;
width: 100%;
}
tfoot {
page-break-after: always;
}
thead {
display: table-header-group;
}
tbody {
page-break-inside: avoid;
}
tr, td {
page-break-inside: avoid;
}
/* Spaces added as rows in tables to stop overlap of page header and footer, hidden on screen */
.header-space {
height: 110px;
border-style: none;
border: none;
width: 100%;
}
.footer-space {
height: 80px;
border-style: none;
border: none;
width: 100%;
}
}
/*
@media screen {
.header-space {
display: hidden;
}
.footer-space {
display: hidden;
}
}
*/
<thead>
<tr class="header-space">
<td colspan="5" style="border: none; background-color: white;"> </td>
</tr>
<tr style="border: none;">
<td style="width: 10%; border: none; background-color: white;"></td>
<td colspan="3" style="width: 80%; font-size: 150%; border: none; background-color: white;">''{{!!list-header}}''</td>
<td style="width: 10%; border: none; background-color: white;"></td>
</tr>
These are some great references for printing web page using print stylesheets
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/EHmnIW13uoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/28ce70e0-3b8f-4e7f-a5d3-8670ff61d6bf%40googlegroups.com.
Hello Mohammad,
Glad you like it and find it useful. I did this some times ago now, so I can't be 100% sure, but I think all adaptations are in this CSS.Cheers,
On Tue, Oct 29, 2019 at 7:29 AM Mohammad <mohamma...@gmail.com> wrote:
Sylvain,--Is this the css you used?$:/pac/styles.css--Mohammad
On Tuesday, October 29, 2019 at 1:06:43 AM UTC+3:30, Sycom wrote:Hello Mohammad,As far as I know much of the problems with printing are browser's problems, far more than tw's. A lot of prints rules are not implemented nor consistent.
I struggled with this for a professional project. It's only a demonstrator and will not go further. And maybe it will not help at all. But you may find hints (or not ;-) within stylesheet.
* https://know-rmandie.frama.io/TiddlyPAC/tiddlyPAC-Normandie.html for "print" testing (in a PDF of course it's about 50 pages long ;-)
* https://framagit.org/know-rmandie/TiddlyPAC for the codeCheers
Sylvain
@sycom
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/EHmnIW13uoE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddl...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/59024c12-aa72-4197-8438-036a1aa58a09%40googlegroups.com.