Hi,
An update with more detail after further testing
Setup: Membership Pro with the Membership Pro - MPDF plugin (latest version). The PDF Producer field shows mPDF 8.3.2, so mPDF is generating the member cards.
1) QR code size: the QRCODE Image Width/Height setting isn't used
- With QRCODE Image Width and Height set to 60 / 60, I deleted a member's QR image from /media/com_osmembership/ and let it regenerate. The new file is still 185 x 185px, so the setting doesn't seem to be applied when the image is created.
- mPDF places that image at 96 dpi, so it prints at about 49mm square, far too big for a credit-card layout.
- As a test, I replaced one member's QR file with an 81 x 81px version containing the same code. The card then rendered perfectly, so the image size is the only problem.
Could the QR image be generated at the configured width/height, or could [QRCODE] output the img tag with width/height attributes so it can be sized?
2) CSS and config.php don't appear to be applied to member cards
- CSS added to plugins/osmembership/mpdf/css/member_card.css (including an img size rule and @page size) had no effect.
- A <style> block in the card layout also had no effect. Only inline styles work.
- A config.php in plugins/osmembership/mpdf/ containing 'img_dpi' => 235 and 'dpi' => 235 had no effect either. The QR stayed at 96 dpi.
Could you confirm whether member_card.css and config.php are loaded when generating member cards?
3) Page Format "Custom" error, and a workaround that leaves a blank page
- Setting Page Format to Custom still gives: "0 Unknown page format CUSTOM".
- As a workaround, I added this as the first line of the card layout:
<pagebreak orientation="L" sheet-size="54mm 85.6mm" margin-left="0" margin-right="0" margin-top="0" margin-bottom="0" margin-header="0" margin-footer="0" />
- This produces a correct 85.6 x 54mm landscape card on page 2, but page 1 is a blank A6 page, because the document is created at the Page Format size before the layout is rendered.
I need a single card-sized page to print directly to a card printer (CR80). Could the Custom page format be fixed to accept a width and height, or could a credit-card size (85.6 x 54mm) be added as a Page Format option?
Current settings: Page Orientation Landscape, Page Format A6, PDF margins Left 1 / Right 1 / Top 2 / Bottom 2.
Thanks