1
0
mirror of https://github.com/pdf2htmlEX/pdf2htmlEX.git synced 2024-07-07 10:20:33 +00:00

test case for #460

This commit is contained in:
Lu Wang 2015-05-03 19:13:45 +08:00
parent 2a5ce90818
commit cb825f3691
7 changed files with 159 additions and 0 deletions

View File

@ -102,3 +102,6 @@ class BrowserTests(Common):
def test_svg_background_with_page_rotation_issue402(self):
self.run_test_case('svg_background_with_page_rotation_issue402.pdf', ['--bg-format', 'svg'])
def test_fontfile3_opentype(self):
self.run_test_case('fontfile3_opentype.pdf', ['-l', 1])

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,156 @@
<!DOCTYPE html>
<!-- Created by pdf2htmlEX (https://github.com/coolwanglu/pdf2htmlex) -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8"/>
<meta name="generator" content="pdf2htmlEX"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<style type="text/css">
/*!
* Base CSS for pdf2htmlEX
* Copyright 2012,2013 Lu Wang <coolwanglu@gmail.com>
* https://github.com/coolwanglu/pdf2htmlEX/blob/master/share/LICENSE
*/#sidebar{position:absolute;top:0;left:0;bottom:0;width:250px;padding:0;margin:0;overflow:auto}#page-container{position:absolute;top:0;left:0;margin:0;padding:0;border:0}@media screen{#sidebar.opened+#page-container{left:250px}#page-container{bottom:0;right:0;overflow:auto}.loading-indicator{display:none}.loading-indicator.active{display:block;position:absolute;width:64px;height:64px;top:50%;left:50%;margin-top:-32px;margin-left:-32px}.loading-indicator img{position:absolute;top:0;left:0;bottom:0;right:0}}@media print{@page{margin:0}html{margin:0}body{margin:0;-webkit-print-color-adjust:exact}#sidebar{display:none}#page-container{width:auto;height:auto;overflow:visible;background-color:transparent}.d{display:none}}.pf{position:relative;background-color:white;overflow:hidden;margin:0;border:0}.pc{position:absolute;border:0;padding:0;margin:0;top:0;left:0;width:100%;height:100%;overflow:hidden;display:block;transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0}.pc.opened{display:block}.bf{position:absolute;border:0;margin:0;top:0;bottom:0;width:100%;height:100%;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}.bi{position:absolute;border:0;margin:0;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;user-select:none}@media print{.pf{margin:0;box-shadow:none;page-break-after:always;page-break-inside:avoid}@-moz-document url-prefix(){.pf{overflow:visible;border:1px solid #fff}.pc{overflow:visible}}}.c{position:absolute;border:0;padding:0;margin:0;overflow:hidden;display:block}.t{position:absolute;white-space:pre;font-size:1px;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%;unicode-bidi:bidi-override;-moz-font-feature-settings:"liga" 0}.t:after{content:''}.t:before{content:'';display:inline-block}.t span{position:relative;unicode-bidi:bidi-override}._{display:inline-block;color:transparent;z-index:-1}::selection{background:rgba(127,255,255,0.4)}::-moz-selection{background:rgba(127,255,255,0.4)}.pi{display:none}.d{position:absolute;transform-origin:0 100%;-ms-transform-origin:0 100%;-webkit-transform-origin:0 100%}.it{border:0;background-color:rgba(255,255,255,0.0)}.ir:hover{cursor:pointer}</style>
<style type="text/css">
/* CSS for test cases */
#page-container {
overflow:hidden;
}
</style>
<style type="text/css">
.ff0{font-family:sans-serif;visibility:hidden;}
@font-face{font-family:ff1;src:url(f1.woff)format("woff");}.ff1{font-family:ff1;line-height:1.301000;font-style:normal;font-weight:normal;visibility:visible;}
@font-face{font-family:ff2;src:url(f2.woff)format("woff");}.ff2{font-family:ff2;line-height:1.237029;font-style:normal;font-weight:normal;visibility:visible;}
@font-face{font-family:ff3;src:url(f3.woff)format("woff");}.ff3{font-family:ff3;line-height:0.935200;font-style:normal;font-weight:normal;visibility:visible;}
.m1{transform:matrix(0.000000,-0.335570,0.335570,0.000000,0,0);-ms-transform:matrix(0.000000,-0.335570,0.335570,0.000000,0,0);-webkit-transform:matrix(0.000000,-0.335570,0.335570,0.000000,0,0);}
.m0{transform:matrix(0.335570,0.000000,0.000000,0.335570,0,0);-ms-transform:matrix(0.335570,0.000000,0.000000,0.335570,0,0);-webkit-transform:matrix(0.335570,0.000000,0.000000,0.335570,0,0);}
.v0{vertical-align:0.000000px;}
.ls0{letter-spacing:0.000000px;}
.sc_{text-shadow:none;}
.sc1{text-shadow:-0.015em 0 rgb(0,0,0),0 0.015em rgb(0,0,0),0.015em 0 rgb(0,0,0),0 -0.015em rgb(0,0,0);}
.sc0{text-shadow:-0.015em 0 transparent,0 0.015em transparent,0.015em 0 transparent,0 -0.015em transparent;}
@media screen and (-webkit-min-device-pixel-ratio:0){
.sc_{-webkit-text-stroke:0px transparent;}
.sc1{-webkit-text-stroke:0.015em rgb(0,0,0);text-shadow:none;}
.sc0{-webkit-text-stroke:0.015em transparent;text-shadow:none;}
}
.ws0{word-spacing:0.000000px;}
.ws4{word-spacing:2.547520px;}
.ws3{word-spacing:2.888000px;}
.ws2{word-spacing:3.762400px;}
.ws5{word-spacing:15.082000px;}
.ws1{word-spacing:36.796360px;}
.fc4{color:rgb(255,50,50);}
.fc3{color:rgb(0,0,0);}
.fc2{color:transparent;}
.fc1{color:rgb(255,255,255);}
.fc0{color:rgb(115,164,232);}
.fs1{font-size:32.000000px;}
.fs5{font-size:40.000000px;}
.fs4{font-size:56.000000px;}
.fs3{font-size:120.000000px;}
.fs2{font-size:224.000000px;}
.fs0{font-size:480.000000px;}
.y0{bottom:0.000000px;}
.y1{bottom:0.000027px;}
.y2{bottom:33.557047px;}
.y12{bottom:136.375812px;}
.y13{bottom:136.912752px;}
.y11{bottom:178.255020px;}
.y10{bottom:223.892604px;}
.yf{bottom:242.684550px;}
.ye{bottom:261.476497px;}
.yd{bottom:280.268443px;}
.yc{bottom:325.906027px;}
.yb{bottom:344.697973px;}
.ya{bottom:363.489919px;}
.y14{bottom:500.134201px;}
.y9{bottom:555.033557px;}
.y8{bottom:595.302013px;}
.y7{bottom:635.570470px;}
.y6{bottom:675.838926px;}
.y5{bottom:716.107383px;}
.y4{bottom:756.375839px;}
.y3{bottom:868.724846px;}
.h6{height:25.600000px;}
.h2{height:30.496000px;}
.h7{height:32.000000px;}
.h5{height:44.800000px;}
.h4{height:96.000000px;}
.h3{height:179.200000px;}
.h1{height:460.800000px;}
.h0{height:1130.201342px;}
.w0{width:800.000000px;}
.x0{left:0.000000px;}
.x4{left:26.845638px;}
.x6{left:170.555718px;}
.x5{left:188.583893px;}
.x7{left:242.985262px;}
.x3{left:252.977168px;}
.x8{left:581.379866px;}
.x1{left:764.220161px;}
.x2{left:774.152993px;}
@media print{
.v0{vertical-align:0.000000pt;}
.ls0{letter-spacing:0.000000pt;}
.ws0{word-spacing:0.000000pt;}
.ws4{word-spacing:2.530537pt;}
.ws3{word-spacing:2.868747pt;}
.ws2{word-spacing:3.737317pt;}
.ws5{word-spacing:14.981453pt;}
.ws1{word-spacing:36.551051pt;}
.fs1{font-size:31.786667pt;}
.fs5{font-size:39.733333pt;}
.fs4{font-size:55.626667pt;}
.fs3{font-size:119.200000pt;}
.fs2{font-size:222.506667pt;}
.fs0{font-size:476.800000pt;}
.y0{bottom:0.000000pt;}
.y1{bottom:0.000027pt;}
.y2{bottom:33.333333pt;}
.y12{bottom:135.466640pt;}
.y13{bottom:136.000000pt;}
.y11{bottom:177.066653pt;}
.y10{bottom:222.399987pt;}
.yf{bottom:241.066653pt;}
.ye{bottom:259.733320pt;}
.yd{bottom:278.399987pt;}
.yc{bottom:323.733320pt;}
.yb{bottom:342.399987pt;}
.ya{bottom:361.066653pt;}
.y14{bottom:496.799973pt;}
.y9{bottom:551.333333pt;}
.y8{bottom:591.333333pt;}
.y7{bottom:631.333333pt;}
.y6{bottom:671.333333pt;}
.y5{bottom:711.333333pt;}
.y4{bottom:751.333333pt;}
.y3{bottom:862.933347pt;}
.h6{height:25.429333pt;}
.h2{height:30.292693pt;}
.h7{height:31.786667pt;}
.h5{height:44.501333pt;}
.h4{height:95.360000pt;}
.h3{height:178.005333pt;}
.h1{height:457.728000pt;}
.h0{height:1122.666667pt;}
.w0{width:794.666667pt;}
.x0{left:0.000000pt;}
.x4{left:26.666667pt;}
.x6{left:169.418680pt;}
.x5{left:187.326667pt;}
.x7{left:241.365360pt;}
.x3{left:251.290653pt;}
.x8{left:577.504000pt;}
.x1{left:759.125360pt;}
.x2{left:768.991973pt;}
}
</style>
<title></title>
</head>
<body>
<div id="page-container">
<div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w0 h0" alt="" src="bg1.png"/><div class="t m0 x0 h1 y1 ff1 fs0 fc0 sc0 ls0 ws0">PDFClown</div><div class="t m1 x1 h2 y2 ff2 fs1 fc1 sc0 ls0 ws0">Generated by PDF Clown on Sat Mar 05 20:06:01 CET 2011</div><div class="t m1 x2 h2 y2 ff2 fs1 fc1 sc0 ls0 ws0">For more info, visit http://www.pdfclown.org</div><div class="t m0 x3 h3 y3 ff3 fs2 fc2 sc1 ls0 ws0">Welcome</div><div class="t m0 x4 h4 y4 ff3 fs3 fc3 sc0 ls0 ws0">This is a sample document</div><div class="t m0 x4 h4 y5 ff3 fs3 fc3 sc0 ls0 ws0">that merely demonstrates</div><div class="t m0 x4 h4 y6 ff3 fs3 fc3 sc0 ls0 ws0">some basic graphics</div><div class="t m0 x4 h4 y7 ff3 fs3 fc3 sc0 ls0 ws0">features supported by</div><div class="t m0 x4 h4 y8 ff3 fs3 fc3 sc0 ls0 ws0">PDF Clown.</div><div class="t m0 x5 h4 y9 ff3 fs3 fc3 sc0 ls0 ws0">Enjoy!</div><div class="t m0 x4 h5 ya ff3 fs4 fc3 sc0 ls0 ws1">PS: As promised, since version 0.0.3 PDF Clown has supported<span class="fc4"> embedded latin</span></div><div class="t m0 x4 h5 yb ff3 fs4 fc4 sc0 ls0 ws2">OpenFont/TrueType and non-embedded Type 1 fonts<span class="fc3"> along with</span> paragraph construction facilities</div><div class="t m0 x4 h5 yc ff3 fs4 fc3 sc0 ls0 ws0">through the BlockComposer class.</div><div class="t m0 x4 h5 yd ff3 fs4 fc3 sc0 ls0 ws3">Since version 0.0.4 the content stream stack has been completed, providing <span class="fc4">fully object-oriented</span></div><div class="t m0 x4 h5 ye ff3 fs4 fc4 sc0 ls0 ws4">access to the graphics objects that describe the contents on a page.<span class="fc3"> It&apos;s a great step towards</span></div><div class="t m0 x4 h5 yf ff3 fs4 fc3 sc0 ls0 ws5">a whole bunch of possibilities, such as text extraction/replacement, that next releases will</div><div class="t m0 x4 h5 y10 ff3 fs4 fc3 sc0 ls0 ws0">progressively exploit.</div><div class="t m0 x4 h5 y11 ff3 fs4 fc3 sc0 ls0 ws0">Since version 0.0.6 it has supported <span class="fc4">Unicode</span> for OpenFont/TrueType fonts.</div><div class="t m0 x4 h6 y12 ff3 fs1 fc3 sc0 ls0 ws0">This page was crafted with the nice</div><div class="t m0 x6 h7 y13 ff3 fs5 fc3 sc0 ls0 ws0"> LazyDog font</div><div class="t m0 x7 h6 y12 ff3 fs1 fc3 sc0 ls0 ws0"> (by Paul Neave, www.neave.com)</div><div class="t m0 x8 h6 y14 ff3 fs1 fc3 sc0 ls0 ws0">Source: http://www.wikipedia.org/</div></div><div class="pi" data-data='{"ctm":[1.342282,0.000000,0.000000,1.342282,0.000000,0.000000]}'></div></div>
</div>
</body>
</html>