1 31 package org.pdfbox.pdmodel.common; 32 33 import java.io.IOException ; 34 import java.io.InputStream ; 35 36 import org.pdfbox.cos.COSStream; 37 38 import org.pdfbox.pdmodel.PDDocument; 39 40 46 public class PDMetadata extends PDStream 47 { 48 49 54 public PDMetadata( PDDocument document ) 55 { 56 super( document ); 57 getStream().setName( "Type", "Metadata" ); 58 getStream().setName( "Subtype", "XML" ); 59 } 60 61 70 public PDMetadata( PDDocument doc, InputStream str, boolean filtered ) throws IOException 71 { 72 super( doc, str, filtered ); 73 getStream().setName( "Type", "Metadata" ); 74 getStream().setName( "Subtype", "XML" ); 75 } 76 77 82 public PDMetadata( COSStream str ) 83 { 84 super( str ); 85 } 86 87 } | Popular Tags |