forked from prawnpdf/prawn
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issue prawnpdf#200] Using Page Graphic State Stack For Stamps
- Ironically there doesn't seem to be any reason to avoid using the page graphic stack - Got rid of several checks for stamp stream - Ensures that hanging graphic states get closed in stamps and pages - Finally moving resolved bugs to correct folder
- Loading branch information
Jonathan Greenberg
committed
Apr 1, 2011
1 parent
533261c
commit 7e17b6c
Showing
12 changed files
with
42 additions
and
18 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# encoding: utf-8 | ||
# | ||
# | ||
$LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') | ||
require 'rubygems' | ||
require 'prawn' | ||
|
||
|
||
## | ||
# When resolved the second page circle should not be dashed | ||
pdf = Prawn::Document.generate("stamp_dash_issues.pdf", :margin => [40, 45, 50, 45]) do | ||
text "The stamped circle might be dashed" | ||
create_stamp("stamp_circle") do | ||
dash(5) | ||
stroke_circle [0, 0], 10 | ||
end | ||
stamp("stamp_circle") | ||
text "but the nonstamped circle should not" | ||
stroke_circle [10, 10], 10 | ||
end |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters