To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=80662


User as changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|UNCONFIRMED               |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |WORKSFORME
--------------------------------------------------------------------------------




------- Additional comments from [EMAIL PROTECTED] Mon Aug 27 13:08:43 +0000 
2007 -------
AS->newboo: Seams that your file was loaded into the writer module instead
impress if your conversion failed. Please note the following ...
If you load a document into OOo it will be opened by an OOo module
(writer/calc/draw/impress etcpp). If you wish to store such file on disc you
have to specify a filter suitable for those module. So it can happen that you
PPT file was opened with writer (e.g. as Text Ascii) and you specified the
impress_pdf_export filter ... which cant work for the writer module. Instead you
have to specify the writer_pdf_export filter here.

Please use the following code for exporting PDF independend from the used
application module: (JAVA)

XComponent xDoc = xDesktop.loadComponentFromURL(....);
Object aModuleManager =
xServiceManager->createInstance("com.sun.star.frame.ModuleManager");
XModuleManager xModuleManager =
(XModuleManager)UnoRuntime.queryInterface(XModuleManager.class, aModuleManager);
String sModule = xModuleManager.identify(xDoc);
String sPDFFilter = "";

if (sModule.equals("com.sun.star.text.TextDocument"))
    sFilter = "writer_PDF_Export";
else
if (sModule.equals("com.sun.star.spreadsheet.SpreadSheetDocument"))
    sFilter = "calc_PDF_Export";
...

if (sFilter != "")
{
   ...
   lArgs[x].Name = "FilterName";
   lArgs[x].Value = sFilter;
   xDoc.storeToURL(..., lArgs);
}

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to