Skip to Content
Odoo मेन्यू
  • Sign in
  • मुफ़्त में आज़माएं
  • ऐप्लिकेशन
    फ़ाइनेंस
    • अकाउंटिंग
    • इनवॉइसिंग
    • एक्सपेंस
    • स्प्रेडशीट (बीआई)
    • डॉक्यूमेंट्स
    • साइन
    सेल्स
    • सीआरएम
    • सेल्स
    • पीओएस शॉप
    • पीओएस रेस्टोरेंट
    • सब्सक्रिप्शन
    • रेंटल
    वेबसाइट
    • वेबसाइट बिल्डर
    • ई-कॉमर्स
    • ब्लॉग
    • फ़ोरम
    • लाइव चैट
    • ई-लर्निंग
    सप्लाई चेन
    • इन्वेंट्री
    • मैन्युफ़ैक्चरिंग
    • पीएलएम
    • परचेज़
    • मेंटेनेंस
    • क्वालिटी
    मानव संसाधन
    • कर्मचारी
    • रिक्रूटमेंट
    • टाइम ऑफ़
    • अप्रेज़ल
    • रेफ़रल
    • फ़्लीट
    मार्केटिंग
    • सोशल मार्केटिंग
    • ईमेल मार्केटिंग
    • एसएमएस मार्केटिंग
    • इवेंट
    • मार्केटिंग ऑटोमेशन
    • सर्वे
    सेवाएं
    • प्रोजेक्ट
    • टाइमशीट
    • फ़ील्ड सर्विस
    • हेल्पडेस्क
    • प्लानिंग
    • अपॉइंटमेंट
    प्रॉडक्टिविटी
    • डिस्कस
    • अप्रूवल
    • आईओटी
    • वीओआईपी
    • नॉलेज
    • WhatsApp
    तीसरे पक्ष के ऐप्लिकेशन Odoo स्टूडियो Odoo क्लाउड प्लेटफ़ॉर्म
  • इंडस्ट्री
    रीटेल
    • बुक स्टोर
    • क्लोदिंग स्टोर
    • फ़र्नीचर स्टोर
    • ग्रॉसरी स्टोर
    • हार्डवेयर स्टोर
    • टॉय स्टोर
    Food & Hospitality
    • बार और पब
    • रेस्टोरेंट
    • फ़ास्ट फ़ूड
    • Guest House
    • बेवरिज डिस्ट्रीब्यूटर
    • होटल
    रियल एस्टेट
    • Real Estate Agency
    • आर्किटेक्चर फ़र्म
    • कंसट्रक्शन
    • एस्टेट मैनेजमेंट
    • गार्ड्निंग
    • प्रॉपर्टी ओनर असोसिएशन
    कंसल्टिंग
    • अकाउंटिंग फ़र्म
    • Odoo पार्टनर
    • मार्केटिंग एजेंसी
    • लॉ फ़र्म
    • टैलेंट ऐक्विज़िशन
    • ऑडिट & सर्टिफ़िकेशन
    मैन्युफ़ैक्चरिंग
    • टेक्सटाइल
    • Metal
    • फ़र्नीचर
    • फ़ूड
    • Brewery
    • कॉर्पोरेट गिफ़्ट
    हेल्थ & फिटनेस
    • स्पोर्ट्स क्लब
    • आईवियर स्टोर
    • फिटनेस सेंटर
    • वेलनेस प्रैक्टिशनर
    • फॉर्मेसी
    • हेयर सैलून
    Trades
    • Handyman
    • आईटी हॉर्डवेयर और सपोर्ट
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    अन्य
    • Nonprofit Organization
    • एन्वायरमेंटल एजेंसी
    • बिलबोर्ड रेंटल
    • फ़ोटोग्राफी
    • बाइक लीजिंग
    • सॉफ़्टवेयर रीसेलर
    Browse all Industries
  • कम्यूनिटी
    सीखें
    • ट्यूटोरियल्स
    • दस्तावेज़
    • सर्टिफ़िकेशन
    • ट्रेनिंग
    • ब्लॉग
    • पॉडकास्ट
    शिक्षा को बढ़ावा दें
    • एजुकेशन प्रोग्राम
    • स्केल अप! बिजनेस गेम
    • Odoo के ऑफ़िस में आएं
    सॉफ़्टवेयर पाएं
    • डाउनलोड
    • वर्शन की तुलना करें
    • रिलीज़
    साथ मिलकर काम करें
    • Github
    • फ़ोरम
    • इवेंट
    • अनुवाद
    • पार्टनर बनें
    • Services for Partners
    • अपना अकाउंटिंग फ़र्म रजिस्टर करें
    सेवाएं पाएं
    • पार्टनर ढूंढें
    • अकाउंटेंट खोजें
    • सलाहकार की मदद लें
    • इम्प्लिमेंटेशन सेवाएं
    • कस्टमर रेफ़रेंस
    • सहायता
    • अपग्रेड
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    डेमो देखें
  • कीमत
  • सहायता

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

  • सीआरएम
  • e-Commerce
  • लेखांकन
  • इन्वेंटरी
  • PoS
  • प्रोजेक्ट
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
टैग (View all)
odoo accounting v14 pos v15
About this forum
Help

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

Subscribe

Get notified when there's activity on this post

This question has been flagged
pdfproductxslreportslabels
3 Replies
14965 Views
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
Discard
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
Discard
Avatar
Med Said BARA
Best Answer

hi;

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

1
Avatar
Discard
Santi
Author

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
Author

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
Author

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
Author

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
Author

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

Santi
Author

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
Author

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
Discard
Enjoying the discussion? Don't just read, join in!

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

Sign up
Related Posts Replies Views Activity
PDF report name isn't respected when using module from app store
pdf reports
Avatar
0
सित॰ 21
3573
PDF reports show negative amounts with vertical bar "|" instead of "-". How can I fix this.?
pdf reports
Avatar
Avatar
1
मई 18
4523
No css format on PDF reports after upgrade Odoo Server 10.0-20170119 ! (no headers) Solved
pdf reports
Avatar
Avatar
2
जन॰ 17
7712
Need modified of Label reports
reports labels
Avatar
0
मार्च 15
3396
Reports not auto-saved to attachments Solved
pdf reports
Avatar
Avatar
Avatar
3
मार्च 15
8414
कम्यूनिटी
  • ट्यूटोरियल्स
  • दस्तावेज़
  • फ़ोरम
ओपन सोर्स
  • डाउनलोड
  • Github
  • रनबॉट
  • अनुवाद
सेवाएं
  • Odoo.sh Hosting
  • सहायता
  • अपग्रेड
  • कस्टम डेवलपमेंट्स
  • शिक्षा
  • अकाउंटेंट खोजें
  • पार्टनर ढूंढें
  • पार्टनर बनें
हमारे बारे में
  • हमारी कंपनी
  • ब्रांड ऐसेट
  • संपर्क करें
  • नौकरियां
  • इवेंट
  • पॉडकास्ट
  • ब्लॉग
  • ग्राहक
  • लीगल • गोपनीयता
  • सुरक्षा
الْعَرَبيّة 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, बिज़नेस से जुड़े ऐप्लिकेशन का एक कलेक्शन है जो ओपन सोर्स पर आधारित है. इसमें आपकी कंपनी की हर ज़रूरत के लिए ऐप्लिकेशन हैं. जैसे, सीआरएम, ई-कॉमर्स, अकाउंटिंग, इन्वेंट्री, पॉइंट ऑफ़ सेल, प्रोजेक्ट मैनेजमेंट वगैरह.

Odoo की सबसे बड़ी खासियत है कि यह इस्तेमाल करने में बहुत आसान है और यह पूरी तरह से इंटिग्रेट किया हुआ है.

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