From: Matthias Kramm Date: Wed, 20 Jan 2010 01:36:20 +0000 (-0800) Subject: fixed Makefile, added spec file X-Git-Tag: version-0-9-1~184 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=30feaf9ef2e104d7d90f7311e3e0bdcbca450f45 fixed Makefile, added spec file --- diff --git a/lib/pdf/Makefile.in b/lib/pdf/Makefile.in index 00bce2a..505f728 100644 --- a/lib/pdf/Makefile.in +++ b/lib/pdf/Makefile.in @@ -156,7 +156,7 @@ xpdf/%.$(O): xpdf/%.cc xpdfapp_sources=xpdf/XPDFApp.cc xpdf/XPDFCore.cc xpdf/XPDFTree.cc xpdf/XPDFViewer.cc xpdf/PDFCore.cc xpdf/TextOutputDev.cc xpdf/xpdf.cc xpdf/CoreOutputDev.cc xpdf/UnicodeTypeTable.cc xpdf/PSOutputDev.cc splash_sources=xpdf/Splash.cc xpdf/SplashBitmap.cc xpdf/SplashClip.cc xpdf/SplashFTFont.cc xpdf/SplashFTFontEngine.cc xpdf/SplashFTFontFile.cc xpdf/SplashFont.cc xpdf/SplashFontEngine.cc xpdf/SplashFontFile.cc xpdf/SplashFontFileID.cc xpdf/SplashOutputDev.cc xpdf/SplashPath.cc xpdf/SplashPattern.cc xpdf/SplashScreen.cc xpdf/SplashState.cc xpdf/SplashT1Font.cc xpdf/SplashT1FontEngine.cc xpdf/SplashT1FontFile.cc xpdf/SplashXPath.cc xpdf/SplashXPathScanner.cc -xpdfapp_objects=xpdf/XPDFApp.$(O) xpdf/XPDFCore.$(O) xpdf/XPDFTree.$(O) xpdf/XPDFViewer.$(O) xpdf/PDFCore.$(O) xpdf/TextOutputDev.$(O) xpdf/xpdf.$(O) xpdf/CoreOutputDev.$(O) xpdf/UnicodeTypeTable.$(O) xpdf/PSOutputDev.$(O) +xpdfapp_objects=xpdf/XPDFApp.$(O) xpdf/XPDFCore.$(O) xpdf/XPDFTree.$(O) xpdf/XPDFViewer.$(O) xpdf/PDFCore.$(O) xpdf/xpdf.$(O) xpdf/CoreOutputDev.$(O) xpdf/PSOutputDev.$(O) xxpdf$(E): $(xpdf_objects) $(xpdfapp_objects) $(splash_objects) $(LL) $(CPPFLAGS) -DXPDFEXE -g -I xpdf -I . $(xpdfapp_objects) $(xpdf_objects) $(splash_objects) xpdf/parseargs.c -o xxpdf$(E) $(LIBS) -lXm -lX11 diff --git a/spec/layers2.pdf b/spec/layers2.pdf new file mode 100644 index 0000000..5b9a234 Binary files /dev/null and b/spec/layers2.pdf differ diff --git a/spec/layers2.py b/spec/layers2.py new file mode 100644 index 0000000..91402fd --- /dev/null +++ b/spec/layers2.py @@ -0,0 +1,64 @@ +from sys import * +from pdflib_py import * +import random + +p = PDF_new() +PDF_open_file(p, "layers2.pdf") + +PDF_set_parameter(p, "usercoordinates", "true") +PDF_set_info(p, "Creator", "layer2.py") + +width=400 +height=400 + +PDF_begin_page(p, width, height) + +PDF_setrgbcolor_fill(p, 0, 0, 1.0) +PDF_moveto(p, 10, 10) +PDF_lineto(p, 100, 10) +PDF_lineto(p, 10, 100) + +PDF_moveto(p, 20, 110) +PDF_lineto(p, 110, 110) +PDF_lineto(p, 110, 20) +PDF_fill(p) + +for i in range(100): + x = random.randint(10,110) + y = random.randint(200,300) + PDF_moveto(p, x, y) + PDF_lineto(p, x+5, y) + PDF_stroke(p) + +PDF_setrgbcolor_fill(p, 1.0, 0, 0) +x,y = 100,100 +def rect(x,y): + PDF_moveto(p, x,y) + PDF_lineto(p, x+50,y) + PDF_lineto(p, x+50,y+50) + PDF_lineto(p, x,y+50) + PDF_lineto(p, x,y) + PDF_fill(p) + +rect(200,100) +rect(250,170) +rect(300,240) + +PDF_setrgbcolor_fill(p, 0, 1.0, 0) +rect(200,300) + +x,y = 230,330 +PDF_moveto(p, x+25,y) +PDF_lineto(p, x+50,y) +PDF_lineto(p, x+50,y+50) +PDF_lineto(p, x,y+50) +PDF_lineto(p, x,y+25) +PDF_lineto(p, x+25,y+25) +PDF_lineto(p, x+25,y) +PDF_fill(p) + + +PDF_end_page(p) + +PDF_close(p) +PDF_delete(p);