Exemplo n.º 1
0
        public GhostScriptRevision GetRevision()
        {
            GS_Revision pGSRevisionInfo = new GS_Revision();
            GCHandle    gcHandle        = GCHandle.Alloc((object)pGSRevisionInfo, GCHandleType.Pinned);

            PDFConvert.gsapi_revision(ref pGSRevisionInfo, 16);
            GhostScriptRevision ghostScriptRevision;

            ghostScriptRevision.intRevision           = pGSRevisionInfo.intRevision;
            ghostScriptRevision.intRevisionDate       = pGSRevisionInfo.intRevisionDate;
            ghostScriptRevision.ProductInformation    = PDFConvert.AnsiZtoString(pGSRevisionInfo.strProduct);
            ghostScriptRevision.CopyrightInformations = PDFConvert.AnsiZtoString(pGSRevisionInfo.strCopyright);
            gcHandle.Free();
            return(ghostScriptRevision);
        }
Exemplo n.º 2
0
        public GhostScriptRevision GetRevision()
        {
            // Check revision number of Ghostscript
            int                 intReturn;
            GS_Revision         udtGSRevInfo = new GS_Revision();
            GhostScriptRevision output;
            GCHandle            gcRevision;

            gcRevision                   = GCHandle.Alloc(udtGSRevInfo, GCHandleType.Pinned);
            intReturn                    = gsapi_revision(ref udtGSRevInfo, 16);
            output.intRevision           = udtGSRevInfo.intRevision;
            output.intRevisionDate       = udtGSRevInfo.intRevisionDate;
            output.ProductInformation    = AnsiZtoString(udtGSRevInfo.strProduct);
            output.CopyrightInformations = AnsiZtoString(udtGSRevInfo.strCopyright);
            gcRevision.Free();
            return(output);
        }
Exemplo n.º 3
0
 private static extern int gsapi_revision(ref GS_Revision pGSRevisionInfo, int intLen);
Exemplo n.º 4
0
 public GhostScriptRevision GetRevision()
 {
     // Check revision number of Ghostscript
     int intReturn;
     GS_Revision udtGSRevInfo = new GS_Revision();
     GhostScriptRevision output;
     GCHandle gcRevision;
     gcRevision = GCHandle.Alloc(udtGSRevInfo, GCHandleType.Pinned);
     intReturn = gsapi_revision(ref udtGSRevInfo, 16);
     output.intRevision = udtGSRevInfo.intRevision;
     output.intRevisionDate = udtGSRevInfo.intRevisionDate;
     output.ProductInformation = AnsiZtoString(udtGSRevInfo.strProduct);
     output.CopyrightInformations = AnsiZtoString(udtGSRevInfo.strCopyright);
     gcRevision.Free();
     return output;
 }
Exemplo n.º 5
0
 private static extern int gsapi_revision(ref GS_Revision pGSRevisionInfo, int intLen);