MCPcopy Create free account
hub / github.com/OpenPrinting/cups / do_prolog

Function do_prolog

filter/pstops.c:1857–1889  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1855 */
1856
1857static void
1858do_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/*

Callers 2

copy_non_dscFunction · 0.85
copy_prologFunction · 0.85

Calls 2

doc_putsFunction · 0.85
ppdEmitStringFunction · 0.85

Tested by

no test coverage detected