380 Commits

Author SHA1 Message Date
Devon Govett
f9ab215ea6 Merge pull request #551 from alafr/Dash-array
Add support for dash array
2016-11-07 11:23:06 -05:00
Devon Govett
0beaadb4b3 Merge pull request #552 from Wildhoney/add-image-example
Added image example to README
2016-11-07 11:22:16 -05:00
Devon Govett
0ad465f915 Merge pull request #554 from alafr/Image-cover-option
Images
2016-11-07 11:17:36 -05:00
Devon Govett
bb2161597e Merge pull request #570 from alafr/line-wrapper-bug
Line wrapper bug
2016-11-07 11:15:27 -05:00
alafr
317953c54f Remove semicolons 2016-11-07 18:11:49 +02:00
Devon Govett
d1effd9ef9 Merge pull request #564 from Malyngo/feature/list-bullet-radius-as-option
allow setting size of list bullet circle via options
2016-11-07 10:59:42 -05:00
Devon Govett
955000d68c Merge pull request #568 from luqmaan/patch-2
Fix paper sizes link
2016-11-07 10:59:18 -05:00
alafr
e02f69ac00 Call emitLine() only once
emitLine() was called twice in some cases
2016-11-06 02:28:01 +02:00
Luqmaan Dawoodjee
357093ab2f Fix paper sizes link
I couldn't find a doc with page sizes, so I'm just linking to the code.

I submitted this to the gh-pages branch instead of master in https://github.com/devongovett/pdfkit/pull/567.


📄
2016-10-28 15:37:38 -05:00
Rainer ziller
61bc028c15 allow setting of list bullet circle
this change will allow users to set the size of the circle on bullet list item in the options via the setting "bulletRadius"
2016-10-18 13:58:30 +02:00
alafr
70297b9c36 Merge pull request #11 from alafr/Image-2
1. Possibility to open an image and not inserting it immediately.
This gives access to the width and height of the image so that position, clip path etc... can be adjusted before drawing the image in the document.
  - `doc.openImage(src)` opens the image and returns the corresponding object.
  - I adjusted the `doc.image()` function to also accept that PDFImage object.

 2. The replacement of `Buffer.isBuffer(src)` with `typeof src is 'string'` fixes the issue #559.

 3. I ran tests with various images but only in the browser and **not** in Node.
2016-10-17 22:27:05 +03:00
alafr
baeae06d18 Fix for #559 2016-10-17 20:52:37 +03:00
alafr
bd98ce3456 Possibility to open an image without inserting it immediately in the document 2016-10-17 18:32:45 +03:00
Wildhoney
453b0ab499 Moved 'centered' to sit alongside 'fit' 2016-10-06 11:55:51 +01:00
Wildhoney
2486b94124 Added align/valign example to coffee 2016-10-03 12:35:28 +01:00
Wildhoney
387da605cb Added image example to README 2016-10-03 12:19:39 +01:00
alafr
1c08703f38 Support for dash array
PDF reference 1.7 pages 218-219
2016-09-18 16:50:20 +03:00
alafr
3cdef01461 Add 'cover' option for images 2016-09-16 00:40:15 +03:00
alafr
a944efdac5 Merge pull request #5 from devongovett/master
Update
2016-09-07 08:54:04 +03:00
Devon Govett
b13423bf0a Merge pull request #541 from alafr/RoundedRect
Rounded rect
2016-09-06 14:30:47 -07: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
91939b72d4 Update README.md 2016-09-01 08:09:38 -07:00
Devon Govett
4af1310244 Merge pull request #534 from devongovett/fontkit
fontkit
2016-08-26 13:15:27 -04:00
Devon Govett
08ef766c00 Rebuild pdf guide v0.8.0 2016-08-26 13:13:45 -04:00
Devon Govett
1381facbbe 0.8.0 2016-08-26 13:12:55 -04:00
Devon Govett
8695b612aa Add iconv-lite as a dev dependency
For generating pdf guide.
2016-08-26 13:11:53 -04: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
Devon Govett
0812ddf425 Merge pull request #492 from andysimms/master
Path.coffee updated to fix SVG Path Arcs
2016-04-19 09:16:24 -07:00
Andy Simms
872b290e06 Path updated to fix issues with SVG Arcs 2016-04-19 12:31:33 +01:00
Devon Govett
0f30821aa3 Merge pull request #463 from vladgolubev/patch-1
Fix link to the website
2016-03-19 18:07:28 -07:00
Devon Govett
3b78650064 Merge pull request #468 from backspace/arraybuffer-image
Add support for ArrayBuffer-based images
2016-03-19 18:06:58 -07: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
Vlad Golubev
472b745497 Fix link to the website 2016-01-20 16:21:49 +02:00
Devon Govett
546746ad75 Merge branch 'master' of github.com:devongovett/PDFKit 2015-12-25 17:46:18 -10:00
Devon Govett
24a6745424 Merge pull request #449 from muchavie/meta-data-fixes
add 1 to javascript month for pdf month num
2015-12-25 17:44:09 -10:00
Devon Govett
b883bec912 0.7.2 v0.7.2 2015-12-25 17:41:42 -10:00
Devon Govett
62e514210f Merge pull request #455 from unitive-inc/issue454/JS-not-being-generated-for-NPM
Issue #454: JS not being generated for NPM
2015-12-25 17:40:32 -10:00
matt
0458c29f70 Remove suspicious lines from Makefile 2015-12-14 19:03:25 -08:00
matt
a3d19f624f Make 'js' a phony target so it always runs coffee compiler 2015-12-14 19:03:00 -08: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
Devon Govett
d927d0695c Merge pull request #418 from franckl/master
small typo in the example
2015-10-25 10:24:08 -07:00
Devon Govett
94c9f8f475 Merge pull request #434 from pgte/fix-png-image
fixes PNG image generation error: document is not defined
2015-10-25 10:07:48 -07:00
Pedro Teixeira
d4604b4a74 fixes #433 2015-10-20 09:53:52 +01:00
Devon Govett
94f0b7eefa Merge pull request #419 from pomahtuk/patch-1
Fixing typo which make tests fail
2015-08-27 07:26:20 -04:00