Skip to content

Commit b778151

Browse files
committed
Test for hybrid x-ref
1 parent b8d3dfb commit b778151

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/runtests.jl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ include("debugIO.jl")
4646
end
4747
end
4848

49+
50+
4951
@testset "General File Opening 3" begin
5052
@test begin
5153
filename="3.pdf"
@@ -61,6 +63,28 @@ include("debugIO.jl")
6163
end
6264
end
6365

66+
@testset "Hybrid x-ref" begin
67+
@test begin
68+
filename="A1947-14.pdf"
69+
println(filename)
70+
isfile(filename)||
71+
download("http://lawmin.nic.in/ld/P-ACT/1947/A1947-14.pdf",filename)
72+
doc = pdDocOpen(filename)
73+
try
74+
npage= pdDocGetPageCount(doc)
75+
for i=1:npage
76+
page = pdDocGetPage(doc, i)
77+
if pdPageIsEmpty(page)==false
78+
pdPageGetContentObjects(page)
79+
end
80+
end
81+
finally
82+
pdDocClose(doc)
83+
end
84+
length(utilPrintOpenFiles())==0
85+
end
86+
end
87+
6488
@testset "Test RunLengthDecode" begin
6589
@test begin
6690
filename="582.pdf"

0 commit comments

Comments
 (0)