Denys Smirnov
b7dcbc22de
core: fix standard crypt filter name; resolves issues with Adobe Reader
2018-09-19 23:48:50 +03:00
Denys Smirnov
eac1e899dc
core: allow to write documents with AES encryption
2018-09-19 06:02:15 +03:00
Denys Smirnov
839f9ea3bc
core: fix padding for AESv3
2018-09-19 06:01:29 +03:00
Denys Smirnov
d424bc2b6d
core: add MakeBool helper
2018-09-19 06:00:19 +03:00
Denys Smirnov
d4b2490ea3
core: implement encryption algorithms 8-10; add tests for alg 8-13
2018-09-19 03:33:59 +03:00
Denys Smirnov
7fb4c91137
core: do not overwrite Perms then validating it
2018-09-19 03:12:49 +03:00
Denys Smirnov
e18e4b502c
core: move zero iv allocation to a separate function
2018-09-19 02:44:26 +03:00
Denys Smirnov
1371f91098
core: check metadata encryption flag in alg13
2018-09-19 02:43:32 +03:00
Adrian-George Bostan
4cc51904bd
Merge branch 'master' into div-inline
2018-09-18 19:46:29 +03:00
Adrian-George Bostan
32228e2a17
Improve style of comments
2018-09-18 19:33:02 +03:00
Adrian-George Bostan
bc854abafe
Increase test coverage for the inline division component
2018-09-18 19:24:07 +03:00
Adrian-George Bostan
faee04d13f
Fix golint notices
2018-09-18 19:09:14 +03:00
Adrian-George Bostan
4e77d585f5
Add division unit test
2018-09-18 18:57:49 +03:00
Adrian-George Bostan
53a54ee0e4
Fix inline division wrapping on new page
2018-09-18 18:54:32 +03:00
Peter Williams
a5569176cf
Merge branch 'v3' of https://github.com/unidoc/unidoc into render.v3.hungarian
2018-09-18 10:37:30 +10:00
Peter Williams
eb6ffda9fa
added a comment
2018-09-18 08:06:12 +10:00
Adrian-George Bostan
7004fb0d0e
Add inline member on the DrawContext structure
2018-09-17 22:11:25 +03:00
Adrian-George Bostan
ba5b493b70
Add inline mode for the division component
2018-09-17 21:33:17 +03:00
Denys Smirnov
c7cfde7c1f
core: move test data, add docs and link to the specification
2018-09-17 17:36:31 +03:00
Peter Williams
b18c8ca93d
Add ToUnicode map when embedding Type0 CIDType2 fonts in PDF files.
2018-09-17 17:57:52 +10:00
Peter Williams
38da971f78
Cache PdfFont's in text extractor
2018-09-17 12:12:06 +10:00
Denys Smirnov
c08a13c234
core: optimize allocations for hash used in R=6
2018-09-16 17:10:04 +03:00
Denys Smirnov
6e2c1c51bf
core: add a test case for files with a very long password
2018-09-16 15:31:02 +03:00
Denys Smirnov
8f4f1804b0
core: implement decoding of AESv3; resolves #30
2018-09-16 04:13:24 +03:00
Denys Smirnov
6510d0a853
core: algorithms 2a and 13 (decode file key and validate permissions)
2018-09-16 02:48:08 +03:00
Denys Smirnov
b76c8a56c4
core: implement algorithm 11 and 12 (password check for R=5 and R=6)
2018-09-16 00:34:13 +03:00
Denys Smirnov
443efd4c4c
core: refactor encryption check
2018-09-13 22:37:53 +03:00
Adrian-George Bostan
cd50893bfd
Add inline member for Division container
2018-09-13 19:52:40 +03:00
Peter Williams
bb709b4381
Added FontName to FontDescriptor when loading TrueType based fonts from file
2018-09-07 21:43:39 +10:00
Peter Williams
4d5156c4a0
Added NewStandard14FontMustCompile
2018-09-07 19:11:58 +10:00
Gunnsteinn Hall
e63a74cc9c
Merge branch 'master' into v3-merge-master-in
2018-09-06 09:45:04 +00:00
Peter Williams
f84792531f
Fixed bugs introduced into creator_test.go by font changes.
...
- Use pdfFontType0 Encoding value for encoding name if it is set.
- Use DW entry in CID Type2 fonts
- Encode CID fonts using 2 bytes / character
2018-09-03 10:48:31 +10:00
Peter Williams
4ae7016b94
Moved FontDescriptor from Type0 font dict to DescendantFont dict
2018-08-29 21:30:05 +10:00
Peter Williams
adb16cd150
Moved files to new UniDoc directory layout.
2018-08-23 21:51:32 +10:00
Peter Williams
d3bec465ce
Set Paragraph.enableWrap default to false to avoid default setting of wrap enabled with
...
Paragraph.wrapWidth = 0
Paragraph.enableWrap is set true when Paragraph.wrapWidth is set in Paragraph.SetWidth()
2018-08-23 09:19:20 +10:00
Peter Williams
b7f1f3e291
Merge branch 'v3' of https://github.com/unidoc/unidoc into render.v3.hungarian
2018-08-22 22:01:00 +10:00
Peter Williams
660c1b934b
added change left out of previous commit
2018-08-22 15:05:34 +10:00
Peter Williams
b641b2b627
don't return a glyph for rune \x00
2018-08-22 15:02:52 +10:00
Peter Williams
e5ec5406f6
Changes to get creator working better.
...
- textencoding.RuneToGlyph always returns a value
- Encode empty /Difference correctly
- NewParagraph sets a custom encoding that matches its text
2018-08-22 14:51:50 +10:00
Peter Williams
cc4f64fa98
small tidy up
2018-08-21 12:43:51 +10:00
Peter Williams
d96f963de2
Changed Encode signature from Encode(raw string) string to Encode(raw string) []byte.
2018-08-20 20:13:10 +10:00
Peter Williams
23fe5a5cfe
Change Paragraph.enableWrap default to false to make it hard to unintentional set zero width wrap.
2018-08-20 19:02:47 +10:00
Peter Williams
b9561f0671
file left out of previous commit
2018-08-20 18:37:47 +10:00
Peter Williams
8b6a14a2f9
Added a function to create an encoder for a specified alphabet for simple fonts.
2018-08-20 17:58:01 +10:00
Peter Williams
c2feafdfdc
Fixed some issues in creator code
...
Stopped double converting from Go strings to PDF encoded strings
Added TTF parse table format 12
2018-08-17 08:41:35 +10:00
Peter Williams
fefff56603
Cleaned up some comments in creator.
2018-08-15 17:36:42 +10:00
Peter Williams
ffa7f9b482
Changed the literal rune maps in simple.go to use hex numbers rather than character codes.
...
Go sometimes subsitutes literal character codes (e.g. '\u2206') with other runes. This doesn't
happen if the literal is written as a number (e.g. 0x2206 ). I am not sure why Go does this.
2018-08-15 17:15:27 +10:00
Peter Williams
1847fcf8db
Converted creator to new font code
2018-08-15 09:32:13 +10:00
Gunnsteinn Hall
ede3df6446
Merge branch 'master' into creator-tablecell-div-image-support
2018-08-14 17:57:34 +00:00
Gunnsteinn Hall
036ab51b79
Address review comments.
2018-08-14 17:57:26 +00:00