Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(389)

Issue 4373052: Generalize the flip origin argument to the PDF device constructor. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 2 months ago by Steve VanDeBogart
Modified:
12 years, 1 month ago
Reviewers:
Chris Guillory, zmcmay, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

Generalize the flip origin argument to the PDF device constructor. The argument still has a default value that does what most users will want, but provides more flexibility. Chrome will use this change to support an initial translation of the origin to simulate a margin and to scale the entire content (needed on Windows). When landing to Chrome, this will need http://codereview.chromium.org/6820038 Committed: http://code.google.com/p/skia/source/detail?r=1111

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comments #

Total comments: 2

Patch Set 3 : Add comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -49 lines) Patch
M gm/gmmain.cpp View 1 1 chunk +4 lines, -1 line 0 comments Download
M include/pdf/SkPDFDevice.h View 1 3 chunks +14 lines, -16 lines 0 comments Download
M include/pdf/SkPDFUtils.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pdf/SkPDFDevice.cpp View 1 2 5 chunks +18 lines, -21 lines 0 comments Download
M src/pdf/SkPDFFont.cpp View 1 chunk +1 line, -9 lines 0 comments Download
M src/pdf/SkPDFShader.cpp View 1 1 chunk +4 lines, -2 lines 0 comments Download
M src/pdf/SkPDFUtils.cpp View 1 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 11
Steve VanDeBogart
13 years, 2 months ago (2011-04-11 17:12:25 UTC) #1
reed1
The initialTransform should be a const parameter. Can we make it required (i.e. const SkMatrix& ...
13 years, 2 months ago (2011-04-11 17:21:27 UTC) #2
Steve VanDeBogart
On 2011/04/11 17:21:27, reed1 wrote: > The initialTransform should be a const parameter. > > ...
13 years, 2 months ago (2011-04-11 17:32:31 UTC) #3
Chris Guillory
LGTM with comments from Mike. http://codereview.appspot.com/4373052/diff/1/include/pdf/SkPDFUtils.h File include/pdf/SkPDFUtils.h (right): http://codereview.appspot.com/4373052/diff/1/include/pdf/SkPDFUtils.h#newcode43 include/pdf/SkPDFUtils.h:43: static void AppendMatrix(const SkMatrix& ...
13 years, 2 months ago (2011-04-11 20:44:06 UTC) #4
reed1
I happen to like AppendMatrix, since that what it is. My 2cents On 2011/04/11 20:44:06, ...
13 years, 2 months ago (2011-04-11 20:53:34 UTC) #5
reed1
definitely think the matrix parameter (ptr or ref) should be const.
13 years, 2 months ago (2011-04-11 20:54:44 UTC) #6
Steve VanDeBogart
On 2011/04/11 17:32:31, Steve VanDeBogart wrote: > On 2011/04/11 17:21:27, reed1 wrote: > > The ...
13 years, 2 months ago (2011-04-11 21:50:06 UTC) #7
Chris Guillory
LGTM. One comment. http://codereview.appspot.com/4373052/diff/7001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4373052/diff/7001/src/pdf/SkPDFDevice.cpp#newcode147 src/pdf/SkPDFDevice.cpp:147: fInitialTransform.setTranslate(0, height); Comment here? Perhaps move ...
13 years, 2 months ago (2011-04-11 23:13:20 UTC) #8
Steve VanDeBogart
http://codereview.appspot.com/4373052/diff/7001/src/pdf/SkPDFDevice.cpp File src/pdf/SkPDFDevice.cpp (right): http://codereview.appspot.com/4373052/diff/7001/src/pdf/SkPDFDevice.cpp#newcode147 src/pdf/SkPDFDevice.cpp:147: fInitialTransform.setTranslate(0, height); On 2011/04/11 23:13:20, Chris Guillory wrote: > ...
13 years, 2 months ago (2011-04-11 23:23:49 UTC) #9
reed1
LGTM
13 years, 2 months ago (2011-04-12 11:43:01 UTC) #10
zmcmay_gmail.com
12 years, 1 month ago (2012-06-04 08:17:25 UTC) #11
You can take a try of free trial version of Kvisoft PDF flip page
creator<http://www.kvisoft.com/flipbook-maker-pro/>to make your PDF files flip
page like a real book. No watermark printed.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b