On 06/27/2009 02:35 AM, Avraham Hanadari wrote:
> tora - Takamichi Akiyama wrote:
<snips>
>> > During executing File - Export as PDF, settings specified by a user in 
>> > the dialog "PDF Options" will be stored in the file [3] as the default 
>> > settings for later use. In addition to the settings, lots of settings 
>> > are kept in the "registry" or "config" folders. Corruption of the 
>> > settings data might cause malfunctions of OpenOffice.org.
>> > 
>> > [1] 
>> > http://wiki.services.openoffice.org/wiki/Documentation/OOoAuthors_User_Manual/Getting_Started/Using_the_Quickstarter_under_Windows
>> >  
>> > 
>> > [2] 
>> > http://documentation.openoffice.org/HOW_TO/misc/Troubleshooting_guide.html#13.Repeatedly%20prompted%20to%20register|outline
>> >  
>> > 
>> > [3] ...\registry\data\org\openoffice\Office\Common.xcu
>> > 
>> > If that works for you, please keep the folder with the corruption data 
>> > for identifying the primary cause. I, however, would not recommend 
>> > uploading the content of the folder in your web site since the folder 
>> > might includes sensitive information.
>> > 
>> > Tora
> I know how to remove the user data. I have done it several times, and 
> afterwards the PDF function works. I still want to know where in those 
> user files the setting is that enables or dis-enables the PDF function. 
> None of the OOo experts who have kindly suggested solutions over the 
> past couple of years seems able to tell me. OOo grew into this snaggle. 
> Perhaps it will grow out of it as well.
> Avraham

My guess would be that your
...\registry\data\org\openoffice\Office\Common.xcu file is getting
corrupted. As Tora mentioned, the pdfexport information is contained in
the Common.xcu file, see:

http://wiki.services.openoffice.org/wiki/API/Tutorials/PDF_export

You can see how this changes for yourself when you export to pdf with
different pdf option settings:

1. Open C:\Documents and Settings\<user>\Application
Data\OpenOffice.org\3\user\registry\data\org\openoffice\Office\Common.xcu in
Wordpad and scroll to the bottom of the file. You will see something
along the lines of:

>  </node>
>  <node oor:name="Filter">
>   <node oor:name="PDF">
>    <node oor:name="Export">
>     <prop oor:name="ExportFormFields" oor:type="xs:boolean">
>      <value>true</value>
>     </prop>
>     <prop oor:name="SelectPdfVersion" oor:type="xs:int">
>      <value>0</value>
>     </prop>
>     <prop oor:name="ExportNotes" oor:type="xs:boolean">
>      <value>true</value>
>     </prop>
>     <prop oor:name="UseLosslessCompression" oor:type="xs:boolean">
>      <value>true</value>
>     </prop>
>     <prop oor:name="UseTaggedPDF" oor:type="xs:boolean">
>      <value>true</value>
>     </prop>
>    </node>
>   </node>
>  </node>

2. Close Common.xcu and do another export to pdf, this time change the
pdf options. Have a look at Common.xcu again and notice the differences.

The reason for the Common.xcu becoming corrupted might be a combination
of things. Possibilities:

a. You have system memory and/or drive issues. Try defragging the drive,
running memory tests, etc.

b. This one is a bit of a WAG: If you use multiple languages, fonts,
locale's it could be that something further up in the Common.xcu file
(note that your previous file names etc., are also stored in the file)
is causing the pdf code to be skipped or misread.

I'd recommend saving a copy of your working Common.xcu file someplace.
When you experience the problem again, open the problem Common.xcu file.
Compare that against the saved working Common.xcu file & see if you can
spot an obvious difference - particularly in the pdf portion of the
code. Save a copy of the problem Common.xcu somewere else.

To recover: rather than renaming your entire 'C:\Documents and
Settings\<user>\Application Data\OpenOffice.org', instead just rename
the Common.xcu file itself:

C:\Documents and Settings\<user>\Application
Data\OpenOffice.org\3\user\registry\data\org\openoffice\Office\Common.xcu
to
C:\Documents and Settings\<user>\Application
Data\OpenOffice.org\3\user\registry\data\org\openoffice\Office\x-Common.xcu-x

Restart OOo and you will get the startup register screen, select the the
option 'I do not want to register'. Export a document to PDF and see if
it works correctly. If it does, then it is the Common.xcu file that is
the problem. If it does not, then rename (don't delete) the C:\Documents
and Settings\<user>\Application Data\OpenOffice.org to C:\Documents and
Settings\<user>\Application Data\x-OpenOffice.org-x and restart OOo. If
PDF export still doesn't work after all of that, then your program files
are at issue.

Now that you have working and non-working Common.xcu (and profile
folder) files for comparison, please file a bug report so that a
developer can look at the problem.
  You'd mentioned previously:
<quote>
And according to my research, many people in the world have the same
problem as I do. It's a known bug. How do I fix it?
</quote>
Do you have a reference for an existing bug report?



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to