Just downloaded this for our club website as a way of making a pdf version of our website stories (for those who havent joined us in the computer age yet)
I am getting this error (obviously removing my site details)
Warning: trim() expects parameter 1 to be string, array given in xxxxxxxxxxx/wp-content/plugins/make-pdf-newspaper/libraries/phphooks/phphooks.class.php on line 185
then it throws
Warning: fopen(/home/johnjack/public_html/blacksheep/wp-content/pdf/newspaper–cat-3.pdf) [function.fopen]: failed to open stream: No such file or directory in xxxxxxxxxx/wp-content/plugins/make-pdf-newspaper/libraries/tcpdf/tcpdf.php on line 7239
which I think is a symptom of the first error
Can anyone help?
It does this if I dont make any changes to the default information.
Looks as though a field is being submitted in the wrong datatype.
Using Arras Theme on Lates version of wordpress, latest version of plugin
Please help as really like the look of this plugin, it seems to do so much more than any of the others out there
Thanks
JohnJack
]]>Hello,
I would like to put the PDF link in a custom place in my theme but I don’t manage to do this .
And I would like use this link (or this plugin)only for the single posts.
Can I get help ?
Thanks,
Timothée
]]>Any suggestions on how to modify this code so we can get the author byline in the post? It would be great to have that for a newspaper with many authors!
public function addItem($title, $content, $date=0, $author)
{
$cancel_add = false;
$html = '<div class="heading-div" style="page-break-inside: avoid;"><h1 style="line-height: 1.2;">'.$title.'</h1>';
$html .= '<tcpdf method="clearEmptyLnSpace" />';
if ((int)$date != 0) {
$html .= '<p>'.date_i18n(get_option('date_format').' '.get_option('time_format'), $date).'</p>';
}
$html .= '</div>';
$html .= '<p>'get_author().'</p>';
//if (preg_match('/The ska and dub/i', $content)) { die($content); }
$html .= $content;
]]>
Ok – original error is fixed, but it looks like a PDF isn’t actually generated.
this url is where the Test PDF / Remake PDF buttons take me, but there’s no PDF there. No errors are thrown.
I did change this plugin source makepdf.php to display unicode font.
$pdf->SetFont('hysmyeongjostdmedium', 'U', 20);
I downloaded font file from https://www.tcpdf.org/ and uploaded to plugin font directory.
I wish plugin author use font name to wordpress admin panel for convenience.
Thanks,
]]>Hi, I think your plugin is very nice, but I had some problems:
I tried it on two different blogs (different domains on the same server), but making the PDF I always get a single white page with only the header but no posts.
Both WP installations are in their own directory, i.e. the blog is in mydomain.org but WP url is mydomain.org/wp or mydomain.org/wordpress
I tried the plugin on a third blog, also on the same server, having WP installation on the “root” folder of the domain: there it works like a charm. Seems that having WordPress on its own directory prevents the plugin from getting the posts…
Using wp version 3.0.2 I get an error when trying to print newspaper. It is a conflict with the Staff Directory Plugin and Custom Contact forms. Can someone shed some light on this?
The error message:
Warning: Unexpected character in input: ” (ASCII=16) state=1 in /hermes/bosweb/web041/b416/ipg.whitehallsdk12wius/wp-content/plugins/staff-directory/install.php on line 62
Warning: Unexpected character in input: ” (ASCII=16) state=1 in /hermes/bosweb/web041/b416/ipg.whitehallsdk12wius/wp-content/plugins/staff-directory/install.php on line 142
Warning: Unexpected character in input: ” (ASCII=16) state=1 in /hermes/bosweb/web041/b416/ipg.whitehallsdk12wius/wp-content/plugins/staff-directory/install.php on line 159
Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /hermes/bosweb/web041/b416/ipg.whitehallsdk12wius/wp-content/plugins/staff-directory/install.php:62) in /hermes/bosweb/web041/b416/ipg.whitehallsdk12wius/wp-content/plugins/custom-contact-forms/custom-contact-forms-static.php on line 14
Warning: Cannot modify header information – headers already sent by (output started at /hermes/bosweb/web041/b416/ipg.whitehallsdk12wius/wp-content/plugins/staff-directory/install.php:62) in /hermes/bosweb/web041/b416/ipg.whitehallsdk12wius/wp-content/plugins/make-pdf-newspaper/makepdf.php on line 385
]]>Hi everyone!
A feature that I would like to see is the ability to integrate advertising that a blog owner sources in to the PDF newspapers as a way of monetising them. This same feature could also be used by the author to promote ebooks and other items that they sell.
This could be to provide “hooks” to Google Adsense, ad-manager programs and plugins or the ability to insert HTML or JPEG graphics in particular positions on the PDF paper. The positions could be determined by page numbers, relative positions on pages and even the ability to have one page as an advertising-only page like the magazines have.
With regards,
Simon Mackay
]]>In make-pdf-newspaper.2.2.3 If you use raw categories of the form ?cat=XXX in your URLs, then the ? and the = both appear in the filename of the generated PDF. I note already that on line 93 of makepdf.php you are replacing / with – in the filename (to handle the pretty URL case which has slashes). If you do the same with ? and = by introducing the following two lines immediately after line 93
$catExt = str_replace(“?”,”-“,$catExt);
$catExt = str_replace(“=”,”-“,$catExt);
The problem goes away.
Simple fix, best if you do it in the codebase and put it in a new version.
Great plugin by the way.
Mike
]]>I have been searching for the functions of this plug in for months and I am so HAPPY to find it!!! I have installed the plug in and everything works great except I can only get the newspaper to have 10 most recent posts. How do I add more posts? I want to print my blog by the month or the year so it will need to have 300+ posts. see https://www.fambee.org
Please let me know
Thanks!