Lines Matching refs:ps_printf

100 static	void		  ps_printf(struct termp *, const char *, ...);
548 ps_printf(struct termp *p, const char *fmt, ...) in ps_printf() function
626 ps_printf(p, "%zu 0 obj\n", obj); in pdf_obj()
644 ps_printf(p, "%s", p->ps->psmarg); in ps_closepage()
647 ps_printf(p, "ET\n"); in ps_closepage()
652 ps_printf(p, "endstream\nendobj\n"); in ps_closepage()
656 ps_printf(p, "%zu\nendobj\n", len); in ps_closepage()
660 ps_printf(p, "<<\n/ProcSet [/PDF /Text]\n"); in ps_closepage()
661 ps_printf(p, "/Font <<\n"); in ps_closepage()
663 ps_printf(p, "/F%d %d 0 R\n", i, 3 + i); in ps_closepage()
664 ps_printf(p, ">>\n>>\n"); in ps_closepage()
668 ps_printf(p, "<<\n"); in ps_closepage()
669 ps_printf(p, "/Type /Page\n"); in ps_closepage()
670 ps_printf(p, "/Parent 2 0 R\n"); in ps_closepage()
671 ps_printf(p, "/Resources %zu 0 R\n", base + 2); in ps_closepage()
672 ps_printf(p, "/Contents %zu 0 R\n", base); in ps_closepage()
673 ps_printf(p, ">>\nendobj\n"); in ps_closepage()
675 ps_printf(p, "showpage\n"); in ps_closepage()
703 ps_printf(p, "%%%%Trailer\n"); in ps_end()
704 ps_printf(p, "%%%%Pages: %zu\n", p->ps->pages); in ps_end()
705 ps_printf(p, "%%%%EOF\n"); in ps_end()
710 ps_printf(p, "<<\n/Type /Pages\n"); in ps_end()
711 ps_printf(p, "/MediaBox [0 0 %zu %zu]\n", in ps_end()
715 ps_printf(p, "/Count %zu\n", p->ps->pages); in ps_end()
716 ps_printf(p, "/Kids ["); in ps_end()
719 ps_printf(p, " %zu 0 R", i * 4 + in ps_end()
725 ps_printf(p, "]\n>>\nendobj\n"); in ps_end()
727 ps_printf(p, "<<\n"); in ps_end()
728 ps_printf(p, "/Type /Catalog\n"); in ps_end()
729 ps_printf(p, "/Pages 2 0 R\n"); in ps_end()
730 ps_printf(p, ">>\n"); in ps_end()
732 ps_printf(p, "xref\n"); in ps_end()
733 ps_printf(p, "0 %zu\n", base + 1); in ps_end()
734 ps_printf(p, "0000000000 65535 f \n"); in ps_end()
737 ps_printf(p, "%.10zu 00000 n \n", in ps_end()
740 ps_printf(p, "trailer\n"); in ps_end()
741 ps_printf(p, "<<\n"); in ps_end()
742 ps_printf(p, "/Size %zu\n", base + 1); in ps_end()
743 ps_printf(p, "/Root %zu 0 R\n", base); in ps_end()
744 ps_printf(p, "/Info 1 0 R\n"); in ps_end()
745 ps_printf(p, ">>\n"); in ps_end()
746 ps_printf(p, "startxref\n"); in ps_end()
747 ps_printf(p, "%zu\n", xref); in ps_end()
748 ps_printf(p, "%%%%EOF\n"); in ps_end()
799 ps_printf(p, "%%!PS-Adobe-3.0\n"); in ps_begin()
800 ps_printf(p, "%%%%CreationDate: %s", ctime(&t)); in ps_begin()
801 ps_printf(p, "%%%%DocumentData: Clean7Bit\n"); in ps_begin()
802 ps_printf(p, "%%%%Orientation: Portrait\n"); in ps_begin()
803 ps_printf(p, "%%%%Pages: (atend)\n"); in ps_begin()
804 ps_printf(p, "%%%%PageOrder: Ascend\n"); in ps_begin()
805 ps_printf(p, "%%%%DocumentMedia: " in ps_begin()
809 ps_printf(p, "%%%%DocumentNeededResources: font"); in ps_begin()
812 ps_printf(p, " %s", fonts[i].name); in ps_begin()
814 ps_printf(p, "\n%%%%EndComments\n"); in ps_begin()
816 ps_printf(p, "%%PDF-1.1\n"); in ps_begin()
818 ps_printf(p, "<<\n"); in ps_begin()
819 ps_printf(p, ">>\n"); in ps_begin()
820 ps_printf(p, "endobj\n"); in ps_begin()
824 ps_printf(p, "<<\n"); in ps_begin()
825 ps_printf(p, "/Type /Font\n"); in ps_begin()
826 ps_printf(p, "/Subtype /Type1\n"); in ps_begin()
827 ps_printf(p, "/Name /F%zu\n", i); in ps_begin()
828 ps_printf(p, "/BaseFont /%s\n", fonts[i].name); in ps_begin()
829 ps_printf(p, ">>\n"); in ps_begin()
853 ps_printf(p, "%%%%Page: %zu %zu\n", in ps_pletter()
856 ps_printf(p, "/%s %zu selectfont\n", in ps_pletter()
862 ps_printf(p, "<<\n"); in ps_pletter()
863 ps_printf(p, "/Length %zu 0 R\n", in ps_pletter()
866 ps_printf(p, ">>\nstream\n"); in ps_pletter()
879 ps_printf(p, "BT\n/F%d %zu Tf\n", in ps_pletter()
882 ps_printf(p, "%.3f %.3f Td\n(", in ps_pletter()
886 ps_printf(p, "%.3f %.3f moveto\n(", in ps_pletter()
943 ps_printf(p, ") Tj\nET\n"); in ps_pclose()
945 ps_printf(p, ") show\n"); in ps_pclose()
1103 ps_printf(p, "/%s %zu selectfont\n", in ps_setfont()
1107 ps_printf(p, "/F%d %zu Tf\n", in ps_setfont()