diff options
author | Kevin Walzer <kw@codebykevin.com> | 2023-09-27 19:04:21 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2023-09-27 19:04:21 (GMT) |
commit | e81d1a373438f30e1b04400ab12586ef46c68b54 (patch) | |
tree | 82aee6a138ab93dfdac796ae398ba0a401641abe /macosx | |
parent | b5bfb7d6c4f3d23483ddb8f4f4209a6302a9726b (diff) | |
download | tk-e81d1a373438f30e1b04400ab12586ef46c68b54.zip tk-e81d1a373438f30e1b04400ab12586ef46c68b54.tar.gz tk-e81d1a373438f30e1b04400ab12586ef46c68b54.tar.bz2 |
Add comment
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXPrint.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/macosx/tkMacOSXPrint.c b/macosx/tkMacOSXPrint.c index 7fdbf98..23b1b48 100644 --- a/macosx/tkMacOSXPrint.c +++ b/macosx/tkMacOSXPrint.c @@ -383,6 +383,8 @@ int MakePDF canvas = CreateCGImageFromDrawableRect(mac_drawable, 0, 0, width, height); CGRect rect = CGRectMake(x + mac_drawable->xOff, y + mac_drawable->yOff, width, height); + + /*Render image to PDF file.*/ if (canvas) { url = CFURLCreateWithFileSystemPath (NULL, CFSTR("/tmp/tk_canvas.pdf"), kCFURLPOSIXPathStyle, 0); |