| 1855 | */ |
| 1856 | |
| 1857 | static void |
| 1858 | do_prolog(pstops_doc_t *doc, /* I - Document information */ |
| 1859 | ppd_file_t *ppd) /* I - PPD file */ |
| 1860 | { |
| 1861 | char *ps; /* PS commands */ |
| 1862 | |
| 1863 | |
| 1864 | /* |
| 1865 | * Send the document prolog commands... |
| 1866 | */ |
| 1867 | |
| 1868 | if (ppd && ppd->patches) |
| 1869 | { |
| 1870 | doc_puts(doc, "%%BeginFeature: *JobPatchFile 1\n"); |
| 1871 | doc_puts(doc, ppd->patches); |
| 1872 | doc_puts(doc, "\n%%EndFeature\n"); |
| 1873 | } |
| 1874 | |
| 1875 | if ((ps = ppdEmitString(ppd, PPD_ORDER_PROLOG, 0.0)) != NULL) |
| 1876 | { |
| 1877 | doc_puts(doc, ps); |
| 1878 | free(ps); |
| 1879 | } |
| 1880 | |
| 1881 | /* |
| 1882 | * Define ESPshowpage here so that applications that define their |
| 1883 | * own procedure to do a showpage pick it up... |
| 1884 | */ |
| 1885 | |
| 1886 | if (doc->use_ESPshowpage) |
| 1887 | doc_puts(doc, "userdict/ESPshowpage/showpage load put\n" |
| 1888 | "userdict/showpage{}put\n"); |
| 1889 | } |
| 1890 | |
| 1891 | |
| 1892 | /* |
no test coverage detected