VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: panne003 on August 03, 2024, 09:27:48 AM

Title: blank pdf delivery note and blank pdf invoice
Post by: panne003 on August 03, 2024, 09:27:48 AM
I have installed the VirtueMart 4.2.16 11030. I have migrate from joomla 3 to joomla 4. Every order status works fine, but when my customer uses the post-payment method (achterafbetaal methode) I get a blank invoice and a blank delivery note with no items. Only the head and the foot of the invoice/delivery note. I call the orderstatus "A". And the name "achter afbetalen via billink"

In the old version of virtuemart it works fine, but now in the new a get blank deliverynotes and blank invoice.
Does somebody help me with that?
Title: Re: blank pdf delivery note and blank pdf invoice
Post by: panne003 on June 26, 2026, 16:25:06 PM
### Opgelost: Lege PDF-facturen en afleverbonnen bij PAY.nl Billink (VirtueMart 4 / Joomla 5)

Na bijna twee jaar zoeken heb ik eindelijk de oorzaak gevonden.

**Omgeving**

* Joomla 5.4.6
* VirtueMart 4.6.8
* PAY.nl plugin 4.0.3
* Billink Achteraf Betalen

**Probleem**

Alleen bij Billink werden de factuur-PDF en afleverbon volledig leeg gegenereerd.

De HTML van de factuur was volledig correct, maar de PDF bevatte alleen een lege pagina. Andere betaalmethoden zoals iDEAL werkten probleemloos.

Na uitgebreid debuggen van:

* VirtueMart
* TCPDF
* PAY.nl plugin
* vmpdf.php

bleek uiteindelijk dat de oorzaak helemaal niet in de plugin zat.

### Oorzaak

De naam van de betaalmethode bevatte:

```
Billink Achteraf betalen <€100,-
```

Het `<`-teken werd door TCPDF als het begin van een HTML-tag geïnterpreteerd.

Daardoor kon TCPDF de HTML niet meer correct verwerken en werd een lege PDF aangemaakt.

### Oplossing

Wijzig de naam van de betaalmethode bijvoorbeeld naar:

```
Billink Achteraf betalen tot €100,-
```

of

```
Billink Achteraf betalen (€0 - €100)
```

Na deze wijziging werken direct weer:

* PDF-facturen
* Afleverbonnen
* E-mails met PDF-bijlage

Misschien helpt dit iemand anders die hetzelfde probleem heeft.

### Solved: Empty PDF invoices and packing slips with PAY.nl Billink (VirtueMart 4 / Joomla 5)

After almost two years of troubleshooting I finally found the root cause.

**Environment**

* Joomla 5.4.6
* VirtueMart 4.6.8
* PAY.nl plugin 4.0.3
* Billink Post-Payment

**Problem**

Only Billink generated completely empty invoice PDFs and packing slips.

The invoice HTML was generated correctly, but the PDF itself contained no content.

Other payment methods (such as iDEAL) worked perfectly.

After debugging:

* VirtueMart
* TCPDF
* PAY.nl plugin
* vmpdf.php

it turned out that neither VirtueMart nor the PAY.nl plugin was responsible.

### Root cause

The payment method name contained:

```
Billink Achteraf betalen <€100,-
```

The `<` character was interpreted by TCPDF as the start of an HTML tag.

As a result, TCPDF failed to render the HTML correctly and generated an almost empty PDF.

### Solution

Rename the payment method, for example:

```
Billink Post-Payment up to €100
```

or

```
Billink Post-Payment (€0 - €100)
```

After removing the `<` character:

* Invoice PDFs are generated correctly.
* Packing slips work again.
* PDF attachments in customer emails are generated correctly.

Hopefully this saves someone else many hours of debugging.