---
title: "Invalid PDF structure for PDF labels"
description: "What to do if an error appears and the label is not generated"
url: https://help.qargo.com/us/articles/141107-invalid-pdf-structure-for-pdf-labels
locale: us
updated: 2025-10-15
---

# Invalid PDF structure for PDF labels

When an **"Invalid PDF structure"** error appears while generating Palletline shipment labels, the cause is typically either missing data or a temporary API communication failure.

The error looks like this:

![](https://help.qargo.com/media/20e51c250d90-image.png)

The steps below explain how to diagnose and resolve the error:

## Missing or incorrect shipment data {#h_943d0b2d44}

Incomplete or invalid data in the shipment details is a common cause of a failed label.

1.  Go to the shipment details and check that the following fields are filled in correctly:

    -   **Weight**
    -   **Packaging size**
    -   **Service level**
    -   **PCS information**
    -   **Pallet spaces**

2.  Delete the invalid label, then retrigger the **dispatch task** to the network.

## Palletline API failure {#h_182cdc1faa}

Occasionally, the Palletline API fails with a technical error, often reported as **"Unknown Username or Incorrect Password."** This failure prevents valid PDF content from being returned, which results in the "Invalid PDF structure" error in the web client.

When an **invalid label** appears and the manifest date of the Palletline shipment is **today or in the future**, these two steps force a regeneration:

1.  **Delete the invalid label:** Locate the invalid label in the shipment details and delete it.
2.  **Retrigger the dispatch:** Manually retrigger the **dispatch task**.

This resends the label request and generates new, valid labels.


## Related articles

- [Customer can't print a label because of an invalid PDF error. What can be done?](https://help.qargo.com/us/articles/217575-customer-cant-print-a-label-because-of-an-invalid-pdf-error-what-can-be-done.md)
- [Label generation](https://help.qargo.com/us/articles/143909-label-generation.md)
- [See everything with a Contrado label that is not going to palletline](https://help.qargo.com/us/articles/142100-see-everything-with-a-contrado-label-that-is-not-going-to-palletline.md)
- [Pallet label error: The PDF file is empty, i.e. its size is zero bytes.](https://help.qargo.com/us/articles/182843-pallet-label-error-the-pdf-file-is-empty-i-e-its-size-is-zero-bytes.md)
- [Tasks – Complete tasks in bulk](https://help.qargo.com/us/articles/133829-tasks-complete-tasks-in-bulk.md)
