Bug 98601 - can't convert large .XLS to .PDF using a macro or toolbar export button
Summary: can't convert large .XLS to .PDF using a macro or toolbar export button
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf, perf
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2016-03-11 12:28 UTC by Heena Sananse
Modified: 2023-04-26 11:19 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Excel File (4.46 MB, application/vnd.ms-excel)
2016-03-11 12:28 UTC, Heena Sananse
Details
PDF result from 7.6 (3.41 MB, application/pdf)
2023-04-26 11:18 UTC, Roman Kuznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Heena Sananse 2016-03-11 12:28:46 UTC
Created attachment 123498 [details]
Excel File

Hi,

I am using Libraoffice Portable in one of my project to convert the office doc to pdf. For the same, I have Created Macro to convert the Excel file into pdf. pls see the following function. 

Sub ConvertExcelToPDF( cSourceFile , cDestinationFile) cURL = ConvertToURL( cSourceFile ) ' Open the document. ' Just blindly assume that the document ' is of a type that OOo will ' correctly recognize and open -- ' without specifying an import filter.

oDoc = StarDesktop.loadComponentFromURL( cURL, "_blank", 0, _ Array(MakePropertyValue( "Hidden", True ),) )

cURL = ConvertToURL( cDestinationFile ) On Error GoTo ErrorHandler ' Save the document using a filter. 
oDoc.storeToURL( cURL, _ Array(MakePropertyValue( "FilterName", "calc_pdf_Export" ),)

oDoc.close( True )

I have one excel file which have more formatting stuff. File size is 4.45 MB. I am not able to convert it. I am getting error. 

Even I am open that file in LibraOffice and than try to Export as PDF it is taking too much time. (Pls find the attached document for your reference)

Please look into this issue and provide me solution. 

Thanks & Regards
Heena Sananse
Comment 1 tommy27 2016-03-12 07:11:43 UTC
please give more informations like your operating system (O/S) and the exact LibreOffice version you are using.

consider also upgrading to latest stable release which is 5.0.5.2 or latest fresh LibO 5.1.1.3 release in case you are already working with the 5.1.x branch

P.S. the correct name is LibreOffice, not LibraOffice
Comment 2 tommy27 2016-03-12 07:24:01 UTC
had not time to test the macro, but I can tell that the PDF export from the toolbar button hangs LibO... I killed it after 6 minutes.

tested under Win8.1 x64 using LibO 5.0.4.2 and a recent 5.2.0.0 alpha daily build.

I have a fast machine with SSD disk so it's not an hardware issue.
looks like a software performance issue.
Comment 3 Heena Sananse 2016-03-14 05:03:23 UTC
Hello tommy,

I am using windows 7, 64 bit and Libra Office  Portable File version 4.4.4.0.

Thanks 
Heena Sananse
Comment 4 tommy27 2016-03-14 06:28:44 UTC
thanks for telling the exact LibreOffice version you are using (again, it's not called Libra Office) which is however an obsolete version.

the bug is still present in 5.0.x and 5.1.x LibO release but I suggest you should upgrade to current stable LibO 5.0.5.2 release which solves hundred of bugs in respect to the 4.4.4 release.
Comment 5 Heena Sananse 2016-03-17 07:12:23 UTC
Hello,

I upgrade the version of Libra office Portable to 5.1.1 and tried to export the pdf but its taking to much time and still not converted. 


Thanks & Regards
Heena Sananse
Comment 6 tommy27 2016-03-18 00:50:43 UTC
(In reply to Heena Sananse from comment #5)
> .... Libra office Portable 

please, call it LibreOffice.
Libra Office does not exist
Comment 7 Heena Sananse 2016-03-18 13:42:19 UTC
(In reply to tommy27 from comment #6)
> (In reply to Heena Sananse from comment #5)
> > .... Libra office Portable 
> 
> please, call it LibreOffice.
> Libra Office does not exist

Ok. Will take care of it.
Comment 8 Heena Sananse 2016-04-14 08:00:00 UTC
Hello,

Any update on issue?

Thanks & Regards
Heena Sananse
Comment 9 QA Administrators 2018-06-17 02:44:20 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2020-06-17 03:51:02 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2022-06-18 03:31:22 UTC Comment hidden (obsolete)
Comment 12 Roman Kuznetsov 2023-04-26 11:18:11 UTC
Created attachment 186934 [details]
PDF result from 7.6
Comment 13 Roman Kuznetsov 2023-04-26 11:19:16 UTC
Export to PDF works fast and correctly in

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 0ee9501c0b7dc1a291715fff9c1934b1c08cb654
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded

closed as WFM