Skip to content

Commit 7d79d9c

Browse files
committed
Changing AbstractString where relevant
1 parent bc35b7b commit 7d79d9c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/CosDoc.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ mutable struct CosDocImpl <: CosDoc
3737
tmpfiles::Vector{AbstractString}
3838
isPDF::Bool
3939
hasNativeXRefStm::Bool
40-
function CosDocImpl(fp::String)
40+
function CosDocImpl(fp::AbstractString)
4141
io = util_open(fp,"r")
4242
sz = filesize(fp)
4343
ps = BufferedInputStream(io)
@@ -84,13 +84,13 @@ end
8484

8585
"""
8686
```
87-
cosDocOpen(filepath::String) -> CosDoc
87+
cosDocOpen(filepath::AbstractString) -> CosDoc
8888
```
8989
Provides the access to the physical file and file structure of the PDF document. Returns a
9090
`CosDoc` which can be subsequently used for all query into the PDF files. Remember to
9191
release the document with `cosDocClose`, once the object is used.
9292
"""
93-
function cosDocOpen(fp::String)
93+
function cosDocOpen(fp::AbstractString)
9494
doc = CosDocImpl(abspath(fp));
9595
ps = doc.ps
9696
h = read_header(ps)

src/CosObject.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Name objects are symbols used in PDF documents.
128128
"""
129129
struct CosName <: CosObject
130130
val::Symbol
131-
CosName(str::String)=new(Symbol("CosName_",str))
131+
CosName(str::AbstractString) = new(Symbol("CosName_",str))
132132
end
133133

134134
"""

src/PDDocImpl.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mutable struct PDDocImpl <: PDDoc
44
pages::CosObject
55
structTreeRoot::CosObject
66
isTagged::Symbol #Valid values :tagged, :none and :suspect
7-
function PDDocImpl(fp::String)
7+
function PDDocImpl(fp::AbstractString)
88
cosDoc = cosDocOpen(fp)
99
catalog = cosDocGetRoot(cosDoc)
1010
new(cosDoc,catalog,CosNull,CosNull,:none)

0 commit comments

Comments
 (0)