@bendyline/squisq-formats 2.7.2 → 2.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -87,7 +87,7 @@ const imported = await pdfToMarkdownDoc(pdfBuffer);
87
87
  const container = await pdfToContainer(pdfBuffer);
88
88
  ```
89
89
 
90
- **Fidelity:** export uses pdf-lib's standard 14 fonts (`themeId` affects colors only). Pages stay white for printing. Theme text, heading, and link colors are retained when they meet 4.5:1 contrast against both white paper and the shaded table header; otherwise the exporter uses its default dark ink for that role. This also applies to inherited and custom themes. Pass `images` (keyed by the markdown URL, as for DOCX) to draw PNG and JPEG images that stand alone in a paragraph; other images print as an `[Image: alt]` note. PDF has no semantic structure, so import is heuristic and best-effort: headings are detected by font size, and tables / code blocks / blockquotes / links via the `detectTables` / `detectCodeBlocks` / `detectBlockquotes` / `detectLinks` options (all default true). `pdfToMarkdownDoc` is text-only; `pdfToContainer` also extracts embedded XObject and inline raster images in browsers and Node, placed **by page** — each image is inserted after the last content block from its page (image-only pages fall back to the nearest preceding page with content, else the document end). Placement is page-level only; masks, vector artwork, and images that PDF.js cannot expose as decoded pixels are not emitted.
90
+ **Fidelity:** export uses pdf-lib's standard 14 fonts (`themeId` affects colors only). Text they cannot encode — Greek, Cyrillic, Vietnamese, arrows, math, box drawing, symbols — is drawn with an embedded Unicode font: the bundled DejaVu Sans faces, loaded and subset only for a document that needs them (`unicodeFonts` supplies your own faces, or `false` turns this off). CJK and emoji are still replaced, and reported once through `onWarning`. Pages stay white for printing. Theme text, heading, and link colors are retained when they meet 4.5:1 contrast against both white paper and the shaded table header; otherwise the exporter uses its default dark ink for that role. This also applies to inherited and custom themes. Pass `images` (keyed by the markdown URL, as for DOCX) to draw PNG and JPEG images that stand alone in a paragraph; other images print as an `[Image: alt]` note. PDF has no semantic structure, so import is heuristic and best-effort: headings are detected by font size, and tables / code blocks / blockquotes / links via the `detectTables` / `detectCodeBlocks` / `detectBlockquotes` / `detectLinks` options (all default true). `pdfToMarkdownDoc` is text-only; `pdfToContainer` also extracts embedded XObject and inline raster images in browsers and Node, placed **by page** — each image is inserted after the last content block from its page (image-only pages fall back to the nearest preceding page with content, else the document end). Placement is page-level only; masks, vector artwork, and images that PDF.js cannot expose as decoded pixels are not emitted.
91
91
 
92
92
  ### Diagrams as pictures
93
93
 
@@ -6,6 +6,7 @@ repository license, the pinned upstream copy is vendored and identified below.
6
6
 
7
7
  COMPONENTS
8
8
  - @fortawesome/fontawesome-free@7.3.1 ((CC-BY-4.0 AND OFL-1.1 AND MIT)); files: LICENSE.txt
9
+ - dejavu-fonts-ttf@2.37.3 (SEE LICENSE IN README.md AND LICENSE); files: LICENSE
9
10
 
10
11
  ==============================================================================
11
12
  @fortawesome/fontawesome-free@7.3.1 - LICENSE.txt
@@ -176,3 +177,194 @@ trademarks does not indicate endorsement of the trademark holder by Font
176
177
  Awesome, nor vice versa. **Please do not use brand logos for any purpose except
177
178
  to represent the company, product, or service to which they refer.**
178
179
 
180
+ ==============================================================================
181
+ dejavu-fonts-ttf@2.37.3 - LICENSE
182
+ ==============================================================================
183
+ Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
184
+ Glyphs imported from Arev fonts are (c) Tavmjong Bah (see below)
185
+
186
+
187
+ Bitstream Vera Fonts Copyright
188
+ ------------------------------
189
+
190
+ Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera is
191
+ a trademark of Bitstream, Inc.
192
+
193
+ Permission is hereby granted, free of charge, to any person obtaining a copy
194
+ of the fonts accompanying this license ("Fonts") and associated
195
+ documentation files (the "Font Software"), to reproduce and distribute the
196
+ Font Software, including without limitation the rights to use, copy, merge,
197
+ publish, distribute, and/or sell copies of the Font Software, and to permit
198
+ persons to whom the Font Software is furnished to do so, subject to the
199
+ following conditions:
200
+
201
+ The above copyright and trademark notices and this permission notice shall
202
+ be included in all copies of one or more of the Font Software typefaces.
203
+
204
+ The Font Software may be modified, altered, or added to, and in particular
205
+ the designs of glyphs or characters in the Fonts may be modified and
206
+ additional glyphs or characters may be added to the Fonts, only if the fonts
207
+ are renamed to names not containing either the words "Bitstream" or the word
208
+ "Vera".
209
+
210
+ This License becomes null and void to the extent applicable to Fonts or Font
211
+ Software that has been modified and is distributed under the "Bitstream
212
+ Vera" names.
213
+
214
+ The Font Software may be sold as part of a larger software package but no
215
+ copy of one or more of the Font Software typefaces may be sold by itself.
216
+
217
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
218
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
219
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
220
+ TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
221
+ FOUNDATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
222
+ ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
223
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
224
+ THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE
225
+ FONT SOFTWARE.
226
+
227
+ Except as contained in this notice, the names of Gnome, the Gnome
228
+ Foundation, and Bitstream Inc., shall not be used in advertising or
229
+ otherwise to promote the sale, use or other dealings in this Font Software
230
+ without prior written authorization from the Gnome Foundation or Bitstream
231
+ Inc., respectively. For further information, contact: fonts at gnome dot
232
+ org.
233
+
234
+ Arev Fonts Copyright
235
+ ------------------------------
236
+
237
+ Copyright (c) 2006 by Tavmjong Bah. All Rights Reserved.
238
+
239
+ Permission is hereby granted, free of charge, to any person obtaining
240
+ a copy of the fonts accompanying this license ("Fonts") and
241
+ associated documentation files (the "Font Software"), to reproduce
242
+ and distribute the modifications to the Bitstream Vera Font Software,
243
+ including without limitation the rights to use, copy, merge, publish,
244
+ distribute, and/or sell copies of the Font Software, and to permit
245
+ persons to whom the Font Software is furnished to do so, subject to
246
+ the following conditions:
247
+
248
+ The above copyright and trademark notices and this permission notice
249
+ shall be included in all copies of one or more of the Font Software
250
+ typefaces.
251
+
252
+ The Font Software may be modified, altered, or added to, and in
253
+ particular the designs of glyphs or characters in the Fonts may be
254
+ modified and additional glyphs or characters may be added to the
255
+ Fonts, only if the fonts are renamed to names not containing either
256
+ the words "Tavmjong Bah" or the word "Arev".
257
+
258
+ This License becomes null and void to the extent applicable to Fonts
259
+ or Font Software that has been modified and is distributed under the
260
+ "Tavmjong Bah Arev" names.
261
+
262
+ The Font Software may be sold as part of a larger software package but
263
+ no copy of one or more of the Font Software typefaces may be sold by
264
+ itself.
265
+
266
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
267
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
268
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
269
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL
270
+ TAVMJONG BAH BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
271
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
272
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
273
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
274
+ OTHER DEALINGS IN THE FONT SOFTWARE.
275
+
276
+ Except as contained in this notice, the name of Tavmjong Bah shall not
277
+ be used in advertising or otherwise to promote the sale, use or other
278
+ dealings in this Font Software without prior written authorization
279
+ from Tavmjong Bah. For further information, contact: tavmjong @ free
280
+ . fr.
281
+
282
+ TeX Gyre DJV Math
283
+ -----------------
284
+ Fonts are (c) Bitstream (see below). DejaVu changes are in public domain.
285
+
286
+ Math extensions done by B. Jackowski, P. Strzelczyk and P. Pianowski
287
+ (on behalf of TeX users groups) are in public domain.
288
+
289
+ Letters imported from Euler Fraktur from AMSfonts are (c) American
290
+ Mathematical Society (see below).
291
+ Bitstream Vera Fonts Copyright
292
+ Copyright (c) 2003 by Bitstream, Inc. All Rights Reserved. Bitstream Vera
293
+ is a trademark of Bitstream, Inc.
294
+
295
+ Permission is hereby granted, free of charge, to any person obtaining a copy
296
+ of the fonts accompanying this license (“Fonts”) and associated
297
+ documentation
298
+ files (the “Font Software”), to reproduce and distribute the Font Software,
299
+ including without limitation the rights to use, copy, merge, publish,
300
+ distribute,
301
+ and/or sell copies of the Font Software, and to permit persons to whom
302
+ the Font Software is furnished to do so, subject to the following
303
+ conditions:
304
+
305
+ The above copyright and trademark notices and this permission notice
306
+ shall be
307
+ included in all copies of one or more of the Font Software typefaces.
308
+
309
+ The Font Software may be modified, altered, or added to, and in particular
310
+ the designs of glyphs or characters in the Fonts may be modified and
311
+ additional
312
+ glyphs or characters may be added to the Fonts, only if the fonts are
313
+ renamed
314
+ to names not containing either the words “Bitstream” or the word “Vera”.
315
+
316
+ This License becomes null and void to the extent applicable to Fonts or
317
+ Font Software
318
+ that has been modified and is distributed under the “Bitstream Vera”
319
+ names.
320
+
321
+ The Font Software may be sold as part of a larger software package but
322
+ no copy
323
+ of one or more of the Font Software typefaces may be sold by itself.
324
+
325
+ THE FONT SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
326
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
327
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
328
+ TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL BITSTREAM OR THE GNOME
329
+ FOUNDATION
330
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL,
331
+ SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN
332
+ ACTION
333
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR
334
+ INABILITY TO USE
335
+ THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
336
+ Except as contained in this notice, the names of GNOME, the GNOME
337
+ Foundation,
338
+ and Bitstream Inc., shall not be used in advertising or otherwise to promote
339
+ the sale, use or other dealings in this Font Software without prior written
340
+ authorization from the GNOME Foundation or Bitstream Inc., respectively.
341
+ For further information, contact: fonts at gnome dot org.
342
+
343
+ AMSFonts (v. 2.2) copyright
344
+
345
+ The PostScript Type 1 implementation of the AMSFonts produced by and
346
+ previously distributed by Blue Sky Research and Y&Y, Inc. are now freely
347
+ available for general use. This has been accomplished through the
348
+ cooperation
349
+ of a consortium of scientific publishers with Blue Sky Research and Y&Y.
350
+ Members of this consortium include:
351
+
352
+ Elsevier Science IBM Corporation Society for Industrial and Applied
353
+ Mathematics (SIAM) Springer-Verlag American Mathematical Society (AMS)
354
+
355
+ In order to assure the authenticity of these fonts, copyright will be
356
+ held by
357
+ the American Mathematical Society. This is not meant to restrict in any way
358
+ the legitimate use of the fonts, such as (but not limited to) electronic
359
+ distribution of documents containing these fonts, inclusion of these fonts
360
+ into other public domain or commercial font collections or computer
361
+ applications, use of the outline data to create derivative fonts and/or
362
+ faces, etc. However, the AMS does require that the AMS copyright notice be
363
+ removed from any derivative versions of the fonts which have been altered in
364
+ any way. In addition, to ensure the fidelity of TeX documents using Computer
365
+ Modern fonts, Professor Donald Knuth, creator of the Computer Modern faces,
366
+ has requested that any alterations which yield different font metrics be
367
+ given a different name.
368
+
369
+ $Id$
370
+