Examples of PdfIndirectReference


Examples of com.itextpdf.text.pdf.PdfIndirectReference

    this.structElem = structElem;
    this.ref = ref;
    this.obj = dict.getDirectObject(PdfName.OBJ);
    this.objref = dict.getAsIndirectObject(PdfName.OBJ);
    this.structParent = ((PdfDictionary)obj).getAsNumber(PdfName.STRUCTPARENT).intValue();
    PdfIndirectReference pg = dict.getAsIndirectObject(PdfName.PG);
    if (pg == null)
      pg = structElem.getAsIndirectObject(PdfName.PG);
    this.pageref = pg.getNumber();
  }
View Full Code Here

Examples of com.itextpdf.text.pdf.PdfIndirectReference

  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

Examples of com.itextpdf.text.pdf.PdfIndirectReference

   */
  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

Examples of com.itextpdf.text.pdf.PdfIndirectReference

   */
  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

Examples of com.itextpdf.text.pdf.PdfIndirectReference

  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

Examples of com.itextpdf.text.pdf.PdfIndirectReference

   */
  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

Examples of com.itextpdf.text.pdf.PdfIndirectReference

   */
  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

Examples of com.lowagie.text.pdf.PdfIndirectReference

    }
    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

Examples of com.lowagie.text.pdf.PdfIndirectReference

                        String anchorName = (String) entry.getKey();
                        dests.add(new PdfString(anchorName, PdfString.TEXT_UNICODE));

                        PdfDestination dest = createDestination(c, targetBox);
                        if (dest != null) {
                            PdfIndirectReference ref = _writer.addToBody(dest).getIndirectReference();
                            dests.add(ref);
                        }
                    }
                }

                if (!dests.isEmpty()) {
                    PdfDictionary nametree = new PdfDictionary();
                    nametree.put(PdfName.NAMES, dests);
                    PdfIndirectReference nameTreeRef = _writer.addToBody(nametree).getIndirectReference();

                    PdfDictionary names = new PdfDictionary();
                    names.put(PdfName.DESTS, nameTreeRef);
                    PdfIndirectReference destinationsRef = _writer.addToBody(names).getIndirectReference();

                    _writer.getExtraCatalog().put(PdfName.NAMES, destinationsRef);
                }
            } catch (IOException e) {
                throw new RuntimeException(e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.