Skip to content

Issue while using longer filename in pdf-png conversion #125

@prashant-manandhar

Description

@prashant-manandhar

Command :
gswin64c.exe args: -dNOPAUSE -dNOPROMPT -dSAFER -dBATCH -sDEVICE=pngmono -r300 -dNumRenderingThreads=4 -sOutputFile="c:\temp\mavis\imported\61\3b\613b0a4e-0877-4d7c-b7dc-db2547fb59e2\large%d.png" "c:\temp\mavis\processing\613b0a4e-0877-4d7c-b7dc-db2547fb59e2\abcdefghijkhlmabcdefghijkhlmuniJBIBYHAVSUYFAUSVXAGVSGXAVGHSXVAHGVSXGAVSVXGHAVSGXhvhsvgcvgsdcabcdefghijkhlmuniJBIBYHAVSUYFAUSVXAGVSGXAVGHSXVAHGVSXGAVSVXGHuniJBIBYHAVSUYFAUSVXAGVSGXAVGHSXVAHGVSXGAVSVXGHAVSGXacxdefrgthyhyjuk.pdf"

Error : GPL Ghostscript 10.03.1: Unrecoverable error, exit code 1

Description :
When I use the filename having longer name it returns the given issue. I works if I use the same file having shorter filename.

FYI: I have also tried by enabling LongPathsEnabled in the Windows Registry, Still got the same same.
I am using ghostscript in my console application which is in .NET 6.0. I am using System.Diagnostics.Process ghostScript to convert the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions