Создание PostScript документов для печати. (postscript)
Ключевые слова: postscript, (найти похожие документы)
Date: Fri, 15 Mar 2002 13:52:08 +0000 (UTC)
From: Vitaly Filatov <vitaly@royint.com>
Newsgroups: fido7.ru.unix.prog
Subject: Создание PostScript документов для печати.
> Подскажите пожелуйста как лучше всего осуществить сабж из под программы на Си.
> Требуется печатать отчет, содерхжощий текст, сплошные линии в разных
> направлениях, причем все должно соответсвовать определенным размерам на бумаге.
> Может адресок с документацией или еще как нибудь.
Использовать DisplayPostScript для программирования задачи.
Преимущества:
1) Что видите на экране, то и будет на печати.
2) Генерация PostScript файла происходит без дополнительного
программирования. Вы просто перенаправляете вывод с контекста
связанного с экраном в другой - текстовый контекст результатом
действий которого будет PostScript текст документа.
3) Мощнейший язык для программирования графики. Очень просто делаются
любые геометрические преобразования графических объектов. Вследствие
этого Вы можете программировать объекты в любой удобной системе
координат, а при сборке изображения применять геометрические
преобразования (масштабирование, перенос, вращение).
4) Легко работать с текстами. Имеется много шрифтов.
5) Легко включить в изображение (импортировать) уже имеющиеся файлы на
PostScript.
6) Много документации на http://partners.adobe.com
О печати смотри http://partners.adobe.com/asn/developer/type/main.html
Недостатки:
1) Игры на DPS писать нельзя. Для игр медленно работает, хотя имеются
рекомендации как ускорить вывод на экран (DPS.refmanuals.CL.pdf, программа
clock).
2) Документация на английском.
wget -x --timeout=2 --wait=5 \
http://partners.adobe.com/asn/developer/pdfs/tn/DPS.refmanuals.CL.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/DPS.refmanuals.CLX.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/DPS.refmanuals.INDEX.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/DPS.refmanuals.INTRO.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/DPS.refmanuals.PSW.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/DPS.refmanuals.TK.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/psrefman.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5085.Redbook_Errata.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/3010SUPP.PDF \
http://partners.adobe.com/asn/developer/pdfs/tn/3010erra.pdf
и много-много ещё. Полный список в конце письма.
wget -x --timeout=2 --wait=5 \
http://partners.adobe.com/asn/developer/pdfs/tn/0091.Mac_Fond.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/3010SUPP.PDF \
http://partners.adobe.com/asn/developer/pdfs/tn/3010erra.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5001.DSC_Spec.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5002.EPSF_Spec.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5003.PPD_Spec_v4.3.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5004.AFM_Spec.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5005.BDF_Spec.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5006.ABF_Spec.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5007.AI7FileFormat.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5009.Comm_Spec.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5010.SCSI_spec.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5011.FaxProtocol_Spec.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5012.Type42_Spec.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5013.Cyrillic_Font_Spec.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5014.CIDFont_Spec.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5014.CMap_CIDFont_Spec.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5015.Type1_Supp.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5040.Download_Fonts.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5044.ColorSep_Conv.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5045.Sonata.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5049.StemSnap.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5070.SupportATM.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5072.ATM.API_Mac.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5073.ATM.API_Win.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5074.ATM_MM_Mac.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5075.Fonts_In_PS.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5078.Adobe-Japan1-4.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5079.Adobe-GB1-4.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5080.Adobe-CNS1-3.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5080.Adobe-CNS1-4.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5085.Redbook_Errata.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5088.FontNames.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5089.GlyphNames.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5090.FontNameList.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5091.Design_MM_Fonts.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5092.CID_Overview.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5093.Adobe-Korea1-0.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5094.CJK_CID.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5096.BarCode_Vendors.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5097.Adobe-Japan2-0.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5099.CMapFiles.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5116.DCT_Filter.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5119.setscreen.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5137.MacFontTips.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5138.ATMInfoEscape.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5144.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5145overprint.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5174.CID_PS.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5175.CID_ATM.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5176.CFF.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5177.Type2.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5178.PFM.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5180.sfnt.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5186AcroJS.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5188.cgats.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5401ElemTypes.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5411.ToUnicode.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5412.WidthOnlyCIDFonts.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5413.OutputIntentions.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5419ExtendInstaller.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5420UsingSMS.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5421UsingWTS.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5422AEIT.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5611.pstrapping.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5620.pjtf.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5640.CJK_Fonts.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5641.CID_Embed.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5642.ATMWin95andNT.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5644.Comment_Ext.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5645.PPD_Update.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/5660.OPI_2.0.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/ADMRefGuidev2.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/DPS.refmanuals.CL.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/DPS.refmanuals.CLX.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/DPS.refmanuals.INDEX.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/DPS.refmanuals.INTRO.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/DPS.refmanuals.PSW.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/DPS.refmanuals.TK.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/DPSNX.Doc.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/OPI_13.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/PLRM.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/PPKAppearances.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/PS3010and3011.Supplement.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/PSerrata.txt \
http://partners.adobe.com/asn/developer/pdfs/tn/ReadPDF_MSAA.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/T1Format.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/T1_SPEC.PDF \
http://partners.adobe.com/asn/developer/pdfs/tn/TIFF6.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/TIFFPM6.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/TN5600.SmoothShading.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/TN5601.MaskedImages.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/TN5602.HalfToning.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/TN5603.Filters.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/TN5604.DeviceN_Color.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/TN5606.Separations.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/TN5607.Clipsave.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/TN5608.Copypage.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/TN5609.PS3_Fonts.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/ppk_pdfspec.pdf \
http://partners.adobe.com/asn/developer/pdfs/tn/psrefman.pdf