klap-in / dokuwiki-plugin-bookcreator Goto Github PK
View Code? Open in Web Editor NEWAllow to select some pages and create a book (PDF, ODT or text)
Home Page: https://www.dokuwiki.org/plugin:bookcreator
Allow to select some pages and create a book (PDF, ODT or text)
Home Page: https://www.dokuwiki.org/plugin:bookcreator
I have done finish translating
Hello,
I'd like to give my @user group read-only access to the wiki, but allow them to Save Selections using the Book Creator. Is this possible?
Hi,
if I have search engine friendly URLs activated and try to add the following pages to a book:
domain.com/author/name/page1
domain.com/author/name/page2
domain.com/author/name/page3
it seems like the cookies are set with Path: /author/name
(as opposed to only Path: /
)
This means that if I go to
domain.com/wiki/ebook that contains: ~~BOOK~~
the cookies seem to be unavailable for the book. No pages seem to be selected.
If I, however, create the page
domain.com/author/name/ebook containing ~~BOOK~~
I can see the selected pages.
Is it possible to make sure that the cookies are always created with the path /
(and nothing else)?
It stores
* [[:]]
Nothing should be saved at all.
request via the mail:
Also I have one suggestion for possible improvement:
Support for alias/wildcards in namespace where selections are saved (parameter save_namespace). For example to support entries like:
- user:%USER%:ebook
- %GROUP%:ebook
so every user or group have it’s own saved book collection.
(something like https://www.dokuwiki.org/acl#user_wildcards).Ultimately it will be nice to have support for multiple saved lists: user specific, group specific and global (but that’s probably too much to ask).
upon entering wiki:ebook page for the first time, the textbox under "Selected Pages" is not enabled. I installed all required plugins. The main wiki also has an issue with creating a new page so there may be a connection.
When I tried to export pdf book using this plugin, I saw that citations are put in every sub-documents.
Can I add only one citation to last page of pdf file without changing template files of dw2pdf?
A possibility for filtering the result of ARCHIVBOOK would be great. Best with regular expressions.
When you have many pages included, the internal hyperlinks should reference a PDF page. Option to remove internal links to non-included pages. i.e. create a self-contained book.
Hello all,
i my case the images on the wikipages are not shown in the pdf. If I choose printable version instead the images are shown.
System:
Windows 7 64 bit
Browser Mozilla
Wiki: Release 2014-09-29d "Hrun"
Template: Arctic
Plugins installed:
Bookcreator Plugin 2015-06-11 by Gerrit Uitslag (previous: Luigi Micco)
Allow to make a book (PDF or text) from selected pages
Bureaucracy Plugin 2015-01-22 by Andreas Gohr
Create forms and generate pages or emails from them
Button Plugin 2015-05-03 by Remi Peyronnet
Add button links syntax
ckgedit 2015-06-02 by Myron Turner
WYSIWYG plugin for Dokuwiki
Structured Data Plugin 2015-05-16 by Andreas Gohr
Add and query structured data in your wiki
do plugin 2014-11-01 by Andreas Gohr
Assign tasks within the wiki
Dw2Pdf plugin 2015-06-10 by Andreas Gohr and Luigi Micco
DokuWiki to PDF converter
Gallery Plugin 2014-05-18 by Andreas Gohr
Creates a gallery of images from a namespace or RSS/ATOM feed
Info Plugin 2014-03-05 by Andreas Gohr
Displays information about various DokuWiki internals
log plugin 2015-02-26 by Adrian Lang
Provide simple logs
WikiCalendar Plugin by Michael Klier (chi)
Implements a simple Calendar with links to wikipages.
ACL Manager 2014-06-04 by Andreas Gohr
Manage Page Access Control Lists
Configuration Manager 2014-03-18 by Christopher Smith
Manage Dokuwiki's Configuration Settings
Structured Data Plugin 2015-05-16 by Andreas Gohr
Add and query structured data in your wiki
Extension Manager 2014-06-15 by Michael Hamann
Allows managing and installing plugins and templates
Revert Manager 2013-11-21 by Andreas Gohr
Allows you to mass revert recent edits to remove Spam or vandalism
sqlite plugin 2015-05-04 by Andreas Gohr
A helper plugin to easily access a SQLite database
DokuWiki Upgrade Plugin 2015-02-26 by Andreas Gohr
Automatically upgrade your DokuWiki install to the most recent stable release
User Manager 2014-03-05 by Chris Smith
Manage DokuWiki user accounts
ACL Manager 2014-06-04 by Andreas Gohr
Manage Page Access Control Lists
Bookcreator Plugin 2015-06-11 by Gerrit Uitslag (previous: Luigi Micco)
Allow to make a book (PDF or text) from selected pages
Bureaucracy Plugin 2015-01-22 by Andreas Gohr
Create forms and generate pages or emails from them
Button Plugin 2015-05-03 by Remi Peyronnet
Add button links syntax
ckgedit 2015-06-02 by Myron Turner
WYSIWYG plugin for Dokuwiki
Structured Data Plugin 2015-05-16 by Andreas Gohr
Add and query structured data in your wiki
do plugin 2014-11-01 by Andreas Gohr
Assign tasks within the wiki
Dw2Pdf plugin 2015-06-10 by Andreas Gohr and Luigi Micco
DokuWiki to PDF converter
Extension Manager 2014-06-15 by Michael Hamann
Allows managing and installing plugins and templates
log plugin 2015-02-26 by Adrian Lang
Provide simple logs
safefnrecode plugin 2012-07-28 by Andreas Gohr
Changes existing page and foldernames for the change in the safe filename encoding
WikiCalendar Plugin (action component) by Michael Klier
Implements a simple Calendar with links to wikipages.
ckgedit 2015-06-02 by Myron Turner
WYSIWYG plugin for Dokuwiki
Dw2Pdf plugin 2015-06-10 by Andreas Gohr and Luigi Micco
DokuWiki to PDF converter
text plugin 2015-04-19 by Michael Hamann
renders page as plain text. USAGE: <pagename>?do=export_text (Original author: Todd Augsburger)
Bureaucracy Plugin 2015-01-22 by Andreas Gohr
Create forms and generate pages or emails from them
ckgedit 2015-06-02 by Myron Turner
WYSIWYG plugin for Dokuwiki
Structured Data Plugin 2015-05-16 by Andreas Gohr
Add and query structured data in your wiki
do plugin 2014-11-01 by Andreas Gohr
Assign tasks within the wiki
Extension Manager 2014-06-15 by Michael Hamann
Allows managing and installing plugins and templates
sqlite plugin 2015-05-04 by Andreas Gohr
A helper plugin to easily access a SQLite database
===== ISSUE: handle non-english(utf-8) file name =====
If the file name is english, everything is OK. But when I try to add a page with Chinese file name, I get 400 Bad Request error. I checked the cookies stored, and find that cookie name is:
bookcreator[topic:linux-parallel:intel��Ñh��Õh�Å]
I think that's where the error comes.
I modified some JavaScript in the code and use urlencoded string in cookies. It seems that the problem is solved. You can check the code here
From: https://www.dokuwiki.org/plugin:bookcreator:discussion
Hey mate, its me again.
my problem is, i wanted to create a pdf book with round about 180 pages but the selection stopped at 90 with kicking me out of the wiki and sending a cach failure, after clearing cach i could login again but the selection was gone.
Is there a possibility to change the size of selectet pages from 90 to 200?
regards
Zerremonde
users can add normally the books, but when you choose between "export" or "save selection" it doesn't work also doesnt even show ~~ARCHIVEBOOK:number&sort~~
section at all.
The only error message i get is "You don't have pages selected yet." when trying to save selection, everything else, fails with a warning and no text.
When using the taratasy template the "Add/remove to book” link is not displayed properly and must be disabled.
Regards
Juergen
Say, we have 3 pages:
http://somesite/docuwiki/page1 (contains some links to page2)
http://somesite/docuwiki/page2 (contains some links to page1)
http://somesite/docuwiki/index (contains some links to page1 and page2)
When we create a book from these 3 pages - the resulting PDF is OK, but all the links point to the "http://somesite..." URLs, ignoring the fact that all the linking pages ALREADY sit in the PDF.
How can we get all the local links on/to all exported pages "be processed", pointing to the pages if the resulting PDF - but not to the website? The links pointing to the wiki pages out of the book's selection (wiki pages whose won't be exported to the book) shall not "be processed" of course - those should be pointing to the website URLs.
Thanks,
SS
we were facing problems when saving a book with a long list of pages. We created a copy of our dokuwiki and replaced the files from pdfbook with the branch "localStorate". #72
Our setup is:
We have no problems now when exporting books with many files but the problem now is we can not recover saved list (better said, we can recover the list but not continue editing). I dont see any related errors in apache or javascript console. How Can I debug further? Or what could I test?
When using relative links to namespaces of images, the pdf-file can't find the media files. Instead of this, the link for this files in the pdf is an absolute path starting from the namespace "wiki:ebook".
Regards Juergen
Hi,
is there a possibility to select a specific template for the output? When using the dw2pdf plugin there is a command like &tpl=yourtemplate
. So it would be nice if there were a way to do that similar, perhaps by URL.
Best regards
Juergen
Configuration:
Dokuwiki last stable versione Hrun
Bookcreator latest version (https://github.com/Klap-in/dokuwiki-plugin-bookcreator/archive/master.zip)
dw2pdf latest version (https://github.com/splitbrain/dokuwiki-plugin-dw2pdf/tarball/master)
browser used:
Google Chrome Version 41.0.2272.89 m
Firefox 38.0.5
Content of cookie:
array(6) { ["bookcreator"]=> array(3)
{
["wiki:ebook"]=> string(1) "1"
["start"]=> string(1) "0"
["prova_argomento"]=> string(1) "1"
}
["DokuWiki"]=> string(26) "34vthdhc62rljdtbh4bofu77r3"
["PD_STATEFUL_1f048598-f654-11e0-9132-00215e895411"]=> string(9) "/jportal7"
["PD_STATEFUL_c97d4ad4-e3a6-11e0-baf3-00215e89578f"]=> string(25) "/clustermaila01.hbl.local"
["PD_STATEFUL_ca435198-e3a6-11e0-baf3-00215e89578f"]=> string(25) "/clustermaila01.hbl.local"
["IV_JCT"]=> string(9) "/jportal7"
}
Apache/2.2.17
php version 5.3.5
mysql 5.5.8
I've been trying to export a book to PDF. The chapters are short (around 400 words each with no pictures), but there are a lot of them, around 50 (my plan was to make books with hundreds of chapters). Unfortunately the process times out after 120 seconds and I get the following message:
Fatal error: Maximum execution time of 120 seconds exceeded in C:\wamp\www\commonplace\lib\plugins\dw2pdf\mpdf\classes\otl.php on line 5438
Taken from discussingpage for the bookcreator plugin:
I can select and delete Pages, this is not the problem, but if i want to export or save my selection, the Plugin is telling me, that i did not select any pages.
I added “var_dump($_COOKIE)” to the syntax.php, the output is shown below.
array(3) {
["bookcreator"]=>
array(2) {
["start"]=>
string(1) "1"
["andere"]=>
string(1) "1" }
["DokuWiki"]=>
string(26) "a0d075bihtp4kvr476pr316ot0"
["DW84669e0b736a85c6eeda0cf5b0a2b382"]=>
string(27) "YWRtaW4=|0|cnVxUlAvTkdVR0E9" }
Dokuwiki is running on my local system, Ubuntu 12.04, by using the latest version of Firefox. DW2PDF and Text are running correctly. I am using the “Vector” Template
The cookie “list-pagelist” is used when saving pages. That cookie is missing in your dump. Are you sure your javascript is working correct?
Can you check whether the console of your Developer Toolbar has javascript errors?
(Please report this issue in the issuetracker, than i can better follow this conversation.)
— Klap-in 2014-07-01 11:54
First of all, i dont have an account on Github so I cant use the IssueTracker.
The second thing is, I checked out the Developers Toolbar and there appeared one errormassage for Javascript:
ReferenceError: jQuery is not defined js.php:4013
Is this problem about missing permissions on js.php? If you agree, which permissions should I give this script?
js.php is reached, so permissions are ok. This message tells something about a certain line of js.php, but I cannot give a conclusive diagnose with this information.
Is your wiki reachable via internet for me? Can you provide the url in that case, so that i can have a look?
A general remedy could be to update all your plugins to their latest version. There are old version of plugins know to be incompatible with current DokuWiki releases. But i don't know yet if that is the case here…
(You need to create a GitHub account indeed, then you can reach the issue tracker for this plugin, and many others as well. Open access tools are misused massively, therefore it is required for us to have a login-first tool in stead. Sorry for the extra registration it requires)
— Klap-in 2014-07-01 16:15
If a book shall be exported to pdf or odt and the title is missing, then sometimes an empty message is displayed and sometimes the message "Please provide a title" ($lang ['needtitle']).
Here the sequence of actions in detail:
I assume this might be a DokuWiki problem not a bookcreator thing. I tested it with firefox and chromium. Both have the problem.
When exporting a list.
1.
a.
I.
A.
II.
A.
i.
ii.
Becomes
1.
1.
1.
1.
2.
1.
1.
2.
As described on the Wiki page...
The fix is easy. IE8 does not tolerate the verb "do" - it is a reserved word. Change line 150 in script.js from
document.bookcreator__selections__list.do.value = (action == 'read' ? 'readsavedselection' : 'show');
to
document.bookcreator__selections__list['do'].value = (action == 'read' ? 'readsavedselection' : 'show');
It may not always be desirable to let readers create ebooks. It would be great to have a config setting to set the required auth level to display the addpage/removepage toolbar buttons and the top bar. I changed two lines of code to make this happen, but the config code needs to be added.
Hello, the PDFexport works fine. but if i activate the installed plugin cellbg the Icon Add2PDF will not appear in the right toolbar.
What can i do to use both plugins?
Internal links can have titles, but these are currently read as part of pageid.
Learn the saved selection loader to ignore the title part of the link.
The resulting book is always empty.
I'm using
None of the features work at all UNTIL you disable this in the configuration settings:
Compress: Compact CSS and javascript output
As reported at: https://www.dokuwiki.org/plugin:bookcreator:discussion
===== Page selection problem 1/8/2014 =====
I can select pages but when I go to save the selection I get the
messages "You don't have pages selected yet." I can delete pages
selected successfully. I have verified cookies are created for each page.
I do not have a cookie listing the pages if it should exist. I am wiki-admin
with all permissions.
FireFox 25.01
DokuWiki Weatherwax
bookcreator is current as of 1/8/2014 - no output for "Text", Printable Version or PDF
dw2pdf is current as of 8/16/2013 and works properly from URL and tab button
Edit: Same here, FF 27, fresh installation of DokuWiki, bookcreator and dw2pdf
on XAMPP / Win7
We created a dokuwiki with some hundred articles. Going through these articles just to add them to a new book is not funny. A really cool thing would be a dropdown where you can choose which namespace should be saved and then exported to a new book.
Best regards
Martin
Hi,
There are forbidden pages in load saved selection.
Forbidden pages isn't displayed in Selected Pages list.
However, these forbidden pages has been output.
I see the ”Skip Forbidden Pages” check box on the book screen, but it doesn't work.
Update is 2016-08-11.
Best regards,
Junko
So I use the wrap plugin with bookcreator. I have tried adding multiple pages from my wiki, each with some notification/info/alert via the wrap plugin. The first wiki page generates just fine. However after that, the CSS drops. I may be seeing a square border instead of a round or all the wrap CSS disappears and it looks like regular text.
I have tried disabling all plugins except for the bookcreator and its dependent plugins and the wrap plugin, but still the same thing.
Here is the print and pdf output as you can see in the PDF, this wiki page is lacking the wrap styling. However the wiki page before it will show the styling just fine.
UPDATE: I have tested this and it appears to be an issue with dw2pdf itself as it happens when I output an entire namespace as well.
===== print.css =====
To prevent the printing of the toolbar..
.dokuwiki div.bookcreator__panel { display: none }
.dokuwiki div.bookcreator__ { display: none }
From: https://www.dokuwiki.org/plugin:bookcreator:discussion
I tried to create a book of over 50 chapters and I started getting
`Bad Request
Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
Cookie`
Deleting my cookies got things working again.
when i want to add a page to a book, i get an 'object not found' - Error
I'd like to have a continuous stream of wiki pages to save paper, is there any way to get rid of the page break at the end of each wiki page in the generated PDF?
Instead of using a selection, just exporting a whole namespace.
When I start exporting a PDF in Chrome and IE there is a message, that something ist downloading:
But subsequently the process ends without any success. There is no downloaded file.
In my firefox-installation I have no problem. However, my colleague has this problem even with this browser.
What can I do?
Regards Juergen
When i clicked download it crashed with a 500 in the /wiki part of my server, while the other parts remained fine.
Nothing was written to nginx's logs and once i deleted the plugin dir it worked fine again.
I am running weatherwax on debian under nginx and fastcgi. I can provide more debugging info if needed, just tell me how to produce it.
Cookies are part of headers, which have memory limits.
Look for alternatives, that are not limited.
See for example issue: #29
Some report selections of just 40 pages, other about 80-90 pages. Depends strong on size of other cookies, and length of pageids.
(Small workaround: Save the book ("Save Selection"), delete all dokuwiki-cookies, log back in and load saved the book. You have lost some cookies and now it might work (depending on no. of pages in your book, though).
Hi,
I use a couple of export plugins but only a few are supported by this very helpful plugin.
If e.g. the LatexIt-, Open-Document- and epub- plugin would be supported by this plugin many users could benefit from it.
I would prefer a solution using "global documents" (like a book template which includes all wanted articles) but this is just an optional idea.
On a wikipage that uses the 'wrap' plugin to format content into two columns (e.g. <WRAP column half>content</WRAP>
), once bookcreator has been installed, columns are the correct width but stack vertically instead of appearing side-by-side. (This does not happen in 'preview' mode, where the columns display correctly.)
There appears to be a conflict between the two plugins. I have identified the cause.
Wrap uses div containers for each column and index-based 'Nth of type' div selectors for CSS styling. There is an extra div inserted by bookcreator (for it's toolbar), which breaks wrap's styling.
If "Show toolbar" in the bookcreator configuration settings is set to Never, the div is still present in the HTML but has style="display: none"
, so still messes up columns. (If the toolbar div was omitted from the markup, rather than hidden, a workaround to this plugin conflict would be to set Never display toolbar.)
Disabling the bookcreator plugin fixes wrap.
Changing the element type from div to nav in the browser, also fixes the issue, i.e.
<nav id="bookcreator__memory" style="display: none;" data-isselected="false"></nav>
I am using dokuwiki hrun (linux on synology nas) and wheaterwax (windows server 2008R2),
Browser Firefox 33, Chrome or IE 9, cookies enabled and i have this problems with the bookcreator plugin:
Adding pages to the book works fine, when i go the wiki:ebook page i can not :
-reorder the entries,
-delete the entries
I can delete the whole selection.
After adding one page to the book the bar with "add and delete this page " appears on every page, but clicking on the links/symbols, doesn't have any effect.
Has somebody an idea?
Hey,
it would be great, if links to wiki-pages which are also in the current book would link to the page in the pdf instead.
Sorry, duplicated to #16
Pls Ignore/Close
When exporting a printable version (I haven't tested the PDF export), line breaks are removed from code blocks so that text that was on several lines ends up all in one line.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.