Package com.itextpdf.text.pdf

Examples of com.itextpdf.text.pdf.PdfIndirectReference


            PdfArray cert = new PdfArray();
            PdfDictionary vri = new PdfDictionary();
            for (byte[] b : validated.get(vkey).crls) {
                PdfStream ps = new PdfStream(b);
                ps.flateCompress();
                PdfIndirectReference iref = writer.addToBody(ps, false).getIndirectReference();
                crl.add(iref);
                crls.add(iref);
            }
            for (byte[] b : validated.get(vkey).ocsps) {
                PdfStream ps = new PdfStream(b);
                ps.flateCompress();
                PdfIndirectReference iref = writer.addToBody(ps, false).getIndirectReference();
                ocsp.add(iref);
                ocsps.add(iref);
            }
            for (byte[] b : validated.get(vkey).certs) {
                PdfStream ps = new PdfStream(b);
                ps.flateCompress();
                PdfIndirectReference iref = writer.addToBody(ps, false).getIndirectReference();
                cert.add(iref);
                certs.add(iref);
            }
            if (ocsp.size() > 0)
                vri.put(PdfName.OCSP, writer.addToBody(ocsp, false).getIndirectReference());
View Full Code Here


  public PdfIndirectReference addAsset(String name, PdfFileSpecification fs)
    throws IOException {
    if (assetsmap == null)
      throw new IllegalPdfSyntaxException(
        "You can't add assets to reused RichMediaContent.");
    PdfIndirectReference ref = writer.addToBody(fs).getIndirectReference();
    assetsmap.put(name, ref);
    return ref;
  }
View Full Code Here

   */
  public PdfIndirectReference addConfiguration(RichMediaConfiguration configuration) throws IOException {
    if (configurations == null)
      throw new IllegalPdfSyntaxException(
        "You can't add configurations to reused RichMediaContent.");
    PdfIndirectReference ref = writer.addToBody(configuration).getIndirectReference();
    configurations.add(ref);
    return ref;
  }
View Full Code Here

   */
  public PdfIndirectReference addView(PdfDictionary view) throws IOException {
    if (views == null)
      throw new IllegalPdfSyntaxException(
        "You can't add views to reused RichMediaContent.");
    PdfIndirectReference ref = writer.addToBody(view).getIndirectReference();
    views.add(ref);
    return ref;
  }
View Full Code Here

            PdfArray cert = new PdfArray();
            PdfDictionary vri = new PdfDictionary();
            for (byte[] b : validated.get(vkey).crls) {
                PdfStream ps = new PdfStream(b);
                ps.flateCompress();
                PdfIndirectReference iref = writer.addToBody(ps, false).getIndirectReference();
                crl.add(iref);
                crls.add(iref);
            }
            for (byte[] b : validated.get(vkey).ocsps) {
                PdfStream ps = new PdfStream(b);
                ps.flateCompress();
                PdfIndirectReference iref = writer.addToBody(ps, false).getIndirectReference();
                ocsp.add(iref);
                ocsps.add(iref);
            }
            for (byte[] b : validated.get(vkey).certs) {
                PdfStream ps = new PdfStream(b);
                ps.flateCompress();
                PdfIndirectReference iref = writer.addToBody(ps, false).getIndirectReference();
                cert.add(iref);
                certs.add(iref);
            }
            if (ocsp.size() > 0)
                vri.put(PdfName.OCSP, writer.addToBody(ocsp, false).getIndirectReference());
View Full Code Here

  public PdfIndirectReference addAsset(String name, PdfFileSpecification fs)
    throws IOException {
    if (assetsmap == null)
      throw new IllegalPdfSyntaxException(
        "You can't add assets to reused RichMediaContent.");
    PdfIndirectReference ref = writer.addToBody(fs).getIndirectReference();
    assetsmap.put(name, ref);
    return ref;
  }
View Full Code Here

   */
  public PdfIndirectReference addConfiguration(RichMediaConfiguration configuration) throws IOException {
    if (configurations == null)
      throw new IllegalPdfSyntaxException(
        "You can't add configurations to reused RichMediaContent.");
    PdfIndirectReference ref = writer.addToBody(configuration).getIndirectReference();
    configurations.add(ref);
    return ref;
  }
View Full Code Here

   */
  public PdfIndirectReference addView(PdfDictionary view) throws IOException {
    if (views == null)
      throw new IllegalPdfSyntaxException(
        "You can't add views to reused RichMediaContent.");
    PdfIndirectReference ref = writer.addToBody(view).getIndirectReference();
    views.add(ref);
    return ref;
  }
View Full Code Here

    }
    PdfObject object = node.getPdfObject();
    PdfObjectTreeNode leaf;
    switch (object.type()) {
    case PdfObject.INDIRECT:
      PdfIndirectReference ref = (PdfIndirectReference)object;
      leaf = getNode(ref.getNumber());
      addNodes(node, leaf);
      if (leaf instanceof PdfPagesTreeNode)
        expandNode(leaf);
      return;
    case PdfObject.ARRAY:
View Full Code Here

      if (structParent == null)
        return;
      PdfStream stream = ap.getAsStream(PdfName.N);
      if (stream == null)
        return;
      PdfIndirectReference xobjr = ap.getAsIndirectObject(PdfName.N);
      if (xobjr == null)
        return;
      // remove the annotation from the page
      for (int i = 0; i < annots.size(); i++) {
        PdfIndirectReference annotref = annots.getAsIndirectObject(i);
        if (item.getObjRef().getNumber() == annotref.getNumber()) {
          annots.remove(i);
          break;
        }
      }
      // replace the existing attributes by a PrintField attribute
View Full Code Here

TOP

Related Classes of com.itextpdf.text.pdf.PdfIndirectReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.