mnelson4 / printmyblog

WordPress Plugin that simplifies printing your entire blog
GNU General Public License v3.0
16 stars 6 forks source link

videos and photos on generated PDF to print are broke between pages #316

Open lhennessey63 opened 2 years ago

lhennessey63 commented 2 years ago

Please describe what you were doing, what you expected to happen, and what the problem was.

I have generated a pdf to print (named Pre-adventure). There are photos and videos that are broke between pages. I did reload videos to my blog posts because I wanted them to show instead of the URL and deleted the URL's that were created when I purchased the Print my Blog plug-in. I would prefer the photo of the video appear when I print.

Laura

{"php":"7.4.28","wp":"5.9.2","site_url":"https://herandhimonbikes.com","home_url":"https://herandhimonbikes.com","language":"en_US","public":"0","environment_type":"production","plugins_active":{"Akismet Anti-Spam":"4.2.2 by Automattic | Updates managed by WordPress.com","AMP":"2.2.1 by AMP Project Contributors | Updates managed by WordPress.com","CoBlocks":"2.22.8 by GoDaddy | Updates managed by WordPress.com","Crowdsignal Forms":"1.6.0 by Automattic | Updates managed by WordPress.com","Crowdsignal Polls & Ratings":"3.0.7 by Automattic, Inc. | Updates managed by WordPress.com","Gutenberg":"12.8.1 by Gutenberg Team | Updates managed by WordPress.com","Jetpack":"10.8-a.9.2 by Automattic | Updates managed by WordPress.com","Layout Grid":"1.8.1 by Automattic | Updates managed by WordPress.com","Page Optimize":"0.5.2 by Automattic | Updates managed by WordPress.com","Print My Blog":"3.12.7 by Michael Nelson ","WordPress.com Editing Toolkit":"3.29629 by Automattic | Updates managed by WordPress.com"},"active_theme":{"name":"Hever (hever)","version":"1.5.17","author":"Automattic","author_website":"https://automattic.com/","parent_theme":"Varia (varia)","theme_features":"core-block-patterns, custom_colors_extra_css, widgets-block-editor, custom-line-height, automatic-feed-links, title-tag, post-thumbnails, menus, html5, custom-logo, customize-selective-refresh-widgets, wp-block-styles, align-wide, editor-styles, editor-style, editor-font-sizes, editor-color-palette, responsive-embeds, custom-spacing, custom-units, jetpack-global-styles, wpcom-colors, experimental-link-color, widgets"},"debug":false,"post_max_size":"2047M","upload_max_size":"2047M","effective_max_size":2146435072,"ssl":true,"multisite":false,"projects":[{"title":"Pre-adventure","generations":{"print_pdf":"https://herandhimonbikes.com/wp-content/uploads/pmb/generated/fCZxZv3jGWcaBqPGhHWH/print_pdf/pre-adventure.html?uniqueness=1648481264"},"meta":[],"designs":{"digital_pdf":{"title":2798,"template":"Classic Digital PDF","meta":{"_pmb_header_content":["title","subtitle","date_printed"],"_pmb_post_content":["title","published_date","featured_image","content"],"_pmb_page_per_post":"1","_pmb_main_header_font_size":"4em","_pmb_header_font_style":"arial","_pmb_font_size":"10pt","_pmb_font_style":"arial","_pmb_image_size":"800","_pmb_default_alignment":"center","_pmb_image_placement":"dynamic-resize","_pmb_dynamic_resize_min":"300","_pmb_image_quality":null,"_pmb_page_width":"8.5in","_pmb_page_height":"11in","_pmb_internal_links":"remove","_pmb_page_reference_text":"(see page %s)","_pmb_internal_footnote_text":"See page %s.","_pmb_external_links":"leave","_pmb_footnote_text":"See %s.","_pmb_use_theme":"","_pmb_custom_css":null,"_pmb_powered_by":"1"}},"print_pdf":{"title":2800,"template":"Classic Print PDf","meta":{"_pmb_header_content":["title"],"_pmb_post_content":["title","featured_image","content"],"_pmb_page_per_post":"1","_pmb_main_header_font_size":"4em","_pmb_header_font_style":"palatino linotype","_pmb_font_size":"10pt","_pmb_font_style":"arial","_pmb_paragraph_indent":"1","_pmb_image_size":"400","_pmb_default_alignment":"center","_pmb_image_placement":"dynamic-resize","_pmb_dynamic_resize_min":"300","_pmb_image_quality":null,"_pmb_page_width":"8.5in","_pmb_page_height":"11in","_pmb_internal_links":"parens","_pmb_page_reference_text":"(see page %s)","_pmb_internal_footnote_text":"See page %s.","_pmb_external_links":"remove","_pmb_footnote_text":"See %s.","_pmb_use_theme":"","_pmb_custom_css":null,"_pmb_powered_by":"1"}},"epub":{"title":2804,"template":"Classic ePub","meta":{"_pmb_header_content":["title","subtitle","url","date_printed"],"_pmb_post_content":["title","id","author","url","published_date","categories","featured_image","excerpt","content"],"_pmb_image_quality":"","_pmb_convert_videos":"","_pmb_custom_css":null,"_pmb_powered_by":"1"}}}}]}
lhennessey63 commented 2 years ago

Here is the link. https://herandhimonbikes.com/wp-admin/admin.php?page=print-my-blog-projects&ID=3121&action=edit&subaction=generate

mnelson4 commented 2 years ago

Hi @lhennessey63 thanks for providing this debugging info.

I saw a spots where images were overflowing into the bottom margin and the latest release of PMB should fix those.

Regarding the videos though: PMB does not yet handle videos as nicely as I hope it will. You have two options:

Option A: use the video block's "poster" option to show a preview or screenshot of the video (which will be shown both on the website and in PMB) 2022-March-30 12-02-23-226

Option B: put the shortcodes [pmb_web_only_blocks] ... [/pmb_web_only_blocks] around the videos so make them only appear on the web, and optionally use [pmb_print_only_blocks] ... [/pmb_print_only_blocks] to have something else appear in your PDF (like maybe a screenshot or a URL of the videos). Here's a video showing how to use those shortcodes: https://www.youtube.com/watch?v=xxNBkGafH_A

Lastly, you've mentioned a few times purchasing PMB but I think you've actually just purchased the wordpress.com plan that allows you to add plugins, but the purchase of PMB is separate. To purchase PMB go to https://herandhimonbikes.com/wp-admin/admin.php?billing_cycle=annual&page=print-my-blog-projects-pricing