Advertisementtop - development preview

← Indietro

UBL 2.1 to PDF

Learn how to transform your Universal Business Language invoices (UBL 2.1) into professional PDF documents for easy sharing and printing.

Understanding UBL 2.1 Format

UBL (Universal Business Language) is an international XML standard for electronic business documents. It's widely used in cross-border transactions and is the foundation for many e-invoicing systems, including the Peppol network.

Key characteristics of UBL 2.1:

  • International ISO standard (ISO/IEC 19845)
  • Flexible structure supporting various document types
  • Widely adopted in global e-invoicing
  • Compatible with Peppol and other networks
  • Supports complex business rules and validations
  • Extensible for custom requirements

UBL 2.1 Structure Example

UBL uses a different XML structure. Below is an example of how invoice data is structured in UBL format:

xml
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2" 
        xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2">
  <cbc:ID>2024-0001</cbc:ID>
  <cbc:IssueDate>2024-01-15</cbc:IssueDate>
  <cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
  <cac:AccountingSupplierParty>
    <cbc:CustomerAssignedAccountID>CUST123</cbc:CustomerAssignedAccountID>
    <cac:Party>
      <cac:PartyName>
        <cbc:Name>Global Company Ltd</cbc:Name>
      </cac:PartyName>
      <cac:PartyLegalEntity>
        <cbc:CompanyID schemeID="0002">12345678900012</cbc:CompanyID>
      </cac:PartyLegalEntity>
      <cac:PostalAddress>
        <cbc:StreetName>123 Business Street</cbc:StreetName>
        <cbc:CityName>New York</cbc:CityName>
        <cbc:PostalZone>10001</cbc:PostalZone>
        <cac:Country>
          <cbc:IdentificationCode>US</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID>US123456789</cbc:CompanyID>
        <cac:TaxScheme>
          <cbc:ID>VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:PartyTaxScheme>
    </cac:Party>
  </cac:AccountingSupplierParty>
  <cac:AccountingCustomerParty>
    <cac:Party>
      <cac:PartyName>
        <cbc:Name>Customer Company Inc</cbc:Name>
      </cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>456 Customer Avenue</cbc:StreetName>
        <cbc:CityName>Los Angeles</cbc:CityName>
        <cbc:PostalZone>90001</cbc:PostalZone>
        <cac:Country>
          <cbc:IdentificationCode>US</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID>US987654321</cbc:CompanyID>
        <cac:TaxScheme>
          <cbc:ID>VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:PartyTaxScheme>
    </cac:Party>
  </cac:AccountingCustomerParty>
  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="C62">10</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount>1000.00</cbc:LineExtensionAmount>
    <cac:TaxTotal>
      <cbc:TaxAmount>200.00</cbc:TaxAmount>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Name>Product description</cbc:Name>
      <cbc:Description>Detailed product description</cbc:Description>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="USD">100.00</cbc:PriceAmount>
    </cac:Price>
  </cac:InvoiceLine>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="USD">200.00</cbc:TaxAmount>
    <cbc:TaxAmount currencyID="USD">200.00</cbc:TaxAmount>
  </cac:TaxTotal>
  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="USD">1000.00</cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="USD">1000.00</cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="USD">1200.00</cbc:TaxInclusiveAmount>
    <cbc:PayableAmount currencyID="USD">1200.00</cbc:PayableAmount>
  </cac:LegalMonetaryTotal>
</Invoice>

Why Convert UBL 2.1 to PDF?

Converting UBL 2.1 to PDF is useful for:

  • Easy sharing: Send invoices to customers who prefer PDF format
  • Printing needs: Create professional printed copies for records
  • Archiving: Store invoices in widely compatible format
  • Customer preference: Many businesses still request PDF invoices
  • Review purposes: Easy visual review before sending

Conversion Process

Converting your UBL 2.1 to PDF involves these simple steps:

Step 1: Upload Your Invoice

Simply upload your UBL 2.1 XML file. The system reads all the structured international invoice data.

Step 2: Automatic Layout Generation

Our converter automatically creates a professional PDF layout that includes:

  • Company header with logo and contact details
  • Customer and supplier information
  • Complete invoice line items with descriptions
  • Tax breakdowns and totals
  • Payment terms and bank details
  • International legal requirements and compliance notes

Step 3: Format Optimization

The system ensures your PDF looks professional and meets business standards:

  • Professional typography and spacing
  • Clear table layouts for line items
  • Proper page margins and headers
  • International address and tax format compliance
  • Readable fonts and appropriate sizing

Step 4: Quality Check

Before generating the final PDF, the system performs several quality checks:

  • All data is correctly extracted from XML
  • Calculations are accurate (totals, taxes, etc.)
  • Required fields are properly displayed
  • International formatting requirements are met
  • PDF is optimized for printing and sharing

Step 5: Download Your PDF

Receive a professionally formatted PDF invoice that's ready to use immediately for printing, emailing, or archiving.

Common Conversion Considerations

Keep these points in mind when converting UBL 2.1 to PDF:

1. Data Accuracy

Ensure your UBL 2.1 file contains complete and accurate information:

  • All required fields are filled correctly
  • VAT numbers and tax codes are valid
  • Customer and supplier details are complete
  • Invoice amounts and calculations are correct

2. International Requirements

Your PDF should maintain compliance with international business practices:

  • Include company VAT number and fiscal code
  • Display international payment terms and conditions
  • Show proper international address formatting
  • Include required international legal notices
  • Use international date formats (DD/MM/YYYY)

3. Professional Presentation

Create PDFs that look professional and are easy to read:

  • Clear company branding and contact information
  • Well-organized tables for line items
  • Consistent formatting throughout the document
  • Appropriate use of colors and styling
  • Mobile-friendly layout considerations

Best Practices for PDF Conversion

Follow these guidelines for optimal results:

1. File Preparation

  • Validate UBL 2.1 file before conversion
  • Check for any XML validation errors
  • Ensure all mandatory fields are present
  • Verify tax calculations and codes

2. Quality Assurance

  • Review generated PDF for accuracy
  • Check that all data transferred correctly
  • Verify professional appearance and layout
  • Test printing and display functionality

3. Document Management

  • Organize converted PDFs systematically
  • Use clear naming conventions for files
  • Maintain backup copies of important documents
  • Keep original UBL file for reference

Benefits of Professional PDF Conversion

Converting to professional PDF format offers several advantages:

For Business Operations

  • Universal compatibility with any device or system
  • Easy integration with existing workflows
  • Professional appearance for customer communications
  • Reliable format for long-term archiving

For Customer Relations

  • Clear, professional invoice presentation
  • Easy sharing via email or cloud storage
  • Convenient printing for record-keeping
  • Improved payment processing with clear terms
Last modified: 2025
Advertisementbottom - development preview