mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-10 09:12:39 +00:00
Removing old pdf junk
This commit is contained in:
@@ -1,31 +0,0 @@
|
|||||||
var pdf = require('html-pdf');
|
|
||||||
var Markdown = require('marked');
|
|
||||||
|
|
||||||
var PHBStyle = '<style>' + require('fs').readFileSync('../phb.standalone.css', 'utf8') + '</style>'
|
|
||||||
|
|
||||||
|
|
||||||
var content = Markdown('# oh hey \n welcome! isnt this neat \n \\page ##### test');
|
|
||||||
|
|
||||||
|
|
||||||
var html = "<html><head>" + PHBStyle + "</head><body><div class='phb'>"+ content +"</div></body></html>"
|
|
||||||
|
|
||||||
//var h = 279.4 - 20*2.8;
|
|
||||||
var h = 279.4 - 56;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//var w = 215.9 - 56*1.7
|
|
||||||
|
|
||||||
var w = 215.9 - 43;
|
|
||||||
|
|
||||||
|
|
||||||
var config = {
|
|
||||||
"height": (279.4 - 56) + "mm",
|
|
||||||
"width": (215.9 - 43) + "mm",
|
|
||||||
"border": "0",
|
|
||||||
}
|
|
||||||
|
|
||||||
pdf.create(html, config).toFile('./temp.pdf', function(err, res){
|
|
||||||
console.log(err);
|
|
||||||
console.log(res.filename);
|
|
||||||
});
|
|
||||||
Binary file not shown.
BIN
server/temp.pdf
BIN
server/temp.pdf
Binary file not shown.
10
todo.txt
Normal file
10
todo.txt
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
## v1.5 todo
|
||||||
|
- Make statusbar un-fixed
|
||||||
|
- Simplify the panel css to remove the current issues
|
||||||
|
- Add bleed snippet
|
||||||
|
- Add the '/new' page and force save to reduce database size
|
||||||
|
- Add pagniation and query to the homebrew api
|
||||||
|
- Update the admin page with pagnition and a query box
|
||||||
|
- Test the old/small brew filtering for deleteion
|
||||||
|
- Make the status bar take children? Or just give it a string of booleans. Just simplify it
|
||||||
|
- Partial rendering kills style tags on unrendered pages. Detect if pages have style tags and render them.
|
||||||
Reference in New Issue
Block a user