summaryrefslogtreecommitdiff
path: root/platform/java/src/com/artifex/mupdf/fitz/DocumentWriter.java
blob: e1597d48e5b6999dafbe431831207d4be748148b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.artifex.mupdf.fitz;

public class DocumentWriter
{
	static {
		Context.init();
	}

	private long pointer;

	protected native void finalize();

	public void destroy() {
		finalize();
		pointer = 0;
	}

	private native long newNativeDocumentWriter(String filename, String format, String options);

	public DocumentWriter(String filename, String format, String options) {
		pointer = newNativeDocumentWriter(filename, format, options);
	}

	public native Device beginPage(Rect mediabox);
	public native void endPage();
	public native void close();
}