alafr
3cdef01461
Add 'cover' option for images
2016-09-16 00:40:15 +03:00
alafr
b9f30e2af2
Update vector.coffee
...
-Add closePath fixes gap visible in Chrome pdf viewer with large line widths
-Fix for too large corner radius
2016-09-06 23:46:45 +03:00
alafr
6557d916df
Merge pull request #3 from bjnsn/roundedRect-patch
...
Adjust roundedRect() to draw circular arcs for corners - rather than …
2016-09-06 23:38:07 +03:00
Devon Govett
56a6e6dd44
Merge branch 'master' of github.com:devongovett/PDFKit into fontkit
...
# Conflicts:
# lib/image/png.coffee
2016-08-26 11:39:33 -04:00
Devon Govett
154801ece7
fontkit removed widthOfString method
2016-08-26 11:31:12 -04:00
Brett Johnson
ef6d4c7aed
Adjust roundedRect() to draw circular arcs for corners - rather than distorted ones with quadraticCurveTo()
2016-05-04 15:21:31 -07:00
Andy Simms
872b290e06
Path updated to fix issues with SVG Arcs
2016-04-19 12:31:33 +01:00
Buck Doyle
c6ff802ff0
Add support for adding ArrayBuffer-based images
...
This already works for fonts, so I applied the same technique so images
can be loaded similarly.
2016-01-30 19:45:57 -05:00
Peter Ogilvie
42921fa8f1
add 1 to javascript month for pdf month num
2015-11-19 15:25:50 -08:00
Devon Govett
ae56acee5f
Fixes #428
2015-11-09 21:15:49 -08:00
Devon Govett
03a45a1354
Merge pull request #384 from MathieuLoutre/page-added-event
...
Emit an event when a page is added
2015-10-25 10:39:33 -07:00
Devon Govett
7da47a58f5
Fix another document reference in png.coffee
2015-10-25 10:33:35 -07:00
Pedro Teixeira
d4604b4a74
fixes #433
2015-10-20 09:53:52 +01:00
Ilia Loriakov
4b76170550
Fixing typo which make tests fail
...
Now fontkit branch should be functional
2015-08-27 11:36:50 +02:00
Devon Govett
de667832fe
Correctly render glyphs with x or y offsets
...
These offsets are generated by fontkit when laying out glyphs, for example accents which should appear above other glyphs. To render them correctly in PDF, we have to break out of the TJ command and move the text position manually.
2015-07-26 12:32:40 -07:00
Devon Govett
fb0b38934f
Match fontkit output for standard fonts
2015-07-26 12:30:14 -07:00
Devon Govett
926ed20285
Fix afm glyph width when not defined
2015-07-26 12:29:52 -07:00
Devon Govett
ed542e5192
Update for latest fontkit
2015-07-26 12:29:32 -07:00
Devon Govett
0cca20a6a4
Fix misspelling
2015-07-26 12:29:19 -07:00
Mathieu Triay
fbcb53855e
Emit an event when a page is added
...
Use the document as the EventEmitter
Update docs
2015-04-29 10:12:31 +01:00
Devon Govett
944cbc6cbc
Merge branch 'master' into fontkit
...
Conflicts:
lib/font/tables/name.coffee
lib/font/ttf.coffee
2015-04-03 21:13:04 -07:00
Devon Govett
a04155fc76
!= -> isnt
2015-04-02 15:27:15 -07:00
Brian Reavis
d28983d0ee
Allow automatic first page to be disabled ( #65 ).
2015-04-02 15:19:33 -06:00
Devon Govett
22a9bfdfab
Get rid of PDFObject.s and use JS String object to represent PDF strings
...
Also improves escaping based on the spec, and detects unicode strings automatically, which are converted to UTF16-BE.
2015-03-19 20:22:44 -07:00
Devon Govett
1e0e7f9567
Merge branch 'Fix_PDF_Object_Output' of https://github.com/Nathanaela/pdfkit into Nathanaela-Fix_PDF_Object_Output
...
Conflicts:
lib/object.coffee
2015-03-19 20:19:02 -07:00
Lee Symes
c0abc88a64
Fixed regression caused by CoffeeScript 1.9.0+.
...
This fixes #376
2015-03-17 16:41:32 +13:00
Nathanael Anderson
cba6f80b4e
Update object.coffee code to eliminate .isString and .isRaw hacks and replace with the Buffer object so that anything can be supported.
2015-03-16 13:57:06 -05:00
Nathanael Anderson
ca8c3c38ff
Fix missing object.coffee outputs.
2015-03-15 20:29:42 -05:00
Denys Koch
87ddddfc31
Fixed wrong XRef size
2014-12-11 12:25:48 +01:00
Devon Govett
1df8ba579b
Don't check font format by file extension
2014-11-27 23:23:55 -08:00
Devon Govett
6b2bea9835
Merge branch 'master' of github.com:devongovett/pdfkit into fontkit
...
Conflicts:
lib/font/table.coffee
lib/font/tables/cmap.coffee
lib/font/tables/glyf.coffee
lib/font/tables/head.coffee
lib/font/tables/hhea.coffee
lib/font/tables/hmtx.coffee
lib/font/tables/loca.coffee
lib/font/tables/maxp.coffee
lib/font/tables/name.coffee
lib/font/tables/os2.coffee
lib/font/tables/post.coffee
2014-11-27 20:51:58 -08:00
Devon Govett
7bab1db1a5
Support passing opentype features to text methods
2014-11-27 20:48:44 -08:00
Devon Govett
f7cc793693
Update fontkit API calls
2014-11-27 20:44:25 -08:00
Laszlo Balogh
18927a5d91
Fixed diminishing left-margin
2014-11-21 16:37:30 +00:00
Devon Govett
b36c548a0d
Merge pull request #308 from ef4/continued-breaker
...
Avoid unnecessarily breaking inside words when using `continued`
2014-09-15 14:05:52 -04:00
Devon Govett
38e5b73e58
Move TTF table tags to prototype
2014-09-15 11:35:42 -04:00
Devon Govett
2eb9fa3aa2
Merge branch 'master' of github.com:yelouafi/pdfkit into yelouafi-master
2014-09-15 11:32:13 -04:00
yelouafi
9f4c6345c5
Moved @tag definition to the derived Table constructors
2014-09-13 17:30:42 +00:00
yelouafi
c7c20ef6b7
removed @constructor.name line, corrected @tag params
2014-09-12 21:47:46 +00:00
Edward Faulkner
838afe15a0
Infinite loop when first word is longer than line
2014-09-12 16:25:12 -04:00
Edward Faulkner
1a5df016ce
Avoid unnecessarily breaking inside words when using continued
...
`continued` is implemented by temporarily shortening the lineWidth,
which can cause the linewrapper to break inside words when that's not
really necessary.
2014-09-12 15:11:56 -04:00
Devon Govett
95b149e16d
Minor style changes
2014-09-12 15:09:49 -04:00
Edward Faulkner
1c48bad333
bufferedPages support
2014-09-12 14:59:45 -04:00
yelouafi
7f8714a40f
TTFFont.parse should call *Table constructors with explicit @tag param
2014-09-12 18:34:44 +00:00
Devon Govett
8383dee3cb
Merge pull request #303 from ef4/blank-ascender
...
Prevent missing ascender from breaking layout
2014-09-11 21:05:09 -04:00
Devon Govett
33920c3f2a
Merge pull request #301 from ef4/center-spacing
...
Fix center-aligned character spacing
2014-09-11 19:51:10 -04:00
Edward Faulkner
3acfa5833d
prevent missing ascender from breaking layout
2014-09-11 19:31:21 -04:00
Edward Faulkner
3e19194802
Fix center-aligned character spacing
2014-09-11 16:09:54 -04:00
Edward Faulkner
5b433d808a
fix indent with continued
2014-09-11 13:34:51 -04:00
Devon Govett
09ed15b2e4
Fix unicode annotations
2014-08-29 11:49:20 -04:00