Menu

what is Max input files limit ?

zahid
2025-10-09
2025-10-10
  • zahid

    zahid - 2025-10-09

    Hi
    hope you doing well
    can you tell that what is max gerber input file limit to the gerber 2 pdf . when i pass 100+ gerbers then it not work , so is it possible to increase the limit so that in one go we can input more then 100 gerbers and it convert it , i guess it will may need array size increase etc if you have set limit !

    thanks

     
  • John-Philip Taylor

    What is the error? My suspicion is that it is a command-line command length limit of whatever shell you're using. I "think" Windows CMD has a limit of 8191 characters or something, but it varies depending on exactly what version of Windows and / or shell (CMD vs PowerShell, for example) you're using.

    Browsing through the source code:

    • The number of commands on the command-line (limited by Gerber2PDF, not the shell) is 4096 commands. You should be able to pass in more than a 1000 files without issues, depending on the exact options you're using with those files. I have not tested this.
    • Internally, all the Gerber files are cached in a linked list, so it is only limited by the amount of RAM you've got.
     
    ❤️
    1
    • zahid

      zahid - 2025-10-10

      oh i see ya am on windows . let me google how to increase cmd char limit

       
  • John-Philip Taylor

    I've been threatening for ages to implement a "use a script" feature, so that you don't spec everything on the command-line, but rather a YAML file or something. Something like:

    gerber2pdf -script myscript.yml

    That way you eliminate the command-line limitation. Maybe the time has arrived...

     

Log in to post a comment.