PDFG Support
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Embedder] How to construct a do_shortcode that works?Hi @alanjacobs,
The problem is that you have a PHP variable set into the shortcode; however, it isn’t being treated as a variable but as the text value. Try:
$mediaurl = 'https://mysite/wp-content/uploads/2021/05/Sample.pdf'; echo do_shortcode('[pdf-embedder url="'.$mediaurl.'"]');- This reply was modified 5 years, 1 month ago by PDFG Support. Reason: typo
Forum: Plugins
In reply to: [PDF Embedder] Can’t find shortcode in divi themesHi @wdmerriman,
When using the Divi editor, you won’t see a PDF Embedder block or the automatically rendered shortcode like you would it you were using the WP 5 Gutenberg editor in conjunction with the Divi theme. This is because the Divi page builder overrides the normal content creation process and breaks the automatic shortcode insertion process.
When using Divi, you will need to update the inserted link so that it is rendered as the shortcode. It is easier to do this in the TEXT tab of the visual editor. Change the inserted code
from:
<a href="link-to-pdf">Text</a>
to:
[pdf-embedder url="link-to-pdf"]We do have a Divi module that you can use to insert the shortcode for you (you still have to copy and paste the URL into the code). This module will need to be imported into your Divi library. If you would like to have this module, please send us an email at contact@wp-pdf.com
Forum: Plugins
In reply to: [PDF Embedder] error when loading a pdfHi @stlecho,
You may also need to explicitly exclude the PDF Embedder scripts from the W3 Total Cache to prevent them from being compiled as well as remove the query strings. https://wp-pdf.com/kb/setting-up-fake-worker-failed-error-message/
Forum: Plugins
In reply to: [PDF Embedder] How to show a certain page at the beginningForum: Plugins
In reply to: [PDF Embedder] EmbeddePDFsHi @ecarstens,
The Garden poem has been embedded correctly which allows the scripts to be called and the viewer does render in all browsers. However, the other poems have been inserted using an image block which Safari (un)helpfully inserts the image of the PDF document as a failsafe but it doesn’t allow the user to read the PDF if there is more than one page.
To resolve this, you will need to update the incorrect embeds to use the PDF Embedder block instead of an image block. We have a tutorial on the correct method here: https://wp-pdf.com/kb/gutenberg-editor-and-pdf-embedder/
If you have any other questions, please feel free to send an email to contact@wp-pdf.com as we may not see messages posted here to respond in a timely fashion.
Forum: Plugins
In reply to: [PDF Embedder] Cannot change PDF-Link with TranslatePressHi @lettobi,
You can add the shortcode in an editable form either by manually entering
[pdf-embedder url="path-to-pdf.pdf"]or by using the Classic Editor block > Add media button (this is how the PDF was added prior to the blocks editor).Using this method, you will have an editable shortcode which would allow you to edit the file path of the document.
FYI, you may also want to reach out to developers at TranslatePress as they were (according to another mutual customer) creating a compatibility for their plugin and the PDF Embedder to resolve conflicts created by the different language domains.
If you have any other questions, please feel free to send an email to contact@wp-pdf.com as we may not see messages posted here to respond in a timely fashion.
- This reply was modified 5 years, 3 months ago by PDFG Support. Reason: typo
Forum: Plugins
In reply to: [PDF Embedder] SG Optimizer – Combine JavaScript FilesHi @cultedigital,
If you are unable to disable the combine JS settings, the alternative would be the specifically exclude the PDF Embedder scripts and this would require that you dip into some PHP coding to do so. An example of the code you would need to add to the functions.php is as follows:
add_filter( 'sgo_javascript_combine_exclude', 'js_combine_exclude' ); function js_combine_exclude( $exclude_list ) { $exclude_list[] = 'pdfemb_embed_pdf_js, pdfemb_pdf_js'; return $exclude_list; } add_filter( 'sgo_js_minify_exclude', 'js_minify_exclude' ); function js_minify_exclude( $exclude_list ) { $exclude_list[] = 'pdfemb_embed_pdf_js, pdfemb_pdf_js'; return $exclude_list; } add_filter( 'sgo_css_combine_exclude', 'css_combine_exclude' ); function css_combine_exclude( $exclude_list ) { // Add the style handle to exclude list. $exclude_list[] = 'pdfemb_embed_pdf_css'; return $exclude_list; } add_filter( 'sgo_css_minify_exclude', 'css_minify_exclude' ); function css_minify_exclude( $exclude_list ) { // Add the style handle to exclude list. $exclude_list[] = 'pdfemb_embed_pdf_css'; return $exclude_list; }If you have any other questions, please feel free to send an email to contact@wp-pdf.com as we may not see messages posted here to respond in a timely fashion.
Forum: Plugins
In reply to: [PDF Embedder] PDF just showing linkHi @oliverrealize,
When the PDF shows up as a link, this is usually due to a conflict with another plugin or theme element, or may be due to how the PDF is being added to the page content (i.e. with drag and drop layout builders).
The conflict issue will require a bit of troubleshooting. We have a troubleshooting guide here: https://wp-pdf.com/kb/pdf-doesnt-appear-at-all-just-a-blank-line-or-hangs-on-loading/
If you are using a drag and drop editor, we have an FAQ on using those here: https://wp-pdf.com/kb/drag-and-drop-layout-builders/
If you require further assistance troubleshooting this issue, can you please provide a link to the page or post in question so I can view the embedded PDF. Please feel free to send an email to contact@wp-pdf.com as we may not see messages posted here to respond in a timely fashion.
Hi @rscotts1,
That isn’t the PDF Embedder plugin in the page so I am unable to troubleshoot the issue for you. If you have another example page you can direct me to that uses the PDF Embedder plugin, I would be happy to take a look for you.
If you have any other questions, please feel free to send an email to contact@wp-pdf.com as we may not see messages posted here to respond in a timely fashion.
Forum: Plugins
In reply to: [PDF Embedder] View in Full Screen in mobile not workingHi @hanochx,
Can you please send us an email to contact@wp-pdf.com with a link to a page or post you are seeing this issue. Please also include what mobile device and browser you are using when you encounter this issue.
Thank you.
Forum: Plugins
In reply to: [PDF Embedder] Uncaught ReferenceError: pdfemb_trans is not definedHi @tpypta,
I’m sorry to hear that you have encountered an issue with the plugin. When we’ve encountered this issue in the past, it has most often been due to a conflict with a GDPR plugin. We have had other customers with this same setup, encountering the same issue, and the good folks over at WebToffee (developers of one of the most popular GDPR plugins) said:
Our plugin blocks Facebook Pixel script to prevent from settings cookies and it seems like your PDF Embedder has some dependency code running that need the blocked scripts to work. The solution to this issue is to set Facebook Pixel script as “NECESSARY” in the GDPR script blocker list.
While we do not use Facebook Pixel in our plugin, the script process is similar and this GDPR script blocking process will break our plugin functionality.
Forum: Plugins
In reply to: [PDF Embedder] Missing PDFHi @spimpseed,
Looking at the reported error shows the URL for the PDF that includes the text %E2%80%9D. The %E2%80%9D would indicate that your theme or a page layout builder is changing the formatting of the shortcode, turning the straight quotes around the PDF’s file path into curly quotes breaking the functionality of the plugin.
You will need to ensure that your shortcode is being entered into an HTML / Text field, or if you are using a page builder into a module that supports Plain Text, HTML, shortcodes, or Raw Code. Please see the following FAQ on using Drag and Drop Editors such as Elementor: https://wp-pdf.com/kb/drag-and-drop-layout-builders/
Forum: Plugins
In reply to: [PDF Embedder] How to add Bookmarks in the Catalog.PDFHi @craftbilt,
This is an issue with how the final document was formatted. The issue is that the image files are in a separate layer from the text and are not rendering correctly as a result. What you will need to do is export the original document again and in the output settings, you should find the option to flatten images/transparencies. With the images flattened, they will then be in a format to be displayed in the viewer.
If you have any other questions, please feel free to send an email to contact@wp-pdf.com as we may not see messages posted here to respond in a timely fashion.
Forum: Plugins
In reply to: [PDF Embedder] Images on PDF is not LoadingHi @craftbilt,
This is an issue with how the final document was formatted. The issue is that the image files are in a separate layer from the text and are not rendering correctly as a result. What you will need to do is export the original document again and in the output settings, you should find the option to flatten images/transparencies. With the images flattened, they will then be in a format to be displayed in the viewer.
If you have any other questions, please feel free to send an email to contact@wp-pdf.com as we may not see messages posted here to respond in a timely fashion.
Forum: Plugins
In reply to: [PDF Embedder] error when loading a pdfHi @liberalcastilla,
The Fake Worker error is due to a conflict with caching tools and the PDF Embedder scripts.
- Make sure that you are using the most up to date version of the plugin.
- While you do not need to exclude the PDF Embedder scripts from most caching tools, you do still need to make one settings adjustment in the caching plugin to disable inline or aggregation of JS files. Please see: https://wp-pdf.com/kb/setting-up-fake-worker-failed-error-message/. Your plugin settings may differ and it may be necessary to reach out to the caching plugin support if you can not find this setting.
- Once the plugin has been updated, flush the cache to remove the old cached scripts. It may also be necessary to manually delete the minified script.
- Finally, clear your browser cache and reload the page.