On Wed, 2022-03-16 at 15:55 +0800, Alex wrote:
>   Thanks for your reply,the exception is: litePDF Exception: 2:
> litePDF_LoadFromFile: ePdfError_FileNotFound.
>    In fact,the pdf file exists,just the size over 300M bytes.

        Hi,
looking into the source code, both PoDoFo and litePDF return the
FileNotFound error when it fails to open the file. You can check the
reasons for the error thrown by the litePDF itself here:
https://sourceforge.net/p/litepdf/code/HEAD/tree/trunk/src/litePDF.cpp#l788

As far as I can tell, the error is thrown only if the C routines fail.

Maybe check the file name itself? It can fail to find the file when it
contains non-ASCII letters for example, then you'd need to use
LoadFromFileW instead.
        Bye,
        zyx



_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to