Beispiel #1
0
  /** Translate a PRStream to a PdfStream. The data part copies itself. */
  protected PdfStream copyStream(PRStream in) throws IOException, BadPdfFormatException {
    PRStream out = new PRStream(in, null);

    for (Iterator it = in.getKeys().iterator(); it.hasNext(); ) {
      PdfName key = (PdfName) it.next();
      PdfObject value = in.get(key);
      out.put(key, copyObject(value));
    }

    return out;
  }
Beispiel #2
0
  /** Translate a PRStream to a PdfStream. The data part copies itself. */
  protected PdfStream copyStream(PRStream in) throws IOException, BadPdfFormatException {
    PRStream out = new PRStream(in, null);

    for (Object element : in.getKeys()) {
      PdfName key = (PdfName) element;
      PdfObject value = in.get(key);
      out.put(key, copyObject(value));
    }

    return out;
  }