/* * $Id$ * Copyright (C) 2001-2002 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. */ package org.apache.fop.pdf; // Java import java.io.IOException; import java.io.OutputStream; /** * PDF Form XObject * * A derivative of the PDFXObject, is a PDF Stream that has not only a * dictionary but a stream of image data. */ public class PDFFormXObject extends PDFXObject { private PDFStream contents; private String resRef; /** * create a FormXObject with the given number and name and load the * image in the object * * @param number the pdf object number * @param xnumber the pdf object X number * @param cont the pdf stream contents */ public PDFFormXObject(int number, int xnumber, PDFStream cont, String ref) { super(number, xnumber, null); contents = cont; resRef = ref; } /** * Output the form stream as PDF. * This sets up the form XObject dictionary and adds the content * data stream. * * @param stream the output stream to write the data * @throws IOException if there is an error writing the data * @return the length of the data written */ protected int output(OutputStream stream) throws IOException { int length = 0; String dictEntries = contents.applyFilters(); String p = this.number + " " + this.generation + " obj\n"; p = p + "<>\n"; // push the pdf dictionary on the writer byte[] pdfBytes = p.getBytes(); stream.write(pdfBytes); length += pdfBytes.length; // push all the image data on the writer // and takes care of length for trailer length += contents.outputStreamData(stream); pdfBytes = ("endobj\n").getBytes(); stream.write(pdfBytes); length += pdfBytes.length; // let it gc // this object is retained as a reference to inserting // the same image but the image data is no longer needed contents = null; return length; } } ress-4.20.0 The official jQuery user interface library: https://github.com/jquery/jquery-uiwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/demos/menu/index.html
blob: 431926d357f22d64710f07c1cc1ccde4c62fd355 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>jQuery UI Menu Demos</title>
</head>
<body>

<ul>
	<li><a href="default.html">Default functionality</a></li>
	<li><a href="icons.html">Icons</a></li>
	<li><a href="categories.html">Categories</a></li>
</ul>

</body>
</html>