Peter Williams
c76fa6985e
Moved font cache from global variable to Extractor.
2018-09-22 09:28:18 +10:00
Peter Williams
69be54d501
Cleaned up some comments.
2018-09-21 16:43:10 +10:00
Peter Williams
75dfdb6f1c
Use Standard14Font consistently for standard 14 font names.
2018-09-21 16:25:57 +10:00
Peter Williams
9ef892a83f
Added tests for CMap creation
2018-09-21 15:39:31 +10: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
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
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
Peter Williams
d64785a8ca
Added more font tests
2018-08-14 21:28:57 +10:00
Gunnsteinn Hall
d026312948
Godoc fixes in model reader.go
2018-08-14 03:02:19 +00:00
Peter Williams
26e6e114ad
removed debug code that was accidentally commited
2018-08-14 12:01:12 +10:00
Peter Williams
aa88d8510a
Cleaned up glyph<->unicode maps
...
These maps had been getting messy which made it hard for me to update them.
This change builds the full maps from source files which are included in the commit.
2018-08-14 11:56:09 +10:00
Sakib Sami
b6de33b79c
- Fixed TestTableCellWrapping test
2018-08-14 02:02:03 +06:00
Sakib Sami
44e98e2ced
Merge branch 'v3' into master
2018-08-14 01:56:45 +06:00
Sakib Sami
e879b00d57
- updated : Comments to godoc style
2018-08-13 23:36:22 +06:00
Gunnsteinn Hall
a49bdcb8f8
Change PdfWriter dependency from io.WriteSeeker to io.Writer - enabling PDF memory output
2018-08-13 13:58:38 +00:00
Gunnsteinn Hall
d5fc69b21b
Merge branch 'master' into creator-tablecell-div-image-support
2018-08-13 09:39:38 +00:00
Sakib Sami
4e8d9d8e47
- Updated : SetBorderStyleMethod
...
- updated : Comments to godoc style
2018-08-13 01:58:28 +06:00
Sakib Sami
29295f0b2f
- Updated : SetBorderStyleMethod
...
- Added : CellBorderSide constraint
2018-08-11 13:28:16 +06:00
Gunnsteinn Hall
f67228a668
Clean up
2018-08-10 12:11:55 +00:00
Gunnsteinn Hall
296596e4c9
Merge branch 'master' of https://github.com/s4kibs4mi/unidoc into s4kibs4mi-master and address border centering for double border
2018-08-10 12:05:07 +00:00
Gunnsteinn Hall
2cc0c74b80
Avoid endless loop when parsing operand in contenstream. Fixes #176
2018-08-09 22:51:21 +00:00
Sakib Sami
fd475ad84d
- Added : Required modification on border and basic line implementation
...
- BorderTest
- CellTest
2018-08-10 01:40:40 +06:00
Gunnsteinn Hall
38157c3a51
Fix border corners and BasicLine Draw
2018-08-08 14:48:01 +00:00
Sakib Sami
c024c237d2
- Added : BorderTest
2018-08-08 08:09:06 +06:00
Sakib Sami
f6a254095c
- Added : BasicLine in creator
2018-08-07 01:59:36 +06:00
Sakib Sami
bf0a51ea71
- Added : Color for basic line
2018-08-04 02:07:06 +06:00
Sakib Sami
9184246eb1
- Added : Code cleanup
2018-08-04 02:03:15 +06:00