Skip to content

Releases

ComOffice for Windows and Linux 1.18.0

Choose a tag to compare

@Kennysu0425 Kennysu0425 released this 04 Dec 14:15

In spreadsheets, a format given to whole rows or whole columns is now read and drawn. Members are added; nothing in the
API changes or goes away. The evaluation key in the README works until 2027-01-01.

  • RowProperties.Format and ColumnProperties.Format. Excel writes a row's or a column's own format when a
    whole row or column is formatted. It now comes into the model, with its fill, font, borders, number format and
    alignment.
  • Empty cells are drawn with their row's or column's format, by RenderPage and in PDF. A whole row filled in
    Excel is drawn filled all the way across, not only in the cells that hold data. Where a formatted row crosses a
    formatted column, the row's format wins, as in Excel.

The package, ComOfficeKit.1.18.0.nupkg, is attached below. Getting started installs it; the README has the evaluation key.

ComOffice for Windows and Linux 1.17.1

Choose a tag to compare

@Kennysu0425 Kennysu0425 released this 02 Dec 00:01

A fix: text can now be typed into a shape's label in a Word document, and it is saved. In 1.17.0, SceneEditor.Insert
at a paragraph in a floating shape's label (WordFloatingShape.Leaves[i].Paragraphs) was refused with
InvalidArgument, although the Apple SDK accepted it. A position in a label is now accepted like one in the body or in
a text box. Nothing in the API changes. The evaluation key in the README works until 2027-01-01.


The package, ComOfficeKit.1.17.1.nupkg, is attached below. Getting started installs it; the README has the evaluation key.

ComOffice for Windows and Linux 1.17.0

Choose a tag to compare

@Kennysu0425 Kennysu0425 released this 30 Nov 14:22

In Word documents, floating shapes can be moved, sized and deleted, text typed into a text box is saved, pictures
that fill shapes are drawn, and a merged table cell spans its rows. Members are added; nothing in the API changes or
goes away. The evaluation key in the README works until 2027-01-01.

New API, on Windows and Linux:

  • Moving, sizing and deleting a floating shape. WordSceneEditor.SetFloatingShapeGeometry(hostID, shapeIndex, hOffsetPt, vOffsetPt, widthPt, heightPt, caret) moves and sizes drawing shapeIndex of paragraph hostID's
    FloatingShapes, one shape or a whole group, as Word does: a group's shapes scale with it, and the drawing's copy for
    older readers moves with it. SetShapeLeafFrame(hostID, shapeIndex, leafIndex, xPt, yPt, widthPt, heightPt, caret)
    moves and sizes one shape in a group, which stays where it is. RemoveFloatingShape(hostID, shapeIndex, caret)
    deletes a shape or a group. Each is one undo step, is kept by SaveAs, and throws ComOfficeKitException
    (InvalidArgument) when the drawing cannot be changed.
  • WordShapePicture and WordShapeLeaf.Picture. A shape filled with a picture, which is how Word crops a photo to
    a circle or a box, now carries it: Image, Crop and FillRect.

Word documents:

  • Pictures that fill shapes are drawn inside the shape's outline, in a group too, by RenderPage and in PDF.
    Until now such a shape was read as a floating picture.
  • Text typed into a text box is saved. A text box as Word writes it, with its copy for older readers, lost on save
    the text typed into it.
  • A table cell merged down over several rows spreads its content over them, as Word does, instead of stretching
    the first row.

The package, ComOfficeKit.1.17.0.nupkg, is attached below. Getting started installs it; the README has the evaluation key.

ComOffice for Windows and Linux 1.16.0

Choose a tag to compare

@Kennysu0425 Kennysu0425 released this 26 Nov 03:31

Flipped shapes, and flipped or rotated groups, in presentations are drawn as PowerPoint draws them. Three properties
are added; nothing in the API changes or goes away. The evaluation key in the README works until 2027-01-01.

New API, on Windows and Linux:

  • SlideShape.FlipH and SlideShape.FlipV: the shape is drawn mirrored, left to right or top to bottom, about
    its frame's centre, before its turn. SlideShape.TextIsUpsideDown: its text is drawn upside down, which is a
    top-to-bottom flip on any shape but a SmartArt label. A line keeps its flips in its connector, as before.

Presentations:

  • A flipped or rotated group takes its shapes with it. A shape inside such a group now has, in the model, the
    frame and turn PowerPoint gives it: its centre goes where the group's flip and turn take it, its own turn composes
    with the group's, and groups inside groups compose too. Until now such a shape was drawn, and reported, where it
    would be if its group were neither flipped nor turned. PresentationSceneEditor.ReplacingFrame still refuses a
    shape in a rotated or flipped group.
  • A shape flipped on its own is drawn mirrored: an arrow points the other way, a picture is mirrored. Text is
    never mirrored: a shape flipped top to bottom has its text upside down, except a SmartArt label. A shadow is not
    flipped with its shape, and a table or a chart is never mirrored.
  • Checked against PowerPoint on 12 slides of flipped, rotated and nested groups: every shape's position, size and
    turn equal PowerPoint's.

The package, ComOfficeKit.1.16.0.nupkg, is attached below. Getting started installs it; the README has the evaluation key.

ComOffice for Windows and Linux 1.14.0

Choose a tag to compare

@Kennysu0425 Kennysu0425 released this 24 Nov 06:29

Faster workbook saves, three fixes in saved workbooks, saves that leave other documents free, and shapes inside
presentation groups that move. Nothing in the API changes or goes away. The evaluation key in the README works until
2027-01-01.

Workbooks:

  • Saving is faster. A save leaves every sheet nobody edited exactly as the file had it, and in an edited sheet
    writes only the rows whose cells changed, copying everything else as it is; a later save after more edits does the
    same. On Linux, with a workbook of two sheets of 40,000 and 20,000 rows of numbers, a save after one edit took 0.24
    to 0.43 s instead of 2.2 to 2.5 s, and a save with no edit about 0.1 s instead of 2 s.
  • Conditional formatting over a $ range is kept. A rule whose range uses $ (as in $A33:$XFD33) was not
    read, so every save that wrote its sheet dropped it.
  • A workbook whose SpreadsheetML is bound to a prefix (<x:worksheet>, as some tools write it): a cell or a style
    that a save added was written in no namespace, so Excel did not read it. What a save adds now takes the part's
    prefix.
  • A cell's style is no longer added again on each save. Each save that wrote a cell's row appended the cell's
    <xf> to the styles once more.

Presentations:

  • Shapes inside groups move. PresentationSceneEditor.ReplacingFrame now moves and resizes a shape inside a
    group, and the save writes it into its group, which grows or shrinks to hold its shapes. A shape in a rotated or
    flipped group, or in SmartArt, is still refused.

All documents:

  • A save leaves other documents free. While one document is being saved, other documents can be opened, laid out
    and drawn on other threads; a call on the document being saved still waits for its save.

The package, ComOfficeKit.1.14.0.nupkg, is attached below. Getting started installs it; the README has the evaluation key.

ComOffice for Windows and Linux 1.13.0

Choose a tag to compare

@Kennysu0425 Kennysu0425 released this 22 Nov 19:37

Faster saves, two fixes for text lost in Word documents, and a presentation's groups in the document model.
Nothing in the API changes or goes away. The evaluation key in the README works until 2027-01-01.

New API, on Windows and Linux:

  • Groups in presentations. SlideScene.Groups lists a slide's groups, outermost first, each a SlideGroup
    with its Id, its ParentID, its Frame on the slide and IsRotatedOrFlipped. SlideShape.GroupPath names
    the groups a shape sits in, outermost first. In this version they can be read, not changed:
    PresentationSceneEditor.ReplacingFrame still does not move a shape that is inside a group.

All documents:

  • Saving is faster. A save now copies the parts of the file it did not change as they are, instead of
    unpacking and packing every part again. It no longer compresses pictures, fonts, video and audio a second
    time, and it writes the file as it goes rather than building it in memory. A save after one edit measured 3 to
    4.5 times faster on Windows.
  • A save that would pass 4 GB throws and writes nothing. Before, it ended the process.
  • An encrypted or ZIP64 package says so. A document with an encrypted part, or one written as ZIP64, is
    refused when it is opened (ComOfficeKitException, ErrorKind.Parse, as before), and the message now names
    the reason; before, it said only that the file could not be decoded or was corrupt.

Word documents:

  • Text typed right after an inline picture is saved. When WordDocument.SceneEditor.Insert put text where
    the caret stood right after a picture (a picture alone in its paragraph, or at a paragraph's end), the text
    went into the picture's run and was dropped on save, with no error, and the picture was written again as a new
    one. The text now goes into a run of its own after the picture, and the picture keeps its XML.
  • A document whose WordprocessingML is not bound to the w: prefix (Python's ElementTree writes ns0:, for
    one) was saved as XML that was not well-formed after any edit: Word refused the file, and the edited paragraph
    lost its text when the file was read again. It now saves well-formed.

The package, ComOfficeKit.1.13.0.nupkg, is attached below. Getting started installs it; the README has the evaluation key.

ComOffice for Windows and Linux 1.12.1

Choose a tag to compare

@Kennysu0425 Kennysu0425 released this 21 Nov 06:06

A fix for a crash. A formula that gives a function too few arguments (SUMIF, AVERAGEIF, COUNTIF or
MATCH with fewer than two, INDEX or INDIRECT with none, RANK with one) ended the process that held
the workbook: when SetCellInput or SaveSync typed it into a cell, when a workbook was opened whose file
had no saved result for it, and when a cell it reads changed. It was not an exception, so no catch saw it.
Every earlier release has it, so one such file could stop a server that opens workbooks from outside. Such a
formula is now #VALUE!, as other functions are when given too few arguments. Nothing in the API changes,
and pages lay out as in 1.12.0. The evaluation key in the README works until 2027-01-01.


The package, ComOfficeKit.1.12.1.nupkg, is attached below. Getting started installs it; the README has the evaluation key.

ComOffice for Windows and Linux 1.12.0

Choose a tag to compare

@Kennysu0425 Kennysu0425 released this 19 Nov 18:04

OpenDocument text, and copy and paste in workbooks. ComOffice 1.10.0 to 1.11.1 were not released for
Windows and Linux: their changes are here with 1.12.0's. Pages can break differently from 1.9.0, so a
document's page count can change. Nothing in the API changes or goes away. The evaluation key in the
README works until 2027-01-01.

New API, on Windows and Linux:

  • OpenDocument text. An .odt opens as a WordDocument (DocumentFormat.Odt), from a path or a
    stream, and saves as .odt or .docx. OpenDocument text does not carry comments, tracked changes or
    drawing shapes here, so a save as .odt that would leave some out throws ContentLossException
    (ErrorKind.ContentLost) and writes nothing; its Loss has the counts. WordDocument.GetContentLoss()
    reads them before you save, so you can ask in your own words, and Save and SaveAs with
    SaveOptions { AcceptContentLoss = true } write anyway. A save as .docx is never refused.
    Getting started shows it.
  • Copy and paste in workbooks. Spreadsheet.PasteHtml(sheet, cell, html, text) pastes what a
    clipboard holds: a table copied from Excel, Google Sheets or a web page comes in with its values,
    formats and merged cells, and text pastes as typing. Spreadsheet.Copy(sheet, range) returns a range
    as text and as an HTML table (CopiedRange), and pasting that text again brings the cells back,
    formulas included. Spreadsheets shows it.

All documents:

  • Parts found the way the file names them. Files that name their parts by absolute paths, as
    Microsoft's own templates do, lost what those parts hold: a document its styles, numbering, headers
    and footers; a workbook its charts, tables, pivot tables and theme colours; a deck its layouts, masters
    and themes. They are read now, and kept on save. In one such workbook, cells typed before a save read
    back as other text after it; that no longer happens.

Word documents:

  • Page colour. A document's page colour (Word's Design ▸ Page Color) fills every page in page
    images and in PDF, and a save keeps it.
  • Pages: a table row that fits a page but not what is left of this one breaks at the page's foot, as
    Word breaks it, keeping two lines of a paragraph on each side; a row that may not split but is taller
    than a page starts a new page and carries on, where it was cut off; a picture on a line spaced at a
    multiple of single is given that multiple of its text's height; moved text that is tracked shows as a
    deletion and an insertion; lines in 仿宋 (FangSong) are as tall as Word sets them.

Spreadsheets:

  • Saving keeps more of the file: a column's style, best-fit and outline attributes; cells you did not
    edit, as the file had them; a chart's cached values, updated
    when you change the cells it draws.
  • New functions: SUMIFS, COUNTIFS, AVERAGEIFS, MAXIFS, MINIFS and HYPERLINK.

Presentations:

  • A shape's text takes its style's font colour, and pictures draw their transparency, duotone and
    greyscale, in page images and in PDF.

The package, ComOfficeKit.1.12.0.nupkg, is attached below. Getting started installs it; the README has the evaluation key.

ComOffice for Windows and Linux 1.9.0

Choose a tag to compare

@Kennysu0425 Kennysu0425 released this 16 Nov 03:06

A page's text, and where the page draws it, so an application can let its users select, copy and search over a
page image. Pages lay out and draw as in 1.8.0, and nothing in the API changes or goes away. The evaluation key in
the README works until 2027-01-01.

New API, on Windows and Linux:

  • Document.GetPageText(index), and an overload that takes a CancellationToken, returns the text a page draws and
    where: the page's lines in the order it draws them, each with its text, box, baseline and rotation, and each
    stretch of one size with every character's advance. It uses RenderPage's pages and points, so it lies on the
    page image. It holds headers and footers, footnotes and their marks, watermarks, chart labels and turned shapes'
    text, and leaves out text a clip hides. It needs a licence that allows rendering.
    Rendering and PDF shows its coordinates.

Samples:

  • The samples' source code is under the MIT License (Samples/LICENSE), so you may copy it into
    your own code. The SDK they call is licensed as LICENSE.md says.

The package, ComOfficeKit.1.9.0.nupkg, is attached below. Getting started installs it; the README has the evaluation key.

ComOffice for Windows and Linux 1.8.0

Choose a tag to compare

@Kennysu0425 Kennysu0425 released this 14 Nov 14:54

ComOffice 1.7.0 was not released for Windows and Linux: its changes are here with 1.8.0's. Pages can break
differently from 1.6.0, so a document's page count can change. The API is unchanged. The evaluation key in the
README works until 2027-01-01.

Word documents, on Windows and Linux:

  • Chinese, Japanese and Korean text in a font from Windows or Office, such as 新細明體, 標楷體, 宋体, 微軟正黑體 or
    MS 明朝, is set at the line height Word gives it: 1.3 times the font's Windows height, where no document grid sets
    the lines. Those lines were about 8 to 23 percent shorter than Word's, so such a document can now have more pages,
    nearer Word's count.

Presentations, on Windows and Linux:

  • Preset colours (<a:prstClr>, which PowerPoint writes for many shadows) are read wherever a deck uses them: in
    shadows, text, fills and charts. Shadows, white text and black fills that were missing now appear.

Samples:

  • Sample-WebViewer refuses an upload larger than ASP.NET's request limit with a 413 that states the limit.
    Running on a server adds that a refusal carries the engine's own message, which can name your
    service's files: log it, and answer your users in your own words.

The package, ComOfficeKit.1.8.0.nupkg, is attached below. Getting started installs it; the README has the evaluation key.