Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Why is there an empty/blank page at the end of the PDF when printing product labels?

Subscriure's

Get notified when there's activity on this post

This question has been flagged
pdfproductxslreportslabels
3 Respostes
14963 Vistes
Avatar
Santi

When I print a product label (or several at the same time) there's always a blank page at the end of the resulting PDF document. I've searched a long time for a solution, but nobody else seems to complain about this behavior, I'm surprised as this seems to be the default behavior with a clean OpenERP installation, so it's not the result of any of my modifications. This is a pain in the a$$, as each time I print a label I waist an empty label in the printer...or I have to manually tell Acrobat to ignore the last page.

After investigating on my own, I've figured out that the <nextFrame /> tag is what causes this issue. So as a temporary fix, I've removed it from the "product_label.xsl" code, this solution works fine when printing one label, but when I try to print several at once, the label frames overlap each other...

So, is there anyone else having this problem? and if so, have you come up with a solution?

Here is the actual code I'm using for the label layout in the "product_label.xsl":

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl=w w w . o r g/1999/XSL/Transform" xmlns:fo="http : / / w w w .w 3. org/1999/XSL/Format">
 <xsl:template match="label">
 <document filename="Product Label.pdf">
 <template pageSize="(80mm, 50mm)" 
           leftMargin="1.4mm" rightMargin="1.4mm" topMargin="0mm" bottomMargin="0mm" 
           title="Product Label" author="Turbo Internacional">
 <pageTemplate id="all">
     <frame id="first" x1="0" y1="0" width="80mm" height="50mm"/>
 </pageTemplate>
 </template>
 <stylesheet>
 <paraStyle name="st_product" fontName="Helvetica" leading="10" fontSize="7"  spaceBefore="0"   spaceAfter="0"/>
 <paraStyle name="st_description"  fontName="Helvetica" leading="10" fontSize="7"  spaceBefore="0"   spaceAfter="0" alignment="left"/>

<blockTableStyle id="st_table">
                         <blockAlignment value="CENTER"/>
                         <blockValign value="TOP"/>
                     </blockTableStyle>
 </stylesheet>
 <story>
 <xsl:apply-templates select="product_label" mode="story"/>
 </story>
 </document>
 </xsl:template>

 <xsl:template match="product_label" mode="story">
    <blockTable style="st_table">
        <tr>
            <td>
                <para style="st_product"><xsl:text>Ref: </xsl:text><xsl:value-of select="product"/></para>
                <para style="st_description"><xsl:value-of select="description"/><xsl:text>  </xsl:text></para>
                </td>
            </tr>

        <tr>
            <td>        
                <barCode code="ean13" height="17mm" width="40mm" alignment="CENTER"><xsl:value-of select="ean13" /></barCode>
                    </td>
            </tr>
    </blockTable>
    <nextFrame/>
 </xsl:template>
</xsl:stylesheet>
0
Avatar
Descartar
Avatar
Darius Martinkus
Best Answer

Guys have you tried to print product labels with multiple product variant attribute types? like size, color? For me it only prints one for example size attribute and ignores the other

1
Avatar
Descartar
Avatar
Med Said BARA
Best Answer

hi;

Try also to remove the closing tag <nextframe/>, and see if it works.

1
Avatar
Descartar
Santi
Autor

Nop, it doesn't work, I receive this error when trying to print "SyntaxError: JSON.parse: unexpected end of data"

Med Said BARA

Are you using Oerp V7, Are you printing on a label printer (which one ZEBRA SATO ....) ?

Santi
Autor

Yes, I'm using OpenERP v7 on an Ubuntu 13.04 server, and I'm using a Toshiba B-SV4T Thermal label printer, but the printer doesn't matter right now, because for the moment I'm not printing directly to the printer (because there's no drivers available for that printer in Ubuntu), when I click the Print Label button, openerp saves a PDF document, and there's where I get the extra blank page, at the end of that PDF. Once this PDF is created, I send it to the label printer (which is installed in one of the Windows client dektops we have in our company)

Med Said BARA

Try using those modules from AGAPLAN: label_print and label_print_stock

Santi
Autor

I've already tried both those modules, they seem interesting, but they're not what I'm looking for exactly. I'm happy with my current setup...as long as I figure out how to delete that extra blank page in the PDF labels. But really, am I the only one having that issue with product labels?? Since I first saw that issue, I've reinstalled Ubuntu, reinstalled OpenERP, updated it, created a new database and company....but I always get that extra blank page at the end of the product label PDF documents...So I've discarded this issue being a problem related to my current installation.

Med Said BARA

You must install the Driver for B-SV4T, use this one from GITHUB : CUPS Raster Drvier for the Toshiba TEC TPCL based label printers, configure you label size, revert all changes you made in the .xsl file except the template page size and margins, after that you can print directly to the printer and if needed (if you are using FireFox) you can use extension for fireFox like AttendPrint or qz-print-free_1.8.0_src.7z from qzindustries to print directly to the printer

Santi
Autor

WOW, that's a helpful answer!..I wasn't aware of those drivers..I actually started searching for them last Friday, with no luck. I'll try it on Monday when I'm back at the office and let you know, hopefully you've helped me kill 2 birds with one stone. thanks!

Med Said BARA

At first Don't forget to calibrate your printer with the roll of label you are using to avoid the overlapping, this calibration permit to the printer to recognise the begining and the ending of the laben (Height). After that the driver will handle all the printing operation correctly and will free you from dealing with pdf paper size and so on ...

Med Said BARA

One Bird for you and the second for me. GOOD LUCK

Santi
Autor

Yes, I've done that already when testing the printer on the Windows desktop.

Santi
Autor

I tried installing the drivers you suggested at " github.com/samlown/rastertotpcl " , but no luck, I get the same error as this guy while installing: " github.com/samlown/rastertotpcl/issues/1 " , I suppose the drivers are outdated and not compatible with the latest Ubuntu version.

Med Said BARA

What about CUPS: install CUPS before installing the driver (sudo apt-get install libcupsimage2-dev) or from source (make and after sudo make install)

Santi
Autor

Yes, I've done both...and I get the same errors as this guy: link " github.com/samlown/rastertotpcl/issues/1 "

Avatar
Riyaz Ahmad
Best Answer

Simply if your Trasnfer Quantities for Product Label is Generating Blank PDF then the issue is with your UoM (Unit of Measure), Try Chaning it to default from Configuration and It will start to print the labels as of now its unable to understand what your UoM means thats why its generating blank PDFs

0
Avatar
Descartar
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
PDF report name isn't respected when using module from app store
pdf reports
Avatar
0
de set. 21
3572
PDF reports show negative amounts with vertical bar "|" instead of "-". How can I fix this.?
pdf reports
Avatar
Avatar
1
de maig 18
4523
No css format on PDF reports after upgrade Odoo Server 10.0-20170119 ! (no headers) Solved
pdf reports
Avatar
Avatar
2
de gen. 17
7712
Need modified of Label reports
reports labels
Avatar
0
de març 15
3395
Reports not auto-saved to attachments Solved
pdf reports
Avatar
Avatar
Avatar
3
de març 15
8414
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now