mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-09 09:29:44 -06:00
Place: a Word .doc style sheet that holds fewer styles than it counts is refused
Stshif.cstd counts the LPStd records of the style sheet and must be less than 0x0FFE. A sheet that ended before cstd records was read as far as it went, and paragraphs in the missing styles were placed with the document defaults; a cstd of 0x0FFE or more was cut to 0x0FFE. Both are now refused as a damaged style sheet.
This commit is contained in:
+3
-2
@@ -3901,8 +3901,9 @@ tracked changes, tables, and the other stories the document has); a field with n
|
||||
warning. Documents saved by Word 6.0 or Word 95, encrypted or password-protected documents and documents last saved with
|
||||
fast save are refused, and so are a stream larger than 64 MiB, a document with more than 4 MiB of text, 100,000 pieces,
|
||||
16,384 pages of properties or 100,000 paragraphs or runs, one whose 16-bit text holds half of a surrogate pair, one
|
||||
whose structures lie outside their streams, one whose property pages are out of order, listed twice or overlap, and one
|
||||
whose styles are based on each other in a loop.
|
||||
whose structures lie outside their streams, one whose property pages are out of order, listed twice or overlap, one whose
|
||||
style sheet counts 4,094 styles or more or holds fewer styles than it counts, and one whose styles are based on each
|
||||
other in a loop.
|
||||
`file.place` answers `format: "doc"`.
|
||||
|
||||
## PDF presets
|
||||
|
||||
Reference in New Issue
Block a user