You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2020/10/29 12:29:11 UTC

[Bug 64860] New: Split large document multiple small document

https://bz.apache.org/bugzilla/show_bug.cgi?id=64860

            Bug ID: 64860
           Summary: Split large document multiple small document
           Product: POI
           Version: unspecified
          Hardware: PC
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: XWPF
          Assignee: dev@poi.apache.org
          Reporter: dkaruppan@symbiance.com
  Target Milestone: ---

Created attachment 37539
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37539&action=edit
WHile converting large docx  file into sfdt format throwing error

HI I am converting docx into sfdt fromat it is worked for fine with 150
document having 200 pages if documents  large file which contains 2500 pages (8
mb) file means it giving error out of memory error.Can any one help how to
resolve this error or suggest me solution to split large document into 
multiple small documents.I have attached error also kindly check and make quick
response on that.

this is the exact code i am using.

@PostMapping("/wordeditor/Import")
        public String uploadFile(@RequestParam("files") MultipartFile file)
throws Exception {
                try {
                        return WordProcessorHelper.load(file.getInputStream(),
FormatType.Docx);
                } catch (Exception e) {
                        e.printStackTrace();
                        return
"{\"sections\":[{\"blocks\":[{\"inlines\":[{\"text\":" + e.getMessage() +
"}]}]}]}";
                }
        }

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64860] Split large document multiple small document

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64860

--- Comment #3 from PJ Fanning <fa...@yahoo.com> ---
Maybe also worth reading articles like
https://stackoverflow.com/questions/45740269/parsing-large-docx-file-in-java

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64860] Split large document multiple small document

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64860

PJ Fanning <fa...@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 OS|                            |All
             Status|NEW                         |RESOLVED

--- Comment #1 from PJ Fanning <fa...@yahoo.com> ---
Apologies Dilip - this is a bug tracker and this is not a bug.

I would suggest you use stackoverflow or possibly the POI user email list.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 64860] Split large document multiple small document

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64860

--- Comment #2 from PJ Fanning <fa...@yahoo.com> ---
Have you tried increasing the heap size on your JVM? (-Xmx)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org