[ 
https://issues.apache.org/jira/browse/PDFBOX-5711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17783893#comment-17783893
 ] 

Andreas Lehmkühler edited comment on PDFBOX-5711 at 11/21/23 7:10 AM:
----------------------------------------------------------------------

I never heard of a provider w.r.t. filesystems until now. Out of curiosity what 
is your use case and what provider are you using?

However, I won't add another loadPDF method to the Loader class, but I'm going 
to add another constructor to 
{{org.apache.pdfbox.io.RandomAccessReadBufferedFile}} using a path as source


was (Author: lehmi):
I never heard of a provider w.r.t. filesystems until now. Out of curiosity what 
is your use case and what provider are you using?

However, I won't add another loadPDF method to the Loader class, but I'm going 
to add another constructor to 
{{org.apache.pdfbox.io.RandomAccessReadBufferedFile.RandomAccessReadBufferedFile}}
 using a path as source

> Loader: add support for java.nio.file.Path
> ------------------------------------------
>
>                 Key: PDFBOX-5711
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-5711
>             Project: PDFBox
>          Issue Type: Improvement
>          Components: IO
>    Affects Versions: 3.0.0 PDFBox
>            Reporter: Nicola Isotta
>            Assignee: Andreas Lehmkühler
>            Priority: Minor
>             Fix For: 3.0.1 PDFBox, 4.0.0
>
>
> Currently the Loader class only accepts byte[] or File as source for loading 
> PDFs. Would it be possible to load PDFs from java.nio.file.Path objects?
>  
> I know that there's a toFile() method on Path, but it works only if the Path 
> object has been created from the default provider.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to