soderlind / read-offline

Read Offline allows you to download or print posts and pages. You can download the post as PDF, ePub and mobi
https://wordpress.org/plugins/read-offline/
31 stars 10 forks source link

Problem with Read Offline #74

Open stilman-davis opened 7 years ago

stilman-davis commented 7 years ago

I have been testing this WordPress Plugin.

However, I wrotte some custom css for the print, but it did not take. "{TITLE}" is written by {AUTHOR}. You'll find the original article at {DOCURL}

<h1>{TITLE}</h1>

and

body { background: white; font-size: 12pt; }

img { max-width: 500px; }

@page { margin: 2cm; }

h1 { font-size: 24pt; color: maroon; }

h2 { font-size: 14pt; margin-top: 25px; }

Even though this appears on the print tab, when I print the page as a pdf (rather than using printer and paper) it looks like the standard printing template.

USing the pdf option, it works fairly well, but I altered the header

{DATE} {PAGENO}/{nb} {TITLE}

{TITLE}

Sadly the Title appears below first line of the content of the page.

I have another question in the use of this. I have seen a few websites which allow this pdf/print for reading later but there is a request to sign up (name and email submission). I would like to incorporate this as well. Does Read Offline do this? Or is it possible to do this with the plugin/could it be developed?

Regards, Stilman Davis

soderlind commented 7 years ago

The mPDF library is very picky, and if the CSS has any invalid properties it will ignore the hole CSS file.

Also, I don't believe you can use H1-H6 in the header/footer (never tried it myself).