OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Printing Does Not Work for Some Files

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
Quantum
Power User
Power User


Joined: 17 Jul 2006
Posts: 54
Location: Seattle, Ecotopia

PostPosted: Sat Jun 06, 2009 5:20 am    Post subject: Printing Does Not Work for Some Files Reply with quote

Got a pretty serious problem here, and maybe somebody has an idea.

This week when doing my dist-upgrade I was shocked to find my Debian Testing forced me into a KDE upgrade to 4.2.2. I reealy didn't want this as KDE4 is just not ready. But it is now too late.

I have a legal document that I MUST print. It's an OpenOffice .odt doc which printed fine in KDE3.5.10, but now all I get is blank pages on hardcopy. I print it from OpenOffice as I've always done, and in kdevmon I can see that there's virtually no network traffic going out, and so of course it would print blank.

Other .odt's print fine, but this crucial court-approved document will not. I've exported it to pdf, and "Oklular" shows it fine but also prints it blank. I am no longer allowed to install KPDF since KDE4, and xpdf brings up only about half the characters, and prints it blank. I used pdftops and opened the ps with Okular but the pages are blank. I am no longer allowed kghostview, of course.

Here's the problem document:
http://delphi-real-estate.com/Notice.odt

KDE4 is faster, but they should have freakin' given me some warning as it is still busted and I must get work done.

Any ideas?
Back to top
View user's profile Send private message
james_h
Super User
Super User


Joined: 05 Nov 2005
Posts: 883

PostPosted: Sat Jun 06, 2009 11:01 am    Post subject: Things to try: No printing after KDE update Reply with quote

You could try creating the PDF with Google Documents. You need to set up a free account. You could also try taking your PDF file to a print shop. Many can print from a PDF file. You can also try a Linux distribution that you can run off a CD-ROM or an external drive like Knoppix or Ubuntu. If you prefer Debian, then Debian stable may be a better choice than Debian testing for production work where stability and reliability are important.

Perhaps not all the packages downloaded correctly during your update. With root (administrator) rights, try:
Code:
apt-get -f


For more informaiton, see the manual for the command line package manager apt-get:
Code:
man apt-get
Back to top
View user's profile Send private message
Quantum
Power User
Power User


Joined: 17 Jul 2006
Posts: 54
Location: Seattle, Ecotopia

PostPosted: Sat Jun 06, 2009 12:27 pm    Post subject: Reply with quote

Thanks James.

I would -never- trust Google with any work-related or personal docs. Their privacy policies are atrocious. I don't even use them for search. (Clusty.com)

Good idea to try a Live CD, I'll do that. But Debian Testing is every bit as stable as Stable, and Stable's packages are ancient. It's just this week that KDE4.2 was forced on me without warning when I did my dist-upgrade. Many things are now ruined because it is just not ready. Cost me two days of no work just to get KDE4 running.

apt-get -f install shows no problems. It says alot of files are no longer needed (yeah, sure) and it wants to remove them, so I'll try that.

I think there's something about that document that makes it betray me by displaying but not printing. I can not imagine what that is though. Other documents created at the same time print fine. The difference is this document was created by the court, and I imported it into OO.
Back to top
View user's profile Send private message
james_h
Super User
Super User


Joined: 05 Nov 2005
Posts: 883

PostPosted: Sun Jun 07, 2009 6:50 am    Post subject: Try gimp or Photoshop to print a problem PDF Reply with quote

You're welcome.
The gimp and Adobe Photoshop graphics editor programs will open PDF files and convert them to a bitmap. You could try importing the PDF, then printing the file using one of these programs.
Back to top
View user's profile Send private message
Quantum
Power User
Power User


Joined: 17 Jul 2006
Posts: 54
Location: Seattle, Ecotopia

PostPosted: Sun Jun 07, 2009 8:23 am    Post subject: Reply with quote

Yes printing from Gimp worked, although it printed at lower quality.

There is obviously some setting in the OpenOffice file that is causing this. What setting could there be that denies printing of visible text and graphics?
Back to top
View user's profile Send private message
james_h
Super User
Super User


Joined: 05 Nov 2005
Posts: 883

PostPosted: Sun Jun 07, 2009 11:27 am    Post subject: Use the command line for error information Reply with quote

Usually, if there is a problem you can get more feedback about errors if you start the problem program from a console command line. The error messages that appear may tell you about missing fonts, display problems etc.

If you are using the CUPs printer system, you can send a PDF file directly from the command line.
Quote:
Printing Files

CUPS understands many different types of files directly, including text, PostScript, PDF, and image files. This allows you to print from inside your applications or at the command-line, whichever is most convenient! Type either of the following commands to print a file to the default (or only) printer on the system:

lp filename
lpr filename
There is more information about printing using the command line, including printing to a printer besides the default printer in CUPs help: http://localhost:631/help/options.html or http://www.cups.org/documentation.php/options.html

To start the OpenOffice.org program from the command line, try
Code:
ooffice $HOME/Desktop/Notice.odt
Use the actual path to your problem document.
Back to top
View user's profile Send private message
james_h
Super User
Super User


Joined: 05 Nov 2005
Posts: 883

PostPosted: Sun Jun 07, 2009 1:24 pm    Post subject: Reply with quote

You can view and even edit the settings and content of an OpenDocument format document manually by opening it with a .zip file reader and browsing the .xml files. With your Linux system, you could try temporarily renaming a copy of the Notice.odt file with a .zip extension (i.e.: Notice.zip) and opening it with your archive browser.

I examined your sample file, and noted that the settings.xml file is 9.2 MB instead of 8 MB for a normal default .odt document. Your settings.xml includes the following lines which are not included in the default settings.xml with normal documents:
Code:
<config:config-item-map-indexed config:name="ForbiddenCharacters">

<config:config-item-map-entry>
<config:config-item config:name="Language" config:type="string">ja</config:config-item>
<config:config-item config:name="Country" config:type="string">JP</config:config-item>
<config:config-item config:name="Variant" config:type="string"/>

<config:config-item config:name="BeginLine" config:type="string">
!%),.:;?]}¢°’”‰′″℃、。々〉》」』】〕゛゜ゝゞ・ヽヾ!%),.:;?]}。」、・゙゚¢
</config:config-item>
<config:config-item config:name="EndLine" config:type="string">$([\{£¥‘“〈《「『【〔$([{「£¥</config:config-item>
</config:config-item-map-entry>
Code:

<config:config-item config:name="PrinterSetup" config:type="base64Binary">
VwH+/0hMLTIwNDBfc2VyaWVzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ1VQUzpITC0yMDQwX3NlcmllcwAAAAAAAAAAAAAAAAAWAAMAnQAAAAAAAgAFAFZUAAAkbQAASm9iRGF0YSAxCnByaW50ZXI9SEwtMjA0MF9zZXJpZXMKb3JpZW50YXRpb249UG9ydHJhaXQKY29waWVzPTEKbWFyZ2luZGFqdXN0bWVudD0wLDAsMCwwCmNvbG9yZGVwdGg9MjQKcHNsZXZlbD0wCmNvbG9yZGV2aWNlPTAKUFBEQ29udGV4RGF0YQpQYWdlU2l6ZTpMZXR0ZXIAAA==
</config:config-item>

On the copy of the Notice.zip file, you could delete the settings.xml, save it, then rename it to Notice_edited.odt. When you open the new file let OpenOffice.org program regenerate the settings with the defaults, then save it.
Back to top
View user's profile Send private message
Quantum
Power User
Power User


Joined: 17 Jul 2006
Posts: 54
Location: Seattle, Ecotopia

PostPosted: Thu Jun 11, 2009 9:51 am    Post subject: Reply with quote

It turns out that there was something screwed up with my Cups server. Must have been crashing, but then I'd restart the server and old items were in the queue that didn't print. I don't understand it. At least I know where to look now.

Thanks for the help James.
Back to top
View user's profile Send private message
Quantum
Power User
Power User


Joined: 17 Jul 2006
Posts: 54
Location: Seattle, Ecotopia

PostPosted: Sat Jun 20, 2009 7:53 am    Post subject: Reply with quote

I find that my cups server is retaining jobs, showing them as stopped, even when they've printed. I don't know what to do about that.

I tried lp Notice.pdf and it printed one page blank, just as OO had from the odt, even though I can see all the type on my screen. And I can see all the text when I view the exported pdf in Okular (PDF viewer), but it simply sends out nothing to the printer when I print.

So the problem must be in the translation of the postscript in the odt and pdf, to the postscript of the printer. Almost as if the doc security is set to No Print, but I don't think we have that option in OO, or at least it would warn us rather than just printing a blank page.

I have found that if I export the doc to pdf, and print it with Force Rasterize, it comes out just fine. This is a tremendous relief, as now I can get better quality, and pages after the first. I thought I'd have to pay OfficeDepot to print my docs.

I am finding that I get this syndrome on other official pdf documents downloaded from The Internets, which is alarming, but at least I have a workaround.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group