From 30feaf9ef2e104d7d90f7311e3e0bdcbca450f45 Mon Sep 17 00:00:00 2001 From: Matthias Kramm Date: Tue, 19 Jan 2010 17:36:20 -0800 Subject: [PATCH] fixed Makefile, added spec file --- lib/pdf/Makefile.in | 2 +- spec/layers2.pdf | Bin 0 -> 1672 bytes spec/layers2.py | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 spec/layers2.pdf create mode 100644 spec/layers2.py 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 0000000000000000000000000000000000000000..5b9a234266fc8323c27f850ed747dc9aea26c142 GIT binary patch literal 1672 zcmY!laB6NGYxP@eiBsTC!$T&Z~} zAay2C^)@#8KB;->B^e5)K#?FWeYeb5n|nHZxj@anx?118+d|Eb7M0KDWBPS)+e34X1navCcfFNi zx-ska6iFGTTYoZaE&MqXqTgLlh;C=tmfJ6P{6y@Z&sQ;+1|onrj!3>tMdV?uwSMZi(=*-c1uXvs=VQ6W7Cq|0vjxR?L%hPo&L+S zq>6#zm*?pdzGghZqnRj?2{c< zI7e0VO?g!4l2sF@UG+G9cLG~)#JsgGPKOjHsr+g9Fzpme(smW=8}6kacC0-tXk8`u z;^me`W_8AwmMdMnbVV8~=7w-ECTIL|lnUQyeRa#4D@W8WO!W2eFJ7$Z{GV~b^K)U% zPj6>UxZQO}Tcll1Y08_1pAI%F@+A(gJ*ty!sO@O#?YMPAs8M9^acLc=Lf- z_p{t-CsL!nRleJPmZSXBw5T_8ZLO{RO-r1oKG`LBA%CgMw0%O6C$;m6KXoOu*g7r} zvi&Hu`1rQf$4}ghdX|%!{oU;RuCv>M+G6WZe26RDG=I`!jsr|9-W+7&I?H&o^M+6f zduH;YHQMa<_snd?1zFAHlP}I&ka|(%?!HC0RVQ8yR(dQu`FG#Ry|0;irimvkxpBRB zp(yh!?)_nPB5S54n6@uE+&Zo5HG@(1)-zHMF0Ghlk~N|E=B|sYl3Bu)s#GU2O9}O9 zrsN;>Xp^165j_GtC_C##?T*?sV9ai@^R^budb$^3-|+Vj3a6T*VG-iTD?^=I6Np^R9x1 ziMj~ON)|IixogV1Pb`3rer2Mu8N3CJ8!*Z_+rxFy9v&*hf_ zEivTM_s&cyj#dCUB`6jVHWp~QoD)kDbMn(cu1g2n4RIVoc|}ob8kd2BC6@slD43a= z8k;JlDZs@Hfzbp43VARwLn9NQNoZn*Ccub76*Dj}13C~*%+eI-NOUoCV5Fjo85$U3 z+F@h~3_X~-lA^@SoYW#v2nA7SAC#Y8q5uj5U;umOrR6Jt(h7*}5^dvZ>1b$X z;%aPYYHDF*;%sK*>}+92SOqwKic1oUO27eUXl!E4rK;-c@5TiH Di$`sF literal 0 HcmV?d00001 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); -- 1.7.10.4