Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pdfjet.Page Maven / Gradle / Ivy
/* */ package com.pdfjet;
/* */
/* */ import java.io.ByteArrayOutputStream;
/* */ import java.io.IOException;
/* */ import java.text.DecimalFormat;
/* */ import java.util.ArrayList;
/* */ import java.util.List;
/* */ import java.util.Map;
/* */
/* */ public class Page
/* */ {
/* */ protected PDF pdf;
/* */ protected Map objects;
/* */ protected PDFobj pageObj;
/* */ protected int objNumber;
/* */ protected ByteArrayOutputStream buf;
/* 55 */ protected float[] tm = { 1.0F, 0.0F, 0.0F, 1.0F };
/* 56 */ protected int renderingMode = 0;
/* */ protected float width;
/* */ protected float height;
/* */ protected List contents;
/* */ protected List annots;
/* */ protected List destinations;
/* 62 */ protected float[] cropBox = null;
/* 63 */ protected float[] bleedBox = null;
/* 64 */ protected float[] trimBox = null;
/* 65 */ protected float[] artBox = null;
/* 66 */ protected List structures = new ArrayList();
/* */
/* 68 */ private float[] pen = { 0.0F, 0.0F, 0.0F };
/* 69 */ private float[] brush = { 0.0F, 0.0F, 0.0F };
/* 70 */ private float pen_width = -1.0F;
/* 71 */ private int line_cap_style = 0;
/* 72 */ private int line_join_style = 0;
/* 73 */ private String linePattern = "[] 0";
/* */ private Font font;
/* 75 */ private List savedStates = new ArrayList();
/* 76 */ private int mcid = 0;
/* */
/* */ public Page(PDF paramPDF, float[] paramArrayOfFloat)
/* */ throws Exception
/* */ {
/* 93 */ this(paramPDF, paramArrayOfFloat, true);
/* */ }
/* */
/* */ public Page(PDF paramPDF, float[] paramArrayOfFloat, boolean paramBoolean)
/* */ throws Exception
/* */ {
/* 112 */ this.pdf = paramPDF;
/* 113 */ this.contents = new ArrayList();
/* 114 */ this.annots = new ArrayList();
/* 115 */ this.destinations = new ArrayList();
/* 116 */ this.width = paramArrayOfFloat[0];
/* 117 */ this.height = paramArrayOfFloat[1];
/* 118 */ this.buf = new ByteArrayOutputStream(8192);
/* */
/* 120 */ if (paramBoolean)
/* 121 */ paramPDF.addPage(this);
/* */ }
/* */
/* */ public Page(PDF paramPDF, Map paramMap, PDFobj paramPDFobj)
/* */ throws Exception
/* */ {
/* 127 */ this.pdf = paramPDF;
/* 128 */ this.objects = paramMap;
/* 129 */ this.pageObj = paramPDFobj;
/* 130 */ this.width = paramPDFobj.getPageSize()[0];
/* 131 */ this.height = paramPDFobj.getPageSize()[1];
/* 132 */ this.buf = new ByteArrayOutputStream(8192);
/* */ }
/* */
/* */ public Font addFontResource(CoreFont paramCoreFont)
/* */ {
/* 137 */ return this.pageObj.addFontResource(paramCoreFont, this.objects);
/* */ }
/* */
/* */ public void complete()
/* */ {
/* 142 */ this.pageObj.addContent(getContent(), this.objects);
/* */ }
/* */
/* */ public byte[] getContent()
/* */ {
/* 147 */ return this.buf.toByteArray();
/* */ }
/* */
/* */ public Destination addDestination(String paramString, float paramFloat)
/* */ {
/* 160 */ Destination localDestination = new Destination(paramString, this.height - paramFloat);
/* 161 */ this.destinations.add(localDestination);
/* 162 */ return localDestination;
/* */ }
/* */
/* */ public float getWidth()
/* */ {
/* 172 */ return this.width;
/* */ }
/* */
/* */ public float getHeight()
/* */ {
/* 182 */ return this.height;
/* */ }
/* */
/* */ public void drawLine(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
/* */ throws IOException
/* */ {
/* 199 */ drawLine((float)paramDouble1, (float)paramDouble2, (float)paramDouble3, (float)paramDouble4);
/* */ }
/* */
/* */ public void drawLine(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
/* */ throws IOException
/* */ {
/* 216 */ moveTo(paramFloat1, paramFloat2);
/* 217 */ lineTo(paramFloat3, paramFloat4);
/* 218 */ strokePath();
/* */ }
/* */
/* */ public void drawString(Font paramFont1, Font paramFont2, String paramString, float paramFloat1, float paramFloat2)
/* */ throws IOException
/* */ {
/* 240 */ if (paramFont2 == null) {
/* 241 */ drawString(paramFont1, paramString, paramFloat1, paramFloat2);
/* */ }
/* */ else {
/* 244 */ Font localFont = paramFont1;
/* 245 */ StringBuilder localStringBuilder = new StringBuilder();
/* 246 */ for (int i = 0; i < paramString.length(); i++) {
/* 247 */ int j = paramString.charAt(i);
/* */ String str;
/* 248 */ if (((paramFont1.isCJK) && (j >= 19968) && (j <= 40908)) || ((!paramFont1.isCJK) && (paramFont1.unicodeToGID[j] != 0)))
/* */ {
/* 250 */ if (paramFont1 != localFont) {
/* 251 */ str = localStringBuilder.toString();
/* 252 */ drawString(localFont, str, paramFloat1, paramFloat2);
/* 253 */ paramFloat1 += localFont.stringWidth(str);
/* 254 */ localStringBuilder.setLength(0);
/* 255 */ localFont = paramFont1;
/* */ }
/* */
/* */ }
/* 259 */ else if (paramFont2 != localFont) {
/* 260 */ str = localStringBuilder.toString();
/* 261 */ drawString(localFont, str, paramFloat1, paramFloat2);
/* 262 */ paramFloat1 += localFont.stringWidth(str);
/* 263 */ localStringBuilder.setLength(0);
/* 264 */ localFont = paramFont2;
/* */ }
/* */
/* 267 */ localStringBuilder.append((char)j);
/* */ }
/* 269 */ drawString(localFont, localStringBuilder.toString(), paramFloat1, paramFloat2);
/* */ }
/* */ }
/* */
/* */ public void drawString(Font paramFont, String paramString, double paramDouble1, double paramDouble2)
/* */ throws IOException
/* */ {
/* 289 */ drawString(paramFont, paramString, (float)paramDouble1, (float)paramDouble2);
/* */ }
/* */
/* */ public void drawString(Font paramFont, String paramString, float paramFloat1, float paramFloat2)
/* */ throws IOException
/* */ {
/* 309 */ if ((paramString == null) || (paramString.equals(""))) {
/* 310 */ return;
/* */ }
/* */
/* 313 */ append("BT\n");
/* */
/* 315 */ if (paramFont.fontID == null) {
/* 316 */ setTextFont(paramFont);
/* */ }
/* */ else {
/* 319 */ append('/');
/* 320 */ append(paramFont.fontID);
/* 321 */ append(' ');
/* 322 */ append(paramFont.size);
/* 323 */ append(" Tf\n");
/* */ }
/* */
/* 326 */ if (this.renderingMode != 0) {
/* 327 */ append(this.renderingMode);
/* 328 */ append(" Tr\n");
/* */ }
/* */
/* 331 */ float f = 0.0F;
/* 332 */ if ((paramFont.skew15) && (this.tm[0] == 1.0F) && (this.tm[1] == 0.0F) && (this.tm[2] == 0.0F) && (this.tm[3] == 1.0F))
/* */ {
/* 337 */ f = 0.26F;
/* */ }
/* */
/* 340 */ append(this.tm[0]);
/* 341 */ append(' ');
/* 342 */ append(this.tm[1]);
/* 343 */ append(' ');
/* 344 */ append(this.tm[2] + f);
/* 345 */ append(' ');
/* 346 */ append(this.tm[3]);
/* 347 */ append(' ');
/* 348 */ append(paramFloat1);
/* 349 */ append(' ');
/* 350 */ append(this.height - paramFloat2);
/* 351 */ append(" Tm\n");
/* */
/* 353 */ append("[<");
/* 354 */ drawString(paramFont, paramString);
/* 355 */ append(">] TJ\n");
/* */
/* 357 */ append("ET\n");
/* */ }
/* */
/* */ private void drawString(Font paramFont, String paramString) throws IOException
/* */ {
/* 362 */ int i = paramString.length();
/* 363 */ for (int j = 0; j < i; j++)
/* 364 */ if (paramFont.isCoreFont) {
/* 365 */ drawOneByteChar(paramString.charAt(j), paramFont, paramString, j);
/* */ }
/* */ else
/* 368 */ drawTwoByteChar(paramString.charAt(j), paramFont);
/* */ }
/* */
/* */ private void drawOneByteChar(int paramInt1, Font paramFont, String paramString, int paramInt2)
/* */ throws IOException
/* */ {
/* 376 */ if ((paramInt1 < paramFont.firstChar) || (paramInt1 > paramFont.lastChar)) {
/* 377 */ append(String.format("%02X", new Object[] { Integer.valueOf(32) }));
/* 378 */ return;
/* */ }
/* 380 */ append(String.format("%02X", new Object[] { Integer.valueOf(paramInt1) }));
/* */
/* 382 */ if ((paramFont.isCoreFont) && (paramFont.kernPairs) && (paramInt2 < paramString.length() - 1)) {
/* 383 */ paramInt1 -= 32;
/* 384 */ int i = paramString.charAt(paramInt2 + 1);
/* 385 */ if ((i < paramFont.firstChar) || (i > paramFont.lastChar)) {
/* 386 */ i = 32;
/* */ }
/* 388 */ for (int j = 2; j < paramFont.metrics[paramInt1].length; j += 2)
/* 389 */ if (paramFont.metrics[paramInt1][j] == i) {
/* 390 */ append(">");
/* 391 */ append(-paramFont.metrics[paramInt1][(j + 1)]);
/* 392 */ append("<");
/* 393 */ break;
/* */ }
/* */ }
/* */ }
/* */
/* */ private void drawTwoByteChar(int paramInt, Font paramFont)
/* */ throws IOException
/* */ {
/* 401 */ if ((paramInt < paramFont.firstChar) || (paramInt > paramFont.lastChar)) {
/* 402 */ if (paramFont.isCJK) {
/* 403 */ append(String.format("%04X", new Object[] { Integer.valueOf(32) }));
/* */ }
/* */ else {
/* 406 */ append(String.format("%04X", new Object[] { Integer.valueOf(paramFont.unicodeToGID[32]) }));
/* */ }
/* */
/* */ }
/* 410 */ else if (paramFont.isCJK) {
/* 411 */ append(String.format("%04X", new Object[] { Integer.valueOf(paramInt) }));
/* */ }
/* */ else
/* 414 */ append(String.format("%04X", new Object[] { Integer.valueOf(paramFont.unicodeToGID[paramInt]) }));
/* */ }
/* */
/* */ public void setGraphicsState(GraphicsState paramGraphicsState)
/* */ throws IOException
/* */ {
/* 426 */ StringBuilder localStringBuilder = new StringBuilder();
/* 427 */ localStringBuilder.append("/CA ");
/* 428 */ localStringBuilder.append(paramGraphicsState.get_CA());
/* 429 */ localStringBuilder.append(" ");
/* 430 */ localStringBuilder.append("/ca ");
/* 431 */ localStringBuilder.append(paramGraphicsState.get_ca());
/* 432 */ setGraphicsState(localStringBuilder.toString());
/* */ }
/* */
/* */ private void setGraphicsState(String paramString)
/* */ throws IOException
/* */ {
/* 438 */ Integer localInteger = (Integer)this.pdf.states.get(paramString);
/* 439 */ if (localInteger == null) {
/* 440 */ localInteger = Integer.valueOf(this.pdf.states.size() + 1);
/* 441 */ this.pdf.states.put(paramString, localInteger);
/* */ }
/* 443 */ append("/GS");
/* 444 */ append(localInteger.intValue());
/* 445 */ append(" gs\n");
/* */ }
/* */
/* */ public void setPenColor(double paramDouble1, double paramDouble2, double paramDouble3)
/* */ throws IOException
/* */ {
/* 459 */ setPenColor((float)paramDouble1, (float)paramDouble2, (float)paramDouble3);
/* */ }
/* */
/* */ public void setPenColor(float paramFloat1, float paramFloat2, float paramFloat3)
/* */ throws IOException
/* */ {
/* 473 */ if ((this.pen[0] != paramFloat1) || (this.pen[1] != paramFloat2) || (this.pen[2] != paramFloat3))
/* */ {
/* 476 */ setColor(paramFloat1, paramFloat2, paramFloat3);
/* 477 */ append(" RG\n");
/* 478 */ this.pen[0] = paramFloat1;
/* 479 */ this.pen[1] = paramFloat2;
/* 480 */ this.pen[2] = paramFloat3;
/* */ }
/* */ }
/* */
/* */ public void setBrushColor(double paramDouble1, double paramDouble2, double paramDouble3)
/* */ throws IOException
/* */ {
/* 495 */ setBrushColor((float)paramDouble1, (float)paramDouble2, (float)paramDouble3);
/* */ }
/* */
/* */ public void setBrushColor(float paramFloat1, float paramFloat2, float paramFloat3)
/* */ throws IOException
/* */ {
/* 509 */ if ((this.brush[0] != paramFloat1) || (this.brush[1] != paramFloat2) || (this.brush[2] != paramFloat3))
/* */ {
/* 512 */ setColor(paramFloat1, paramFloat2, paramFloat3);
/* 513 */ append(" rg\n");
/* 514 */ this.brush[0] = paramFloat1;
/* 515 */ this.brush[1] = paramFloat2;
/* 516 */ this.brush[2] = paramFloat3;
/* */ }
/* */ }
/* */
/* */ public void setBrushColor(float[] paramArrayOfFloat)
/* */ throws IOException
/* */ {
/* 528 */ setBrushColor(paramArrayOfFloat[0], paramArrayOfFloat[1], paramArrayOfFloat[2]);
/* */ }
/* */
/* */ public float[] getBrushColor()
/* */ {
/* 538 */ return this.brush;
/* */ }
/* */
/* */ private void setColor(float paramFloat1, float paramFloat2, float paramFloat3)
/* */ throws IOException
/* */ {
/* 544 */ append(paramFloat1);
/* 545 */ append(' ');
/* 546 */ append(paramFloat2);
/* 547 */ append(' ');
/* 548 */ append(paramFloat3);
/* */ }
/* */
/* */ public void setPenColor(int paramInt)
/* */ throws IOException
/* */ {
/* 559 */ float f1 = (paramInt >> 16 & 0xFF) / 255.0F;
/* 560 */ float f2 = (paramInt >> 8 & 0xFF) / 255.0F;
/* 561 */ float f3 = (paramInt & 0xFF) / 255.0F;
/* 562 */ setPenColor(f1, f2, f3);
/* */ }
/* */
/* */ public void setBrushColor(int paramInt)
/* */ throws IOException
/* */ {
/* 573 */ float f1 = (paramInt >> 16 & 0xFF) / 255.0F;
/* 574 */ float f2 = (paramInt >> 8 & 0xFF) / 255.0F;
/* 575 */ float f3 = (paramInt & 0xFF) / 255.0F;
/* 576 */ setBrushColor(f1, f2, f3);
/* */ }
/* */
/* */ public void setDefaultLineWidth()
/* */ throws IOException
/* */ {
/* 585 */ if (this.pen_width != 0.0F) {
/* 586 */ this.pen_width = 0.0F;
/* 587 */ append(this.pen_width);
/* 588 */ append(" w\n");
/* */ }
/* */ }
/* */
/* */ public void setLinePattern(String paramString)
/* */ throws IOException
/* */ {
/* 617 */ if (!paramString.equals(this.linePattern)) {
/* 618 */ this.linePattern = paramString;
/* 619 */ append(this.linePattern);
/* 620 */ append(" d\n");
/* */ }
/* */ }
/* */
/* */ public void setDefaultLinePattern()
/* */ throws IOException
/* */ {
/* 629 */ append("[] 0");
/* 630 */ append(" d\n");
/* */ }
/* */
/* */ public void setPenWidth(double paramDouble)
/* */ throws IOException
/* */ {
/* 640 */ setPenWidth((float)paramDouble);
/* */ }
/* */
/* */ public void setPenWidth(float paramFloat)
/* */ throws IOException
/* */ {
/* 650 */ if (this.pen_width != paramFloat) {
/* 651 */ this.pen_width = paramFloat;
/* 652 */ append(this.pen_width);
/* 653 */ append(" w\n");
/* */ }
/* */ }
/* */
/* */ public void setLineCapStyle(int paramInt)
/* */ throws IOException
/* */ {
/* 664 */ if (this.line_cap_style != paramInt) {
/* 665 */ this.line_cap_style = paramInt;
/* 666 */ append(this.line_cap_style);
/* 667 */ append(" J\n");
/* */ }
/* */ }
/* */
/* */ public void setLineJoinStyle(int paramInt)
/* */ throws IOException
/* */ {
/* 678 */ if (this.line_join_style != paramInt) {
/* 679 */ this.line_join_style = paramInt;
/* 680 */ append(this.line_join_style);
/* 681 */ append(" j\n");
/* */ }
/* */ }
/* */
/* */ public void moveTo(double paramDouble1, double paramDouble2)
/* */ throws IOException
/* */ {
/* 693 */ moveTo((float)paramDouble1, (float)paramDouble2);
/* */ }
/* */
/* */ public void moveTo(float paramFloat1, float paramFloat2)
/* */ throws IOException
/* */ {
/* 704 */ append(paramFloat1);
/* 705 */ append(' ');
/* 706 */ append(this.height - paramFloat2);
/* 707 */ append(" m\n");
/* */ }
/* */
/* */ public void lineTo(double paramDouble1, double paramDouble2)
/* */ throws IOException
/* */ {
/* 717 */ lineTo((float)paramDouble1, (float)paramDouble2);
/* */ }
/* */
/* */ public void lineTo(float paramFloat1, float paramFloat2)
/* */ throws IOException
/* */ {
/* 727 */ append(paramFloat1);
/* 728 */ append(' ');
/* 729 */ append(this.height - paramFloat2);
/* 730 */ append(" l\n");
/* */ }
/* */
/* */ public void strokePath()
/* */ throws IOException
/* */ {
/* 738 */ append("S\n");
/* */ }
/* */
/* */ public void closePath()
/* */ throws IOException
/* */ {
/* 746 */ append("s\n");
/* */ }
/* */
/* */ public void fillPath()
/* */ throws IOException
/* */ {
/* 754 */ append("f\n");
/* */ }
/* */
/* */ public void drawRect(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
/* */ throws IOException
/* */ {
/* 771 */ drawRect((float)paramDouble1, (float)paramDouble2, (float)paramDouble3, (float)paramDouble4);
/* */ }
/* */
/* */ public void drawRect(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
/* */ throws IOException
/* */ {
/* 788 */ moveTo(paramFloat1, paramFloat2);
/* 789 */ lineTo(paramFloat1 + paramFloat3, paramFloat2);
/* 790 */ lineTo(paramFloat1 + paramFloat3, paramFloat2 + paramFloat4);
/* 791 */ lineTo(paramFloat1, paramFloat2 + paramFloat4);
/* 792 */ closePath();
/* */ }
/* */
/* */ public void fillRect(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
/* */ throws IOException
/* */ {
/* 809 */ fillRect((float)paramDouble1, (float)paramDouble2, (float)paramDouble3, (float)paramDouble4);
/* */ }
/* */
/* */ public void fillRect(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
/* */ throws IOException
/* */ {
/* 826 */ moveTo(paramFloat1, paramFloat2);
/* 827 */ lineTo(paramFloat1 + paramFloat3, paramFloat2);
/* 828 */ lineTo(paramFloat1 + paramFloat3, paramFloat2 + paramFloat4);
/* 829 */ lineTo(paramFloat1, paramFloat2 + paramFloat4);
/* 830 */ fillPath();
/* */ }
/* */
/* */ public void drawPath(List paramList, char paramChar)
/* */ throws Exception
/* */ {
/* 842 */ if (paramList.size() < 2) {
/* 843 */ throw new Exception("The Path object must contain at least 2 points");
/* */ }
/* */
/* 846 */ Point localPoint = (Point)paramList.get(0);
/* 847 */ moveTo(localPoint.x, localPoint.y);
/* 848 */ int i = 0;
/* 849 */ for (int j = 1; j < paramList.size(); j++) {
/* 850 */ localPoint = (Point)paramList.get(j);
/* 851 */ if (localPoint.isControlPoint) {
/* 852 */ i = 1;
/* 853 */ append(localPoint);
/* */ }
/* 856 */ else if (i != 0) {
/* 857 */ i = 0;
/* 858 */ append(localPoint);
/* 859 */ append("c\n");
/* */ }
/* */ else {
/* 862 */ lineTo(localPoint.x, localPoint.y);
/* */ }
/* */
/* */ }
/* */
/* 867 */ append(paramChar);
/* 868 */ append('\n');
/* */ }
/* */
/* */ public void drawCircle(double paramDouble1, double paramDouble2, double paramDouble3)
/* */ throws Exception
/* */ {
/* 885 */ drawEllipse((float)paramDouble1, (float)paramDouble2, (float)paramDouble3, (float)paramDouble3, Operation.STROKE);
/* */ }
/* */
/* */ public void drawCircle(float paramFloat1, float paramFloat2, float paramFloat3)
/* */ throws Exception
/* */ {
/* 902 */ drawEllipse(paramFloat1, paramFloat2, paramFloat3, paramFloat3, Operation.STROKE);
/* */ }
/* */
/* */ public void drawCircle(double paramDouble1, double paramDouble2, double paramDouble3, char paramChar)
/* */ throws Exception
/* */ {
/* 919 */ drawEllipse((float)paramDouble1, (float)paramDouble2, (float)paramDouble3, (float)paramDouble3, paramChar);
/* */ }
/* */
/* */ public void drawEllipse(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
/* */ throws Exception
/* */ {
/* 936 */ drawEllipse((float)paramDouble1, (float)paramDouble2, (float)paramDouble3, (float)paramDouble4, Operation.STROKE);
/* */ }
/* */
/* */ public void drawEllipse(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
/* */ throws Exception
/* */ {
/* 953 */ drawEllipse(paramFloat1, paramFloat2, paramFloat3, paramFloat4, Operation.STROKE);
/* */ }
/* */
/* */ public void fillEllipse(double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4)
/* */ throws Exception
/* */ {
/* 970 */ drawEllipse((float)paramDouble1, (float)paramDouble2, (float)paramDouble3, (float)paramDouble4, Operation.FILL);
/* */ }
/* */
/* */ public void fillEllipse(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
/* */ throws Exception
/* */ {
/* 987 */ drawEllipse(paramFloat1, paramFloat2, paramFloat3, paramFloat4, Operation.FILL);
/* */ }
/* */
/* */ private void drawEllipse(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, char paramChar)
/* */ throws Exception
/* */ {
/* 1007 */ float f = 0.551784F;
/* */
/* 1010 */ moveTo(paramFloat1, paramFloat2 - paramFloat4);
/* */
/* 1012 */ appendPointXY(paramFloat1 + f * paramFloat3, paramFloat2 - paramFloat4);
/* 1013 */ appendPointXY(paramFloat1 + paramFloat3, paramFloat2 - f * paramFloat4);
/* 1014 */ appendPointXY(paramFloat1 + paramFloat3, paramFloat2);
/* 1015 */ append("c\n");
/* */
/* 1017 */ appendPointXY(paramFloat1 + paramFloat3, paramFloat2 + f * paramFloat4);
/* 1018 */ appendPointXY(paramFloat1 + f * paramFloat3, paramFloat2 + paramFloat4);
/* 1019 */ appendPointXY(paramFloat1, paramFloat2 + paramFloat4);
/* 1020 */ append("c\n");
/* */
/* 1022 */ appendPointXY(paramFloat1 - f * paramFloat3, paramFloat2 + paramFloat4);
/* 1023 */ appendPointXY(paramFloat1 - paramFloat3, paramFloat2 + f * paramFloat4);
/* 1024 */ appendPointXY(paramFloat1 - paramFloat3, paramFloat2);
/* 1025 */ append("c\n");
/* */
/* 1027 */ appendPointXY(paramFloat1 - paramFloat3, paramFloat2 - f * paramFloat4);
/* 1028 */ appendPointXY(paramFloat1 - f * paramFloat3, paramFloat2 - paramFloat4);
/* 1029 */ appendPointXY(paramFloat1, paramFloat2 - paramFloat4);
/* 1030 */ append("c\n");
/* */
/* 1032 */ append(paramChar);
/* 1033 */ append('\n');
/* */ }
/* */
/* */ public void drawPoint(Point paramPoint)
/* */ throws Exception
/* */ {
/* 1043 */ if (paramPoint.shape != -1)
/* */ {
/* 1045 */ if (paramPoint.shape == 0) {
/* 1046 */ if (paramPoint.fillShape) {
/* 1047 */ drawCircle(paramPoint.x, paramPoint.y, paramPoint.r, 'f');
/* */ }
/* */ else
/* 1050 */ drawCircle(paramPoint.x, paramPoint.y, paramPoint.r, 'S');
/* */ }
/* */ else
/* */ {
/* */ ArrayList localArrayList;
/* 1053 */ if (paramPoint.shape == 1) {
/* 1054 */ localArrayList = new ArrayList();
/* 1055 */ localArrayList.add(new Point(paramPoint.x, paramPoint.y - paramPoint.r));
/* 1056 */ localArrayList.add(new Point(paramPoint.x + paramPoint.r, paramPoint.y));
/* 1057 */ localArrayList.add(new Point(paramPoint.x, paramPoint.y + paramPoint.r));
/* 1058 */ localArrayList.add(new Point(paramPoint.x - paramPoint.r, paramPoint.y));
/* 1059 */ if (paramPoint.fillShape) {
/* 1060 */ drawPath(localArrayList, 'f');
/* */ }
/* */ else {
/* 1063 */ drawPath(localArrayList, 's');
/* */ }
/* */ }
/* 1066 */ else if (paramPoint.shape == 2) {
/* 1067 */ localArrayList = new ArrayList();
/* 1068 */ localArrayList.add(new Point(paramPoint.x - paramPoint.r, paramPoint.y - paramPoint.r));
/* 1069 */ localArrayList.add(new Point(paramPoint.x + paramPoint.r, paramPoint.y - paramPoint.r));
/* 1070 */ localArrayList.add(new Point(paramPoint.x + paramPoint.r, paramPoint.y + paramPoint.r));
/* 1071 */ localArrayList.add(new Point(paramPoint.x - paramPoint.r, paramPoint.y + paramPoint.r));
/* 1072 */ if (paramPoint.fillShape) {
/* 1073 */ drawPath(localArrayList, 'f');
/* */ }
/* */ else {
/* 1076 */ drawPath(localArrayList, 's');
/* */ }
/* */ }
/* 1079 */ else if (paramPoint.shape == 3) {
/* 1080 */ drawLine(paramPoint.x - paramPoint.r, paramPoint.y, paramPoint.x + paramPoint.r, paramPoint.y);
/* 1081 */ drawLine(paramPoint.x, paramPoint.y - paramPoint.r, paramPoint.x, paramPoint.y + paramPoint.r);
/* */ }
/* 1083 */ else if (paramPoint.shape == 9) {
/* 1084 */ localArrayList = new ArrayList();
/* 1085 */ localArrayList.add(new Point(paramPoint.x, paramPoint.y - paramPoint.r));
/* 1086 */ localArrayList.add(new Point(paramPoint.x + paramPoint.r, paramPoint.y + paramPoint.r));
/* 1087 */ localArrayList.add(new Point(paramPoint.x - paramPoint.r, paramPoint.y + paramPoint.r));
/* 1088 */ if (paramPoint.fillShape) {
/* 1089 */ drawPath(localArrayList, 'f');
/* */ }
/* */ else {
/* 1092 */ drawPath(localArrayList, 's');
/* */ }
/* */ }
/* 1095 */ else if (paramPoint.shape == 10) {
/* 1096 */ localArrayList = new ArrayList();
/* 1097 */ localArrayList.add(new Point(paramPoint.x - paramPoint.r, paramPoint.y - paramPoint.r));
/* 1098 */ localArrayList.add(new Point(paramPoint.x + paramPoint.r, paramPoint.y - paramPoint.r));
/* 1099 */ localArrayList.add(new Point(paramPoint.x, paramPoint.y + paramPoint.r));
/* 1100 */ if (paramPoint.fillShape) {
/* 1101 */ drawPath(localArrayList, 'f');
/* */ }
/* */ else {
/* 1104 */ drawPath(localArrayList, 's');
/* */ }
/* */ }
/* 1107 */ else if (paramPoint.shape == 11) {
/* 1108 */ localArrayList = new ArrayList();
/* 1109 */ localArrayList.add(new Point(paramPoint.x + paramPoint.r, paramPoint.y + paramPoint.r));
/* 1110 */ localArrayList.add(new Point(paramPoint.x - paramPoint.r, paramPoint.y));
/* 1111 */ localArrayList.add(new Point(paramPoint.x + paramPoint.r, paramPoint.y - paramPoint.r));
/* 1112 */ if (paramPoint.fillShape) {
/* 1113 */ drawPath(localArrayList, 'f');
/* */ }
/* */ else {
/* 1116 */ drawPath(localArrayList, 's');
/* */ }
/* */ }
/* 1119 */ else if (paramPoint.shape == 12) {
/* 1120 */ localArrayList = new ArrayList();
/* 1121 */ localArrayList.add(new Point(paramPoint.x - paramPoint.r, paramPoint.y - paramPoint.r));
/* 1122 */ localArrayList.add(new Point(paramPoint.x + paramPoint.r, paramPoint.y));
/* 1123 */ localArrayList.add(new Point(paramPoint.x - paramPoint.r, paramPoint.y + paramPoint.r));
/* 1124 */ if (paramPoint.fillShape) {
/* 1125 */ drawPath(localArrayList, 'f');
/* */ }
/* */ else {
/* 1128 */ drawPath(localArrayList, 's');
/* */ }
/* */ }
/* 1131 */ else if (paramPoint.shape == 4) {
/* 1132 */ drawLine(paramPoint.x - paramPoint.r, paramPoint.y, paramPoint.x + paramPoint.r, paramPoint.y);
/* */ }
/* 1134 */ else if (paramPoint.shape == 5) {
/* 1135 */ drawLine(paramPoint.x, paramPoint.y - paramPoint.r, paramPoint.x, paramPoint.y + paramPoint.r);
/* */ }
/* 1137 */ else if (paramPoint.shape == 8) {
/* 1138 */ drawLine(paramPoint.x - paramPoint.r, paramPoint.y - paramPoint.r, paramPoint.x + paramPoint.r, paramPoint.y + paramPoint.r);
/* 1139 */ drawLine(paramPoint.x - paramPoint.r, paramPoint.y + paramPoint.r, paramPoint.x + paramPoint.r, paramPoint.y - paramPoint.r);
/* */ }
/* 1141 */ else if (paramPoint.shape == 6) {
/* 1142 */ drawLine(paramPoint.x - paramPoint.r, paramPoint.y - paramPoint.r, paramPoint.x + paramPoint.r, paramPoint.y + paramPoint.r);
/* 1143 */ drawLine(paramPoint.x - paramPoint.r, paramPoint.y + paramPoint.r, paramPoint.x + paramPoint.r, paramPoint.y - paramPoint.r);
/* 1144 */ drawLine(paramPoint.x - paramPoint.r, paramPoint.y, paramPoint.x + paramPoint.r, paramPoint.y);
/* 1145 */ drawLine(paramPoint.x, paramPoint.y - paramPoint.r, paramPoint.x, paramPoint.y + paramPoint.r);
/* */ }
/* 1147 */ else if (paramPoint.shape == 7) {
/* 1148 */ float f1 = 0.3141593F;
/* 1149 */ float f2 = (float)Math.sin(f1);
/* 1150 */ float f3 = (float)Math.cos(f1);
/* 1151 */ float f4 = paramPoint.r * f3;
/* 1152 */ float f5 = paramPoint.r * f2;
/* 1153 */ float f6 = 2.0F * f4 * f2;
/* 1154 */ float f7 = 2.0F * f4 * f3 - paramPoint.r;
/* 1155 */ localArrayList = new ArrayList();
/* 1156 */ localArrayList.add(new Point(paramPoint.x, paramPoint.y - paramPoint.r));
/* 1157 */ localArrayList.add(new Point(paramPoint.x + f6, paramPoint.y + f7));
/* 1158 */ localArrayList.add(new Point(paramPoint.x - f4, paramPoint.y - f5));
/* 1159 */ localArrayList.add(new Point(paramPoint.x + f4, paramPoint.y - f5));
/* 1160 */ localArrayList.add(new Point(paramPoint.x - f6, paramPoint.y + f7));
/* 1161 */ if (paramPoint.fillShape) {
/* 1162 */ drawPath(localArrayList, 'f');
/* */ }
/* */ else
/* 1165 */ drawPath(localArrayList, 's');
/* */ }
/* */ }
/* */ }
/* */ }
/* */
/* */ public void setTextRenderingMode(int paramInt)
/* */ throws Exception
/* */ {
/* 1178 */ if ((paramInt >= 0) && (paramInt <= 7)) {
/* 1179 */ this.renderingMode = paramInt;
/* */ }
/* */ else
/* 1182 */ throw new Exception("Invalid text rendering mode: " + paramInt);
/* */ }
/* */
/* */ public void setTextDirection(int paramInt)
/* */ throws Exception
/* */ {
/* 1193 */ if (paramInt > 360) paramInt %= 360;
/* 1194 */ if (paramInt == 0) {
/* 1195 */ this.tm = new float[] { 1.0F, 0.0F, 0.0F, 1.0F };
/* */ }
/* 1197 */ else if (paramInt == 90) {
/* 1198 */ this.tm = new float[] { 0.0F, 1.0F, -1.0F, 0.0F };
/* */ }
/* 1200 */ else if (paramInt == 180) {
/* 1201 */ this.tm = new float[] { -1.0F, 0.0F, 0.0F, -1.0F };
/* */ }
/* 1203 */ else if (paramInt == 270) {
/* 1204 */ this.tm = new float[] { 0.0F, -1.0F, 1.0F, 0.0F };
/* */ }
/* 1206 */ else if (paramInt == 360) {
/* 1207 */ this.tm = new float[] { 1.0F, 0.0F, 0.0F, 1.0F };
/* */ }
/* */ else {
/* 1210 */ float f1 = (float)Math.sin(paramInt * 0.0174532925199433D);
/* 1211 */ float f2 = (float)Math.cos(paramInt * 0.0174532925199433D);
/* 1212 */ this.tm = new float[] { f2, f1, -f1, f2 };
/* */ }
/* */ }
/* */
/* */ public void bezierCurveTo(Point paramPoint1, Point paramPoint2, Point paramPoint3)
/* */ throws IOException
/* */ {
/* 1227 */ append(paramPoint1);
/* 1228 */ append(paramPoint2);
/* 1229 */ append(paramPoint3);
/* 1230 */ append("c\n");
/* */ }
/* */
/* */ public void setTextStart()
/* */ throws IOException
/* */ {
/* 1239 */ append("BT\n");
/* */ }
/* */
/* */ public void setTextLocation(float paramFloat1, float paramFloat2)
/* */ throws IOException
/* */ {
/* 1251 */ append(paramFloat1);
/* 1252 */ append(' ');
/* 1253 */ append(this.height - paramFloat2);
/* 1254 */ append(" Td\n");
/* */ }
/* */
/* */ public void setTextBegin(float paramFloat1, float paramFloat2) throws IOException
/* */ {
/* 1259 */ append("BT\n");
/* 1260 */ append(paramFloat1);
/* 1261 */ append(' ');
/* 1262 */ append(this.height - paramFloat2);
/* 1263 */ append(" Td\n");
/* */ }
/* */
/* */ public void setTextLeading(float paramFloat)
/* */ throws IOException
/* */ {
/* 1274 */ append(paramFloat);
/* 1275 */ append(" TL\n");
/* */ }
/* */
/* */ public void setCharSpacing(float paramFloat) throws IOException
/* */ {
/* 1280 */ append(paramFloat);
/* 1281 */ append(" Tc\n");
/* */ }
/* */
/* */ public void setWordSpacing(float paramFloat) throws IOException
/* */ {
/* 1286 */ append(paramFloat);
/* 1287 */ append(" Tw\n");
/* */ }
/* */
/* */ public void setTextScaling(float paramFloat) throws IOException
/* */ {
/* 1292 */ append(paramFloat);
/* 1293 */ append(" Tz\n");
/* */ }
/* */
/* */ public void setTextRise(float paramFloat) throws IOException
/* */ {
/* 1298 */ append(paramFloat);
/* 1299 */ append(" Ts\n");
/* */ }
/* */
/* */ public void setTextFont(Font paramFont) throws IOException
/* */ {
/* 1304 */ this.font = paramFont;
/* 1305 */ append("/F");
/* 1306 */ append(paramFont.objNumber);
/* 1307 */ append(' ');
/* 1308 */ append(paramFont.size);
/* 1309 */ append(" Tf\n");
/* */ }
/* */
/* */ public void println(String paramString)
/* */ throws IOException
/* */ {
/* 1318 */ print(paramString);
/* 1319 */ println();
/* */ }
/* */
/* */ public void print(String paramString)
/* */ throws IOException
/* */ {
/* 1328 */ if (this.font == null) {
/* 1329 */ return;
/* */ }
/* 1331 */ append("[<");
/* 1332 */ drawString(this.font, paramString);
/* 1333 */ append(">] TJ\n");
/* */ }
/* */
/* */ public void println()
/* */ throws IOException
/* */ {
/* 1342 */ append("T*\n");
/* */ }
/* */
/* */ public void setTextEnd()
/* */ throws IOException
/* */ {
/* 1351 */ append("ET\n");
/* */ }
/* */
/* */ public void drawRectRoundCorners(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, float paramFloat5, float paramFloat6, char paramChar)
/* */ throws Exception
/* */ {
/* 1363 */ float f = 0.551784F;
/* */
/* 1365 */ ArrayList localArrayList = new ArrayList();
/* */
/* 1368 */ localArrayList.add(new Point(paramFloat1 + paramFloat3 - paramFloat5, paramFloat2));
/* 1369 */ localArrayList.add(new Point(paramFloat1 + paramFloat3 - paramFloat5 + f * paramFloat5, paramFloat2, true));
/* 1370 */ localArrayList.add(new Point(paramFloat1 + paramFloat3, paramFloat2 + paramFloat6 - f * paramFloat6, true));
/* 1371 */ localArrayList.add(new Point(paramFloat1 + paramFloat3, paramFloat2 + paramFloat6));
/* */
/* 1373 */ localArrayList.add(new Point(paramFloat1 + paramFloat3, paramFloat2 + paramFloat4 - paramFloat6));
/* 1374 */ localArrayList.add(new Point(paramFloat1 + paramFloat3, paramFloat2 + paramFloat4 - paramFloat6 + f * paramFloat6, true));
/* 1375 */ localArrayList.add(new Point(paramFloat1 + paramFloat3 - f * paramFloat5, paramFloat2 + paramFloat4, true));
/* 1376 */ localArrayList.add(new Point(paramFloat1 + paramFloat3 - paramFloat5, paramFloat2 + paramFloat4));
/* */
/* 1378 */ localArrayList.add(new Point(paramFloat1 + paramFloat5, paramFloat2 + paramFloat4));
/* 1379 */ localArrayList.add(new Point(paramFloat1 + paramFloat5 - f * paramFloat5, paramFloat2 + paramFloat4, true));
/* 1380 */ localArrayList.add(new Point(paramFloat1, paramFloat2 + paramFloat4 - f * paramFloat6, true));
/* 1381 */ localArrayList.add(new Point(paramFloat1, paramFloat2 + paramFloat4 - paramFloat6));
/* */
/* 1383 */ localArrayList.add(new Point(paramFloat1, paramFloat2 + paramFloat6));
/* 1384 */ localArrayList.add(new Point(paramFloat1, paramFloat2 + paramFloat6 - f * paramFloat6, true));
/* 1385 */ localArrayList.add(new Point(paramFloat1 + f * paramFloat5, paramFloat2, true));
/* 1386 */ localArrayList.add(new Point(paramFloat1 + paramFloat5, paramFloat2));
/* 1387 */ localArrayList.add(new Point(paramFloat1 + paramFloat3 - paramFloat5, paramFloat2));
/* */
/* 1389 */ drawPath(localArrayList, paramChar);
/* */ }
/* */
/* */ public void clipPath()
/* */ throws IOException
/* */ {
/* 1397 */ append("W\n");
/* 1398 */ append("n\n");
/* */ }
/* */
/* */ public void clipRect(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
/* */ throws IOException
/* */ {
/* 1404 */ moveTo(paramFloat1, paramFloat2);
/* 1405 */ lineTo(paramFloat1 + paramFloat3, paramFloat2);
/* 1406 */ lineTo(paramFloat1 + paramFloat3, paramFloat2 + paramFloat4);
/* 1407 */ lineTo(paramFloat1, paramFloat2 + paramFloat4);
/* 1408 */ clipPath();
/* */ }
/* */
/* */ public void save() throws IOException
/* */ {
/* 1413 */ append("q\n");
/* 1414 */ this.savedStates.add(new State(this.pen, this.brush, this.pen_width, this.line_cap_style, this.line_join_style, this.linePattern));
/* */ }
/* */
/* */ public void restore()
/* */ throws IOException
/* */ {
/* 1420 */ append("Q\n");
/* 1421 */ if (this.savedStates.size() > 0) {
/* 1422 */ State localState = (State)this.savedStates.remove(this.savedStates.size() - 1);
/* 1423 */ this.pen = localState.getPen();
/* 1424 */ this.brush = localState.getBrush();
/* 1425 */ this.pen_width = localState.getPenWidth();
/* 1426 */ this.line_cap_style = localState.getLineCapStyle();
/* 1427 */ this.line_join_style = localState.getLineJoinStyle();
/* 1428 */ this.linePattern = localState.getLinePattern();
/* */ }
/* */ }
/* */
/* */ public void setCropBox(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
/* */ {
/* 1445 */ this.cropBox = new float[] { paramFloat1, paramFloat2, paramFloat3, paramFloat4 };
/* */ }
/* */
/* */ public void setBleedBox(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
/* */ {
/* 1460 */ this.bleedBox = new float[] { paramFloat1, paramFloat2, paramFloat3, paramFloat4 };
/* */ }
/* */
/* */ public void setTrimBox(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
/* */ {
/* 1475 */ this.trimBox = new float[] { paramFloat1, paramFloat2, paramFloat3, paramFloat4 };
/* */ }
/* */
/* */ public void setArtBox(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
/* */ {
/* 1490 */ this.artBox = new float[] { paramFloat1, paramFloat2, paramFloat3, paramFloat4 };
/* */ }
/* */
/* */ private void appendPointXY(float paramFloat1, float paramFloat2) throws IOException
/* */ {
/* 1495 */ append(paramFloat1);
/* 1496 */ append(' ');
/* 1497 */ append(this.height - paramFloat2);
/* 1498 */ append(' ');
/* */ }
/* */
/* */ private void append(Point paramPoint) throws IOException
/* */ {
/* 1503 */ append(paramPoint.x);
/* 1504 */ append(' ');
/* 1505 */ append(this.height - paramPoint.y);
/* 1506 */ append(' ');
/* */ }
/* */
/* */ protected void append(String paramString) throws IOException
/* */ {
/* 1511 */ int i = paramString.length();
/* 1512 */ for (int j = 0; j < i; j++)
/* 1513 */ this.buf.write((byte)paramString.charAt(j));
/* */ }
/* */
/* */ protected void append(int paramInt)
/* */ throws IOException
/* */ {
/* 1519 */ append(Integer.toString(paramInt));
/* */ }
/* */
/* */ protected void append(float paramFloat) throws IOException
/* */ {
/* 1524 */ append(PDF.df.format(paramFloat));
/* */ }
/* */
/* */ protected void append(char paramChar) throws IOException
/* */ {
/* 1529 */ this.buf.write((byte)paramChar);
/* */ }
/* */
/* */ protected void append(byte paramByte) throws IOException
/* */ {
/* 1534 */ this.buf.write(paramByte);
/* */ }
/* */
/* */ public void append(byte[] paramArrayOfByte)
/* */ throws IOException
/* */ {
/* 1542 */ this.buf.write(paramArrayOfByte);
/* */ }
/* */
/* */ protected void drawString(Font paramFont, String paramString, float paramFloat1, float paramFloat2, Map paramMap)
/* */ throws Exception
/* */ {
/* 1552 */ setTextBegin(paramFloat1, paramFloat2);
/* 1553 */ setTextFont(paramFont);
/* */
/* 1555 */ StringBuilder localStringBuilder1 = new StringBuilder();
/* 1556 */ StringBuilder localStringBuilder2 = new StringBuilder();
/* 1557 */ for (int i = 0; i < paramString.length(); i++) {
/* 1558 */ char c = paramString.charAt(i);
/* 1559 */ if (Character.isLetterOrDigit(c)) {
/* 1560 */ printBuffer(localStringBuilder2, paramMap);
/* 1561 */ localStringBuilder1.append(c);
/* */ }
/* */ else {
/* 1564 */ printBuffer(localStringBuilder1, paramMap);
/* 1565 */ localStringBuilder2.append(c);
/* */ }
/* */ }
/* 1568 */ printBuffer(localStringBuilder1, paramMap);
/* 1569 */ printBuffer(localStringBuilder2, paramMap);
/* */
/* 1571 */ setTextEnd();
/* */ }
/* */
/* */ private void printBuffer(StringBuilder paramStringBuilder, Map paramMap)
/* */ throws Exception
/* */ {
/* 1578 */ String str = paramStringBuilder.toString();
/* 1579 */ if (str.length() > 0) {
/* 1580 */ if (paramMap.containsKey(str)) {
/* 1581 */ setBrushColor(((Integer)paramMap.get(str)).intValue());
/* */ }
/* */ else {
/* 1584 */ setBrushColor(0);
/* */ }
/* */ }
/* 1587 */ print(str);
/* 1588 */ paramStringBuilder.setLength(0);
/* */ }
/* */
/* */ protected void setStructElementsPageObjNumber(int paramInt)
/* */ throws Exception
/* */ {
/* 1594 */ for (StructElem localStructElem : this.structures)
/* 1595 */ localStructElem.pageObjNumber = paramInt;
/* */ }
/* */
/* */ public void addBMC(String paramString1, String paramString2, String paramString3)
/* */ throws Exception
/* */ {
/* 1604 */ addBMC(paramString1, null, paramString2, paramString3);
/* */ }
/* */
/* */ public void addBMC(String paramString1, String paramString2, String paramString3, String paramString4)
/* */ throws Exception
/* */ {
/* 1613 */ if (this.pdf.compliance == 2) {
/* 1614 */ StructElem localStructElem = new StructElem();
/* 1615 */ localStructElem.structure = paramString1;
/* 1616 */ localStructElem.mcid = this.mcid;
/* 1617 */ localStructElem.language = paramString2;
/* 1618 */ localStructElem.altDescription = paramString3;
/* 1619 */ localStructElem.actualText = paramString4;
/* 1620 */ this.structures.add(localStructElem);
/* */
/* 1622 */ append("/");
/* 1623 */ append(paramString1);
/* 1624 */ append(" <>\n");
/* 1627 */ append("BDC\n");
/* */ }
/* */ }
/* */
/* */ public void addEMC() throws Exception
/* */ {
/* 1633 */ if (this.pdf.compliance == 2)
/* 1634 */ append("EMC\n");
/* */ }
/* */
/* */ protected void addAnnotation(Annotation paramAnnotation)
/* */ {
/* 1640 */ this.annots.add(paramAnnotation);
/* 1641 */ if (this.pdf.compliance == 2) {
/* 1642 */ StructElem localStructElem = new StructElem();
/* 1643 */ localStructElem.structure = "Link";
/* 1644 */ localStructElem.language = paramAnnotation.language;
/* 1645 */ localStructElem.altDescription = paramAnnotation.altDescription;
/* 1646 */ localStructElem.actualText = paramAnnotation.actualText;
/* 1647 */ localStructElem.annotation = paramAnnotation;
/* 1648 */ this.structures.add(localStructElem);
/* */ }
/* */ }
/* */
/* */ protected void beginTransform(float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4)
/* */ throws Exception
/* */ {
/* 1655 */ append("q\n");
/* */
/* 1657 */ append(paramFloat3);
/* 1658 */ append(" 0 0 ");
/* 1659 */ append(paramFloat4);
/* 1660 */ append(' ');
/* 1661 */ append(paramFloat1);
/* 1662 */ append(' ');
/* 1663 */ append(paramFloat2);
/* 1664 */ append(" cm\n");
/* */
/* 1666 */ append(paramFloat3);
/* 1667 */ append(" 0 0 ");
/* 1668 */ append(paramFloat4);
/* 1669 */ append(' ');
/* 1670 */ append(paramFloat1);
/* 1671 */ append(' ');
/* 1672 */ append(paramFloat2);
/* 1673 */ append(" Tm\n");
/* */ }
/* */
/* */ protected void endTransform() throws Exception
/* */ {
/* 1678 */ append("Q\n");
/* */ }
/* */
/* */ public void drawContents(byte[] paramArrayOfByte, float paramFloat1, float paramFloat2, float paramFloat3, float paramFloat4, float paramFloat5)
/* */ throws Exception
/* */ {
/* 1689 */ beginTransform(paramFloat2, this.height - paramFloat5 * paramFloat1 - paramFloat3, paramFloat4, paramFloat5);
/* 1690 */ append(paramArrayOfByte);
/* 1691 */ endTransform();
/* */ }
/* */
/* */ public void drawString(Font paramFont, String paramString, float paramFloat1, float paramFloat2, float paramFloat3)
/* */ throws Exception
/* */ {
/* 1697 */ for (int i = 0; i < paramString.length(); i++)
/* 1698 */ drawString(paramFont, paramString.substring(i, i + 1), paramFloat1 += paramFloat3, paramFloat2);
/* */ }
/* */ }
/* Location: E:\EGGWIFI\Customer\trunk\src\Workspace\Customer\Customer Maven Webapp\src\main\webapp\WEB-INF\lib\PDFjet.jar
* Qualified Name: com.pdfjet.Page
* JD-Core Version: 0.6.2
*/