LinuxQuestions.org
Register a domain and help support LQ
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 10-01-2007, 11:12 PM   #1
CJ Chitwood
Member
 
Registered: Dec 2006
Location: Jacksonville, FL
Distribution: Mint. Regrettably.
Posts: 127

Rep: Reputation: 16
Printing to printable CDs: Bottom section won't print


Hi again.

I'm using an HP Photosmart D5160, and the PPD provided by linuxprinting.org's PPD-O-Matic (or was it openprinting.org, or hplip.sf.net, or...?).

I'm printing onto a printable CD, a Memorex with printable hub.

There's this white bar at the bottom of the printed image. The rest of the CD will print, all the way to the edge (and then some if I tell it to), and even though the displayed image has data there, the printed image does not.

Once upon a moon, I was able to print using glabels, and now I can't, so I'm trying to print from GIMP directly. In the past, and even now, using the provided PPD, it prints everything offcenter by about a centimeter or so, shifting the entire image down by about a centimeter and left by about a half centimeter. Also, GIMP won't use the image's true DPI of 300, opting instead for 311 or more, making the overall image smaller than desired when printed.

I've taken to editing the PPD file by hand to make the print area large enough that I can print (1) with the correct DPI in GIMP and (2) make it just a hair shy of being perfectly centered. I still need to play with it to make it "just right", but I can do that in the GIMP by trial and error and eventually get it sized and positioned the way I want it.

However, I just can't get this white bar at the bottom of the image to make go away.

Any advice?

Thanks in advance,

CJ
 
Old 10-08-2007, 11:29 PM   #2
CJ Chitwood
Member
 
Registered: Dec 2006
Location: Jacksonville, FL
Distribution: Mint. Regrettably.
Posts: 127

Original Poster
Rep: Reputation: 16
Found the answer!

Through much experimentation, I finally found some settings in the PPD that I could work with. I had to have a regular PPD from openprinting.org for the CUPS queue setup, and a different, hacked PPD for The GIMP's printing setup. Any time I used the same for both, it would print offcenter with a blank section at the bottom.

For my hacked PPD file, I found the following keywords and used the corresponding qualifiers with them. I removed all entries for non-CDDVD120 paper sizes, too, though that appears completely optional.



HWMargins had to be set to zeroes.

DEVICEHEIGHTPOINTS and DEVICEWIDTHPOINTS both were set to 375 IIRC.

ImageableArea is 3 11 345 353

PaperDimension is 400 400


The rest I left alone.

Of course, these numbers (mainly the ImageableArea one) will have to be adjusted for your printer's unique "center" location, but as long as the region is 342 points (where 1 point = 1/72 inch) on each side, square, you should be able to play with it until you get it centered. 342/72 of an inch equals 4 and three quarter inches -- the size of a CD/DVD. Your image should also, therefore, be 342 points (4.75 inches) square, with a concentric circle of the same diameter masking the image in white so as to prevent printing off-disc. A similar concentric white dot equal to the size of the disc's unlabeled hub (dorry didn't measure it recently) should also be used to prevent hub printing.

When edited correctly and using the correct image, GIMP will not allow you to move the image around in the preview window.

I made a brief HOWTO as well, and posted it in the HCL under my original Photosmart D5160 post (mainly because I forgot I had made this one).


Cheers
 
  


Reply

Tags
area, cd, gimp, photosmart, ppd, printing, white


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Printing directly on CDs with my Epson R200 RedShirt Linux - Software 7 07-15-2012 07:42 AM
Software to print labels for CDs/DVDs? cdhgee Linux - Software 7 06-10-2008 04:57 AM
Brother MFC-210C top margin is huge, bottom doesn't print Guitarist88 Linux - Hardware 2 03-29-2008 07:46 PM
Print section with bash commands xeon123 Programming 1 06-16-2007 03:35 PM
Print Margins Off When Printing naeric Linux - Software 1 06-17-2004 12:05 PM


All times are GMT -5. The time now is 02:49 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration