summaryrefslogtreecommitdiffstats
path: root/test-data/spreadsheet
diff options
context:
space:
mode:
authorMarius Volkhart <mariusvolkhart@apache.org>2021-02-28 23:16:14 +0000
committerMarius Volkhart <mariusvolkhart@apache.org>2021-02-28 23:16:14 +0000
commitd1c9a07860e365db4e335d24ad67e87544bdcceb (patch)
tree76c8d1fa79182df3aba38df998a41ab3e10a9c34 /test-data/spreadsheet
parent77ec895ee01e8213d0b9f36f4c05dc839648294f (diff)
downloadpoi-d1c9a07860e365db4e335d24ad67e87544bdcceb.tar.gz
poi-d1c9a07860e365db4e335d24ad67e87544bdcceb.zip
Add the ability to edit HSLFPictureData contents
Pictures can now be edited by calling HSLFPictureData#setData(byte[]). The byte[] should contain the image data as an image viewer might read it. To enable this functionality, a tighter coupling between the EscherBSERecords of the slideshow and the HSLFPictureData was required. This ensures that changes in image data size are accurately recorded in the records. In the course of coupling the records and the HSLFPictureData, various scenarios arose where a mapping of records to pictures was non-trivial. Accordingly, the HSLFSlideShowImpl#matchPicturesAndRecords(...) function was added to perform a more sophisticated matching pass. This function is heavily exercised by org.apache.poi.hslf.usermodel.TestBugs.testFile[5] and PPTX2PNG.render[2], as well as the new TestPictures#testSlideshowWithIncorrectOffsets(). Closes #225 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1887017 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test-data/spreadsheet')
-rw-r--r--test-data/spreadsheet/stress.xlsbin37888 -> 51712 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/test-data/spreadsheet/stress.xls b/test-data/spreadsheet/stress.xls
index 3d286e5e55..b613a89751 100644
--- a/test-data/spreadsheet/stress.xls
+++ b/test-data/spreadsheet/stress.xls
Binary files differ