Menu

#1 Exception raised when merging many files

v1.0_(example)
closed
nobody
None
5
2017-12-21
2008-09-04
No

I started by trying work from the GUI, launching PdfMerge with no parameters. Using the "Add files" button, when I add 84 pdf files, I can finish the merge, but when I add 88 instead, I get the following error message. When I prepare the filelist externally and import it into the GUI, I get the same error message (not surprisingly). When I run from the command line, I get the same error message (not surprisingly). The file name listed in the last line is the 85th or 86th file in the list (depending on how I run it). The file limit (if any) is not documented, but the GUI will accept over 100 -- it just won't merge them.


Error

UNEXPECTED ERROR while formatting message: System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "PdfSharp.Resources.Messages.resources" was correctly embedded or linked into assembly "PdfSharp" at compile time, or that all the satellite assemblies required are loadable and fully signed.

at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)

at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)

at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)

at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)

at System.Resources.ResourceManager.GetString(String name)

at PdfSharp.PSSR.GetString(PSMsgID id)

at PdfSharp.PSSR.Format(PSMsgID id, Object[] args)
On Line:
E:\Temp\2006\displayPagecbee.pdf;all;include


Retry Cancel

Discussion

  • cvanling

    cvanling - 2008-09-27

    Hi,

    Thanks for submitting this report.

    It appears I forgot include a resource DLL in the installer package, so the error message is a lot less informative than it should be. I will be sure to include the other language resource DLL's for PDFSHARP in the next release (1.20).

    There is no hard limit on the number of PDF files, but there can easily be a hard limit on the maximum number of pages you can merge. This is really more an inherent issue with the PDFSHARP library and not really something I can fix. I will keep my eyes peeled for improvement to PDFSHARP and release new version as they come out.

    I just ran a merge with 93 files and it worked fine. Note that I have 3GB of RAM...

    My own experience show you can merge 40,000 pages with not too much trouble, but don't expect to merge much over 100,000 pages without a memory exception!

     
  • cvanling

    cvanling - 2017-12-21
    • status: open --> closed
    • Group: --> v1.0_(example)
     

Log in to post a comment.

MongoDB Logo MongoDB