Pdfcrowd Dev Team
Forum Replies Created
-
Forum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] Remove extra spaces of pagesHi,
Your page is currently in a maintenance mode. Please let us know when it is back up.
Forum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] PDF Button for multilingual siteThe plugin version 1.11.0 has a new option “Button Text Translation” on the Appearance tab. If it’s used, there is no need to call translate function in your code. So it should be enough to have your custom translation in po/mo file and just use:
<?php echo create_save_as_pdf_pdfcrowd_button(); ?>Forum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] PDF Button for multilingual siteTry to add your translation to the global mo file. It should be located in wordpress/wp-content/languages/
Forum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] PDF Button for multilingual siteThe WordPress standard localization method “__()” can be used. E.g.
<?php echo create_save_as_pdf_pdfcrowd_button(array('button_text'=>__('Save as PDF'))); ?>Your translation string should be located in WordPress “mo” file.
Forum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] Cannot control footer image sizesDan, you’re welcome.
Our support is also available by email support@pdfcrowd.comBest Regards,
PavelForum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] Cannot control footer image sizesNote: here is the link to our JS helper library documentation which defines insertStyle function.
Forum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] Cannot control footer image sizesYou’re welcome.
The option can be added to the “On Load Javascript” option on our settings “General Options” tab.
Forum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] Cannot control footer image sizesIt’s caused by your style.min.css a[href]:after:
@media print { ... a[href]:after { content: " (" attr(href) ")" }It append href to each link element when print media is used.
You can remove it from your CSS.
Or use our helper library to remove it, e.g. set the following line to “On Load Javascript” option:libPdfcrowd.insertStyle({style: '@media print { a[href]:after { content: none !important; }}'});Forum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] Cannot control footer image sizesYes, all css styles for the footer or header should be included in that textarea. That textarea can contain the complete HTML so you can use links to your stylesheets too, e.g. add to your footer HTML
<link rel='stylesheet' href='https://your.domain/your-header-footer.css' />Yes, the “Created by PDFCrowd…” line will be removed for a valid Pdfcrowd license. You can activate the trial by the following link:
— https://pdfcrowd.com/user/sign_up/?pid=api-trial2Forum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] Cannot control footer image sizesHello Dan,
We run a separate conversion for the header and footer, so their style must be in the same HTML code.
Use this “Footer HTML” for example:
<style> @media print { .pdf-footer img {float:left; max-width:160px !important; } } </style> <div class="pdf-footer"> <img src="https://vision-design.com/work/www.m2mfg.com/wp-content/uploads/2020/04/M2-Logo.png" /> </div>Best Regards,
PavelThe watermark appears when Pdfcrowd API license is not used.
The watermark does not appear for a valid Pdfcrowd API license – purchased or a 1-month trial.
The trial may be activated by the following link:
— https://pdfcrowd.com/user/account/api2-license/?ref=wordpressForum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] Removing Sidebar from PDF PrintHi,
It should be possible but it would help if you could share a link to a concrete page on your website. The JavaScript code that changes the width from 75% to 100% could be more complicated and we would like to test it out and ensure that it indeed works. If you do not want to post a link to your web site on this public forum, feel free to send it to support@pdfcrowd.com
Forum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] Removing Sidebar from PDF PrintHi,
One option is to add the “pdfcrowd-remove” class to the sidebar element. This removes the sidebar from the PDF output.
Another option is to specify custom JavaScript code that removes the sidebar element. Go to the plugin settings and on the “General Options” tab set the “Custom Javascript” option to:
libPdfcrowd.removeBySelector({selector: 'aside.sidebar'});You can test it out with our interactive API Playground. I have set up a project for you:
— https://pdfcrowd.com/s/mbdr/
The HTML code contains a sidebar element that is removed from the PDF output (click the “Run” icon). The upper-right pane shows instructions on how to configure the plugin.
Let us know if it helps.
Forum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] Can the water mark be removedHi,
1. Yes, the watermark is removed for a valid Pdfcrowd license. The free trial may be activated by the following link:
— https://pdfcrowd.com/user/sign_up/?pid=api-trial2
It’s credentials should be set in the Pdfcrowd WordPress plugin settings.2. Yes, your URL can fit to a single A4 page by using “Smart scaling mode”, e.g: https://pdfcrowd.com/s/NGc7/
or by using a custom scale factor, e.g. 26%: https://pdfcrowd.com/s/mbc8/
Please feel free to contact us on support@pdfcrowd.com if you need any further assistance.
Forum: Plugins
In reply to: [Save as PDF Plugin by PDFCrowd] Remove Header and Footer, cookie as wellHi,
Yes this is possible, I have set up a Playground where you can interactively play with the settings (lower left pane):
— https://pdfcrowd.com/s/Oyc5/Click the “Run” button to see the PDF output preview without header/footer. You can switch to a different code generator in the upper right pane if you are using a shortcode or for plugin settings.
In the lower left pane, on the “General Options” tab, there is the “Cookies” option where you can set cookies.
You can specify the elements to remove on the same tab by adding selectors to the function in the “Custom Javascript” option. Another option to remove elements from PDF output is to set the “pdfcrowd-remove” class on such elements directly in your WP template.
If the PDF output preview looks good, you can just copy the autogenerated code from the upper right pane to your WP site.
Hope this helps, let us know if you have any further questions.