Commit Graph

382 Commits

Author SHA1 Message Date
Eliot Jones
9a8becde3e update the readme to reflect expanded capabilities 2019-05-15 20:05:05 +01:00
Eliot Jones
69b6958c9d only declare a cff font to be a cid font if the registry ordering supplement (ros) is provided 2019-05-15 20:00:24 +01:00
BobLd
f4ec425bf0 - Correction of the PdfLine's length formula;
- Moving Line to TextLine
2019-05-15 19:44:47 +01:00
BobLd
97f0f6fe75 Minor modifications and updates 2019-05-14 20:56:34 +01:00
Eliot Jones
5cf62eaa11 fix counting hintmask bytes where cntrmask is present in type 2 charstrings for cff fonts 2019-05-14 20:08:44 +01:00
BobLd
de421d65a1 Adding Line, PdfLine 2019-05-12 19:39:58 +01:00
BobLd
2011d504a7 In Content:
- Adding a 'Line' of text object
  - Adding a 'TextDirection' property in the 'Word' object

In Geometry:
  - Adding a 'PdfLine' object
  - Making the 'PdfRectangle' creator public
2019-05-12 19:34:00 +01:00
Eliot Jones
55d34e3998 use standardencoding name for seac command in type 1 charstrings 2019-05-11 15:57:19 +01:00
Eliot Jones
5b5a0b7f55 fix null reference bug and handle escaped escape characters in string tokenization 2019-05-11 15:35:56 +01:00
Eliot Jones
72ef0f174a handle hidden standard14 font with no encoding when document incorrectly indicates font is truetype 2019-05-11 14:53:39 +01:00
Eliot Jones
90e9c46373 correctly determine compact font format encoding where supplements are used and pass the font encoding for type 1 fonts to the encoding used to read the pdf 2019-05-11 11:56:01 +01:00
Eliot Jones
9afceed1c5 correctly delimit content streams when concatenating arrays 2019-05-11 10:49:04 +01:00
Eliot Jones
a108672ce8 implement missing methods for various compact font format charsets and fix bug with constructors 2019-05-11 10:23:57 +01:00
Eliot Jones
7d9bd46437 handle null name in tounicode cmap, handle indirect reference in widths array for cid font and handle empty data for private dictionary in compact font format 2019-05-11 10:00:04 +01:00
Eliot Jones
03af28ed6d fix bug with compact font format font matrix reading and where endstream token is missed if immediately following 'e' 2019-05-10 20:02:29 +01:00
Eliot Jones
3396820d49 throw more descriptive exception when loading system font finder 2019-05-09 19:14:11 +01:00
Eliot Jones
23c033c788 implement validation of owner password and throw more descriptive exception for encrypted documents 2019-05-09 19:02:39 +01:00
Eliot Jones
53811a7d97 verify password against user password or throw 2019-05-07 18:53:51 +01:00
Eliot Jones
bad57763a1 finish initial support for rc4 encryption with blank user password 2019-05-06 15:41:29 +01:00
Eliot Jones
27928cd3a3 add rc4 tokenizer and key generation per object 2019-05-05 15:34:48 +01:00
Eliot Jones
be394f5bba start adding support for reading encrypted documents 2019-05-04 15:36:13 +01:00
Eliot Jones
b2a3ae7a49 Merge pull request #30 from BobLd/master
fix issue with width, height and area
2019-04-26 08:08:14 +01:00
BobLd
0b6d9eefe2 Changing 'getTextDirection' to 'GetTextDirection' 2019-04-25 19:38:26 +01:00
BobLd
afd9cb9f26 Adding 'TextDirection.Rotate180' 2019-04-23 21:49:29 +01:00
BobLd
70852c2855 - Adding a TextDirection enum.
- In the Letter class:
     - Renaming 'Location' to 'StartBaseLine' and adding 'EndBaseLine' for better localisation of the letter ('Location' is also kept).
     - Adding TextDirection.
- Fixed Test
2019-04-20 10:52:15 +01:00
BobLd
65647febcf - Adding a TextDirection enum.
- In the Letter class:
     - Renaming 'Location' to 'StartBaseLine' and adding 'EndBaseLine' for better localisation of the letter ('Location' is also kept).
     - Adding TextDirection.
2019-04-19 21:33:31 +01:00
BobLd
214ef8a958 Fix issue with Width, Height and Area when the texxt orientation is not horizontal. 2019-04-19 20:12:31 +01:00
Eliot Jones
5c091aeba7 #29 skip mediaboxes or cropboxes with the wrong dimensions and log an error. 2019-01-21 18:34:24 +00:00
Eliot Jones
1e5d790b7f fix bug in naming of vstemhm command which caused error in parsing type 2 charstrings 2019-01-19 12:18:23 +00:00
Eliot Jones
462a05e64c remove debugging code 2019-01-13 16:48:46 +00:00
Eliot Jones
a4305cc86c test letter positions with truetype standard14 mutant. fix truetype table overflow. read compact font format encodings 2019-01-12 18:07:53 +00:00
Eliot Jones
245efae8ed fixes various font handling issues for type 1 and truetype fonts
handle "unionsq" and other tricky glyph names. log missing glyphs. ignore flexpoints in type 1 subroutines. improve system font performance and substitution. handle truetype fonts using standard 14 fonts.
2019-01-12 13:54:16 +00:00
Eliot Jones
17d4b964f7 skip postscript wrappers when parsing private dictionary for type 1 fonts. type 1 font now retrieves bounding box by name rather than character code 2019-01-11 07:10:40 +00:00
Eliot Jones
d86c79da45 improve caching for system font finder and fix issue with composite glyphs in truetype fonts 2019-01-09 20:42:49 +00:00
Eliot Jones
b6a528a97d #9 add support for cff cid fonts, currently bounding box and width are calculated incorrectly. 2019-01-07 20:52:42 +00:00
Eliot Jones
cdf5546a1b #24 add the missing operations for the graphics state 2019-01-06 15:47:33 +00:00
Eliot Jones
6f0293b2a5 merge pull request #28 from uglytoad/net45
add multi targeting frameworks in the same project for net 4.5 throug…
2019-01-06 14:24:03 +00:00
Eliot Jones
406f0e6184 #24 add missing marked content operators, still 2 to go 2019-01-06 11:34:25 +00:00
Eliot Jones
575953c0ed add multi targeting frameworks in the same project for net 4.5 through net 7.0 and net standard 2.0 2019-01-06 11:06:02 +00:00
Eliot Jones
16b0260d68 add support for fonts which use the standard 14 fonts but also provide an encoding 2019-01-05 18:01:39 +00:00
Eliot Jones
4e37222729 #24 fix tests for public types 2019-01-05 15:17:24 +00:00
Eliot Jones
f1621b3924 #24 make some fields public 2019-01-05 15:13:32 +00:00
Eliot Jones
b9f5a6da8c #24 add more information to the choice fields 2019-01-04 21:58:03 +00:00
Eliot Jones
4a67b51d68 #24 add options to list box 2019-01-04 20:07:37 +00:00
Eliot Jones
cd84edbdc8 #26 add missing operation and expose the content stream directly to the user through the page 2019-01-04 19:54:55 +00:00
Eliot Jones
611786855b #26 make all operations writable and test 2019-01-04 19:17:54 +00:00
Eliot Jones
2a30631ab7 #26 make all operation classes public and test 2019-01-04 18:55:36 +00:00
Eliot Jones
62dc93919c add the ability to set page content directly on the page builder 2019-01-03 22:25:26 +00:00
Eliot Jones
5c8a77bf33 #26 make almost all operators public 2019-01-03 22:20:53 +00:00
Eliot Jones
29daeb5806 #26 prepare more content stream operations for public api 2019-01-02 23:14:13 +00:00