Export as PDF in LO 3.5

Using Mac 10.7.2, Libre Office 3.5
I wish to write the Libre Office Guides as PDF files for insertion in IOS5,
iPad.
I try to Export to PDF but all I get is a "Write error".
Write2epub is no longer available and I have heard it cannot cope with
formulas and graphics.

I have tried converting other files, shorter, to PDF with the same result.
Is this just me?

Tink.

Hi Tink,

Tinkerer wrote (08-02-12 21:45)

Using Mac 10.7.2, Libre Office 3.5

Sorry, I've no Mac.
But which 3.5. do you refer to exactly ?

I wish to write the Libre Office Guides as PDF files for insertion in IOS5,
iPad.
I try to Export to PDF but all I get is a "Write error".

No problem for me in 3.5.0 rc3 (and the versions before, as far as I've noticed.)

Tinkerer:

No, it's not just you, at least regarding the Writer module.

The Export to PDF function has been broken for some time, but seems to be
related to the size of the output pdf document (it seems to work just fine
for me on smaller files), but I can't confirm that. I have experienced the
identical problem on several machines with disparate OSs (Windows XP,
Windows Vista, and Ubuntu Linux), and with various versions of Libre Office
(including the latest Windows version 3.4.5), although the symptoms
sometimes vary: every now and then it will politely inform me that Writer
crashed, and then die, but other times Writer just disappears immediately
after a certain point. The bug number for this seems to be 32771, but I
haven't been able to locate any indication that it is recognized by the
developers as an actual bug or that they have confirmed it.

The problem might be exacerbated by the fact that there is another bug -
when restarting Writer (or Office) after an export to pdf crash, a message
box appears to say that the file needs to be recovered (which, thankfully,
has always been successful), and then instructs you that the error report
tool will automatically start, which it never does. As far as I can
determine from poking around, there is no way to start this tool and thus
I'm not sure it even exists, although there are descriptions of how to use
it available on line.

Without being able to use the data supplied by the error reporting tool, it
is likely that there may not be enough information about the pdf generation
failure for the developers to identify what's going wrong.

I've probably used every version of every word processor since Telewriter-64
and the standalone IBM models in the late 1970s, including all the personal
computer biggies, and finally decided that I was just plain tired of putting
up with Word's constant changes in interface (while maintaining the same
bugs and annoyances) - and paying significant bucks for the privilege. So I
decided that my current book would be done entirely with open-source stuff -
hence Libre. I sure hope these issues can be addressed.

Frank

Hi,

CVAlkan wrote (09-02-12 16:25)

No, it's not just you, at least regarding the Writer module.

The Export to PDF function has been broken for some time, but seems to be
related to the size of the output pdf document (it seems to work just fine
for me on smaller files), but I can't confirm that. I have experienced the

Well, there will be some limit yes.
How large or small documents do you guys talk about?

Sometimes I make a PDF of 2000 + pages, but with simple contents (sort of few thousands envelopes with text and image)

Currently I test Andrews Macro document
   http://www.pitonyak.org/oo.php
Is a tough job, but still running ...

How far can you go, where do you experience the limits?

Cheers,

Cor Nouws wrote (09-02-12 16:49)

Currently I test Andrews Macro document
http://www.pitonyak.org/oo.php
Is a tough job, but still running ...

Got a stiff neck from the van running :wink: but after 28 minutes the 609 kB ODT-file is exported to a 2.0 MB PDF.
The four Calc files that I had opened, are still there. Lucky me :wink:

Hey,

This is my first mail and I am hopping not doing something wrong...

Think PDF-function is related to the size of the document. I have always
use that function on smaller documents, recently I had to convert file
of 1200 pages - it breaks. I manage my probem diferently, pasted text to
Geditn, add <html> and </html> and now I am using that as a web-page. It
is fast and easy.

But I am not finding that as a problem, who does 1200 pages on every day
basis? Although never tried on a document with 200 pages - I think LO
must be able to convert kind of file to PDF.

Kruno

The Writer Guide for LO is 536 pages long. LO converted this from a
Master Document in .odt format to PDF. So, this size is possible.
     I'm wondering if the amount of RAM on the system has something to
do with the problem. Seems like the larger the number of pages to be
converted, the more RAM it would require. Perhaps someone else would
know more about this.

--Dan

Will the book print to file (ps).
Then will it convert with ps2pdf.

I do this with may be 50% of my PDF generation where LO just doesn't get it right. Unfortunately lose linking from the index.
I have a little script in my menu so I just click on the ps file to convert.

#! /bin/bash
# convert ps to pdf
   path=`dirname $1`
   base=`basename $1`
   pdffile=${base%.*}.pdf
   outfile=$path/$pdffile
echo "infile "$1
echo "outfile "$outfile
/usr/bin/ps2pdf -r600 -dCompatibilityLevel=1.4 -dPDFSETTINGS=/prepress -dEmbedAllFonts=true $1 $outfile

steve

Hi :slight_smile:
Can you use Cups to print-to-file and choose Pdf instead of Ps that way?  Tim does something like that although i have never understood how. 
Regards from
Tom :slight_smile:

Hi All,

I'm curious. I've used OpenOffice since version 1.0. I'm not sure if version 1.0 had the export to pdf feature, but I've used it many, many, many times since it has been part of the offering. I ran it in Windows until 3 years ago, and since then in Linux (Ubuntu 8.10, 9.04, 9.10, 10.04, 10.10, 11.04, & 11.10). Last year I switched from OpenOffice to LibreOffice when LibreOffice came out a year ago. My documents are 1 to 5 pages for the most part. I've never had any issues with export to pdf.

Don

Hi :slight_smile:
+1
I've not had any problems with the export to pdf either but i haven't pushed the limits or even done a huge range of different types of things.  I just export the company newsletter of about 12 pages with loads of logos and pictures in it. 
Regards from
Tom :slight_smile:

I have tried converting a single page .odt to Pdf and obtained the same
result.
"Write error"
Re; converting the Libre User Guide
I don't see that size mattered when you are talking about 9MB and I have 4
GB of Ram.

Tink.

I also just tried exporting a small but complex odt (note that I unchecked "Create PDF Form") and simple 24 page doc, and both worked perfectly.

Maybe you don't have write permission on the subdir you're trying to export to?

I also just tried exporting a small but complex odt (note that I
unchecked "Create PDF Form") and simple 24 page doc, and both worked
perfectly.

Where do you find the "Create PDF Form"? I can only see "Export as PDF".

I have write permissions to the folder I put the original in, so it should
take a PDF copy.

Tink.

File → Export as PDF and in "General" section (under "General" tab) there is
tickbox for "Create PDF Form".

Many thanks.

I found it OK, but the result was the same "Write error", "Unable to write
to file".

Tink.

Maybe you could do an strace on it? (Presuming a Unixy OS...)

I am using a Mac, System 10.7.2
I suppose I could try a Log File to see what happened.

Tink

Maybe dtruss would help.
http://www.quora.com/Whats-the-equivalent-of-strace-in-OS-X

There is no need to look for a trace program.
If you go into Utilities > Console you can find a log of what happened.
All the actions are timed.
I have taken on something rather demanding at the moment, but I will try to
do the Export PDF again when I find time.

Tink.