Lewis Rosenthal
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Slovak characters diacritics troubleOkay… With what font? Did you read the FAQ? See the next-to-last item. Have you tried a DejaVu font?
The link is only meant to be accessed from the front end of the site, and not the back end. Frankly, as I’ve never even tried doing that from the back end of the site, I have no suggestion for this condition.
The cache is generated by requesting a pdf. In this case, however, the plugin is looking for the cache directory in the wrong place, because it’s not picking up on the configuration file under tcpdf/config. This is probably because the plugin is being fired from the back end, and such an event has not been foreseen.
Off the top of my head, I do not have any good suggestions for you; sorry. I understand what you are trying to do and why you want to do it, however, if you have cache enabled, the first time a user on the front end selects the post or page as a PDF, the resulting file will be added to the cache. Unless you have really, really huge posts or pages, there shouldn’t be much of a performance hit, and then, only the first time the PDF is requested.
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Nice idea for next versionSounds great, and thanks for your kind words.
Have a patch for this? I’ll include it in the next dev build.
Thanks!
Also, how do we resolve the logic between this and the existing list? Do we convert that list to checked items, and then reflect the list of checked items in the dialog box (as well), or…? Also, how to resolve include vs exclude?
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Display "Show as PDF" link on admin page?This sounds like a great idea. Unfortunately, I have no suggestions for you at the present time, but I’ll add this to the wish list.
Thanks
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Weird black barSorry for the extra-long delay, Fab…
What other plugins do you have installed? At first, I thought this was a separator line. Now, I’m not so sure.
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Adding a Page BorderHi, Simon…
The TCPDF class is very picky when it comes to what css it interprets. I’ll have to look at it to see about adding a page border. I think I have on the to-do list an option to add borders, but I can’t quite recall specifics offhand.
Have a look at the TCPDF site for some clues.
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] PDF is blankPlease see this post.
Also, please do not mix issues in a single topic, as it makes it difficult to respond logically. Either we are talking about blank output or extra page breaks; the two are completely different issues.
Extra page breaks are likely caused by the page size not being properly set. Please go to the settings page for the plugin and ensure that the page size is as you want it. An early default for the plugin was A4 (not my default; it was inherited from the original plugin on which this is based). Later, the default changed to US Letter. However, without saving the options, the default would not have been updated. Now, of course, changing the page size is done in the settings and not hardcoded, so it makes fixing a bit easier.
Also bear in mind that if you previously used the shortcode to insert page breaks, these may not flow in the right places once the page size has been changed.
HTH
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] wp post to pdf enhancedHi…
Looks like the mbstring extension isn’t enabled. Please check this link:
https://php.net/manual/en/mbstring.installation.php
Good luck.
Lewis
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Clear PDF Cache on save_post ActionBe careful of that constant, too, which was an old typo, fixed in the current release (WPPT0PDFENH_CACHE_DIR has a zero instead of the letter “O”). The correct name is WPPTOPDFENH_CACHE_DIR.
The above looks like it should be fine in functions.php. Did you check for a missing “;” anywhere?
This functionality will indeed make it into the next release. I’m just not sure how quickly I can get it out.
Cheers
Hi…
This is well beyond the scope of this project. I would suggest adding:
IndexIgnore *
to the top of your .htaccess file in your /uploads/wp-post-to-pdf-enhanced-cache directory. As for the icon, you may do the same thing in the assets/images directory for the plugin, if you like. I’m just not seeing a major advantage, but then, I’m not an SEO guy.
Cheers
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Weird black barHi…
Shortcodes are described on the support page for the plugin, here. Presently, we make no distinction between subscribers and members, as members are created by a plugin and not part of the base WP taxonomy. This may change in the future (or I may implement a way of displaying content for certain types of logged-in users).
Essentially, you would tell the plugin not to automatically put an icon on any page, and then use the shortcode just for those pages where you want the icon to appear. However, if those pages already have unique IDs (as I suspect they might, unless there is only a portion of the page which is hidden from non-members), it might be easier to just use the admin panel to place the icon on those pages, instead of having to manually add the shortcode to each page/post.
You may reach me directly at lgrosenthal AT 2rosenthals DOT com or by contacting me through my blog, referenced above. I’m happy to help as time permits.
Cheers, and you have a good weekend, too.
Lewis
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Weird black barWithout seeing the actual content of the page, it’s hard to tell. Clearly, we’re misinterpreting some data, here. What is after that last line of text, a separator line of some sort, perhaps?
If you look at the plain text of the page content, is anything there?
Lewis
PS – Thanks for your kind words. Hope we can get this figured out for you.
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] No imagesOops… Didn’t catch the link, Deborah.
Could you also open a fresh thread for this? See this article for more on this request. The OP here was discussing an older version of the plugin, and the issues may or may not be related.
Thanks for your kind words, BTW. Hopefully, we can get things working right for you. Images and tables are two of our biggest hurdles, and admittedly, we’re only partway there.
Cheers
Lewis
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] No images in pdfPlease read the support information in the readme. Official support is given through my blog.
What type of images are these (jpg, png, etc.)? How large? We don’t yet support all image types.
Have you read this post?
Cheers
Forum: Plugins
In reply to: [WP Post to PDF Enhanced] Reduce to x number of pagesHi…
If not including on all pages, you’ll need to list (separated by commas) the page/post IDs in the dialog box in the admin area. To help determine which unique page ID is assigned to a given page, I usggest installing the ultra-light and ultra-handy Catch-IDs plugin. (Be sure to donate to Catch Themes if you find it as useful as I think you will.)
Then, just make a note of the pages and/or posts where you want the icon to appear (or the opposite: you may enter the pages and./or posts where you don’t want the icon to appear, and then set the icon to appear everywhere except those pages/posts listed).
Cheers
Lewis