-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #638 from danfickle/external_resource_access_control
Implement external access control based on previous PR
- Loading branch information
Showing
18 changed files
with
240 additions
and
24 deletions.
There are no files selected for viewing
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
6 changes: 6 additions & 0 deletions
6
.../src/main/java/com/openhtmltopdf/outputdevice/helper/ExternalResourceControlPriority.java
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,6 @@ | ||
package com.openhtmltopdf.outputdevice.helper; | ||
|
||
public enum ExternalResourceControlPriority { | ||
RUN_BEFORE_RESOLVING_URI, | ||
RUN_AFTER_RESOLVING_URI; | ||
} |
13 changes: 13 additions & 0 deletions
13
...ltopdf-core/src/main/java/com/openhtmltopdf/outputdevice/helper/ExternalResourceType.java
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,13 @@ | ||
package com.openhtmltopdf.outputdevice.helper; | ||
|
||
public enum ExternalResourceType { | ||
FONT, | ||
FILE_EMBED, | ||
CSS, | ||
IMAGE_RASTER, | ||
XML_XHTML, | ||
XML_SVG, | ||
BINARY, | ||
PDF, | ||
SVG_BINARY; | ||
} |
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
Binary file added
BIN
+1.06 KB
openhtmltopdf-examples/src/main/resources/visualtest/expected/external-access-control.pdf
Binary file not shown.
14 changes: 14 additions & 0 deletions
14
openhtmltopdf-examples/src/main/resources/visualtest/html/external-access-control.html
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,14 @@ | ||
<html> | ||
<head> | ||
<style> | ||
@page { | ||
size: 200px 200px; | ||
} | ||
</style> | ||
<link rel="stylesheet" href="stylesheets/basic.css" /> | ||
</head> | ||
<body> | ||
<div id="one">RED</div> | ||
<div id="two">BLUE</div> | ||
</body> | ||
</html> |
1 change: 1 addition & 0 deletions
1
openhtmltopdf-examples/src/main/resources/visualtest/html/stylesheets/basic.css
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 @@ | ||
div#one { color: red; } |
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
Oops, something went wrong.