LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-08-2014, 03:59 PM   #1
cyberpi78
LQ Newbie
 
Registered: Nov 2014
Posts: 7

Rep: Reputation: Disabled
Exclamation USPS Click-n-Ship: Barcode doesn't print


Hey all,

I'm new to the forum. I'm hoping someone might be able to help me.

===========================================================

I noticed today that at the top of the PDF I was printing, where the 2D postage code should appear, all that shows there is the word "Button" That's no good, USPS uses the barcode for scanning in the package when it is processed to be shipped.

My current Linux environment:

Distributor ID: Debian
Description: Debian GNU/Linux 7.6 (wheezy)
Release: 7.6
Codename: wheezy

Any ideas? I can't seem to figure out what the problem is. I use my Raspberry Pi to do e-commerce business on.

Problem example:


Last edited by cyberpi78; 11-08-2014 at 09:31 PM. Reason: typos
 
Old 11-08-2014, 08:58 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Hello and welcome.

My guess is that one or both system or printer can't print the graphics.

Or

The apps that USPS uses to generate that is failing for some reason. A connection to external site, even fedex. Some app or process normally on systems.


Boot a x86 type computer to a usb or cd and see if you can't get to the proper print preview to see if it is on the preview.

Not sure I know anyone that might have an account to test how it works.

Last edited by jefro; 11-08-2014 at 09:01 PM.
 
Old 11-08-2014, 09:28 PM   #3
cyberpi78
LQ Newbie
 
Registered: Nov 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Exclamation

Quote:
Originally Posted by jefro View Post
Hello and welcome.

My guess is that one or both system or printer can't print the graphics.

Or

The apps that USPS uses to generate that is failing for some reason. A connection to external site, even fedex. Some app or process normally on systems.


Boot a x86 type computer to a usb or cd and see if you can't get to the proper print preview to see if it is on the preview.

Not sure I know anyone that might have an account to test how it works.
Thanks for welcoming me I appreciate it.

No, it was working fine. I don't think that's the problem. I save the label as a PDF, previewing it shows the barcode. Printing, the barcode disappears. My printer is fine. I think it has something to with how the document viewer parses the information and translates it to send to the printer through the que. I'm guessing it's a bug within the application HP offers for printing on Linux called HPLIP. I failed to mention it's an HP Photosmart printer. So, between HPLIP and the document viewer?? I'm just not sure at this point. It's frustrating...
 
Old 11-08-2014, 09:34 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Is the barcode being downloaded from a web site? Perhaps I'm getting too used to embedded content in email but that's what occurs to me.
 
Old 11-08-2014, 09:41 PM   #5
cyberpi78
LQ Newbie
 
Registered: Nov 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Lightbulb

Quote:
Originally Posted by 273 View Post
Is the barcode being downloaded from a web site? Perhaps I'm getting too used to embedded content in email but that's what occurs to me.
Yes, from USPS.com through their Click-n-Ship business portal. As I mentioned the PDF saves fine. The barcode appears to be intact, but when I print the barcode disappears and instead prints out the word 'Button' which, I suppose is an embedded image within the PDF.

Hmmm maybe HPLIP has trouble processing certain types of embedded image files??
 
Old 11-08-2014, 09:46 PM   #6
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Sorry I meant that I wonder whether the barcode is an image served by a web server and displayed in the PDF client in the same manner that embedded images are used in email.
 
Old 11-08-2014, 09:50 PM   #7
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Try converting the PDF to PS and then printing.
 
Old 11-08-2014, 09:51 PM   #8
cyberpi78
LQ Newbie
 
Registered: Nov 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
Sorry I meant that I wonder whether the barcode is an image served by a web server and displayed in the PDF client in the same manner that embedded images are used in email.
Well, that's a good theory. However, I'm not sure that's the case. I'm definitely curious how to check that though. I'm not sure how to debug a PDF?

---------- Post added 11-08-14 at 07:52 PM ----------

Quote:
Originally Posted by metaschima View Post
Try converting the PDF to PS and then printing.
What is a PS? PostScript?

Last edited by cyberpi78; 11-08-2014 at 09:55 PM.
 
Old 11-08-2014, 09:57 PM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by cyberpi78 View Post
Well, that's a good theory. However, I'm not sure that's the case. I'm definitely curious how to check that though. I'm not sure how to debug a PDF?[COLOR="Silver"]
Are you able to transfer the file to a Windows machine with Adobe Reader that is not online?
The above begs the question how do you know that the part which says "button" is, in fact, a barcode? As I would suggest you take whichever reader that was and clear its cache, take it off-line and test from there.
 
Old 11-08-2014, 10:03 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
If the pdf preview shows it then you have it at your computer. It's the print ability or printer then. Some reason the graphic can't print or is being printed in wrong place.


Can you save the pdf?
 
Old 11-08-2014, 10:03 PM   #11
cyberpi78
LQ Newbie
 
Registered: Nov 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
Are you able to transfer the file to a Windows machine with Adobe Reader that is not online?
The above begs the question how do you know that the part which says "button" is, in fact, a barcode? As I would suggest you take whichever reader that was and clear its cache, take it off-line and test from there.
Yes, it prints fine on a Windows machine.

I know it's a barcode, because I've compared labels between Windows and Linux.

I'm not sure what reader or readers Linux uses? Or which reader is integrated with HPLIP.
 
Old 11-08-2014, 10:04 PM   #12
cyberpi78
LQ Newbie
 
Registered: Nov 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jefro View Post
If the pdf preview shows it then you have it at your computer. It's the print ability or printer then. Some reason the graphic can't print or is being printed in wrong place.


Can you save the pdf?
Yes, I can.
 
Old 11-08-2014, 10:08 PM   #13
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I am probably wrong but:
Quote:
Originally Posted by 273 View Post
As I would suggest you take whichever reader that was and clear its cache, take it off-line and test from there.
 
Old 11-08-2014, 10:11 PM   #14
cyberpi78
LQ Newbie
 
Registered: Nov 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
I am probably wrong but:
Hmmm. How does one clear the cache?
 
Old 11-09-2014, 10:43 AM   #15
metaschima
Senior Member
 
Registered: Dec 2013
Distribution: Slackware
Posts: 1,982

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by cyberpi78 View Post
What is a PS? PostScript?
Yeah. If I remember right this may fix some images not printing on HP printers. I don't really remember the fix, but I remember I had to do some conversion to another format before it would print.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CUPS - Print jobs shows completed, but page doesn't print hikerguy Linux - Software 10 05-12-2017 12:17 PM
LXer: It Doesn't Look Like FreeBSD 10 Will Ship This Year LXer Syndicated Linux News 0 12-01-2013 11:22 AM
LXer: File under 'disturbing': Debian Wheezy doesn't ship with the Synaptic Package Manager LXer Syndicated Linux News 1 08-22-2012 07:03 AM
Slackware 12 & Click n Ship slackass Slackware 6 03-17-2008 11:02 PM
Mozilla problems: Print/print preview doesn't work, not recording sites in history... andy_g_gray Linux - Software 3 01-23-2004 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration