Examples of Save


Examples of org.apache.pdfbox.contentstream.operator.state.Save

    public PrintImageLocations() throws IOException
    {
        addOperator(new Concatenate());
        addOperator(new DrawObject());
        addOperator(new SetGraphicsStateParameters());
        addOperator(new Save());
        addOperator(new Restore());
        addOperator(new SetMatrix());
    }
View Full Code Here

Examples of org.apache.pdfbox.contentstream.operator.state.Save

        addOperator(new BeginText());
        addOperator(new Concatenate());
        addOperator(new DrawObject()); // special text version
        addOperator(new EndText());
        addOperator(new SetGraphicsStateParameters());
        addOperator(new Save());
        addOperator(new Restore());
        addOperator(new NextLine());
        addOperator(new SetCharSpacing());
        addOperator(new MoveText());
        addOperator(new MoveTextSetLeading());
View Full Code Here

Examples of org.apache.pdfbox.contentstream.operator.state.Save

        addOperator(new SetNonStrokingDeviceCMYKColor());
        addOperator(new LineTo());
        addOperator(new MoveTo());
        addOperator(new SetLineMiterLimit());
        addOperator(new EndPath());
        addOperator(new Save());
        addOperator(new Restore());
        addOperator(new AppendRectangleToPath());
        addOperator(new SetStrokingDeviceRGBColor());
        addOperator(new SetNonStrokingDeviceRGBColor());
        addOperator(new SetRenderingIntent());
View Full Code Here

Examples of org.apache.pdfbox.contentstream.operator.state.Save

        addOperator(new SetNonStrokingColor());
        addOperator( new SetNonStrokingColorN());

        // Graphics state
        addOperator(new Restore());
        addOperator(new Save());

        // Text operators
        addOperator(new BeginText());
        addOperator(new EndText());
        addOperator(new SetFontAndSize());
View Full Code Here

Examples of org.docx4j.openpackaging.io3.Save

    File docxFile = new File(System.getProperty("user.dir") + "/zip.docx");
   
    ZipPartStore zps = new ZipPartStore();
    zps.setSourcePartStore(opc.getSourcePartStore());
   
    Save saver = new Save(opc, zps);
    FileOutputStream fos = null;
    try {
      fos = new FileOutputStream(docxFile);
      saver.save(fos);
    } catch (FileNotFoundException e) {
      throw new Docx4JException("Couldn't save " + docxFile.getPath(), e);
    } finally {
      IOUtils.closeQuietly(fos);
    }     
View Full Code Here

Examples of org.docx4j.openpackaging.io3.Save

        throw new Docx4JException("Exception marshalling document for output: " + e.getMessage(), e);
      }
    }
    else {
//      SaveToZipFile saver = new SaveToZipFile(wmlPackage);
      Save saver = new Save(this);
      saver.save(outStream);
    }
    new EventFinished(startEvent).publish();
 
View Full Code Here

Examples of org.docx4j.openpackaging.io3.Save

    // We want to save images as they're created, so define our saver
    File baseDir = new File(System.getProperty("user.dir") + "/OUT_unzipped");
    baseDir.mkdir(); // TODO: directory should be empty, since old images won't get overwritten
   
    UnzippedPartStore ups = new UnzippedPartStore(baseDir);
    Save saver = new Save(wordMLPackage, ups);
   
   
    // Apply the bindings
   
//    if (hyperlinkStyle!=null) {
//      BindingHandler.getHyperlinkResolver().setHyperlinkStyle(hyperlinkStyle);
//    }
    BindingHandler bh = new BindingHandler(wordMLPackage);
    bh.applyBindings(wordMLPackage.getMainDocumentPart());
   
    // If you inspect the output, you should see your data in 2 places:
    // 1. the custom xml part
    // 2. (more importantly) the main document part
    System.out.println(
        XmlUtils.marshaltoString(wordMLPackage.getMainDocumentPart().getJaxbElement(), true, true)
        );
   
    // Strip content controls
    // RemovalHandler rh = new RemovalHandler(); // NB: this only removes if OpenDoPE tags are present (they aren't in binding-simple.docx)
   
    //wordMLPackage.save(new java.io.File(outputfilepath) );
   
    saver.save(null);
    // now zip up that dir, and rename to docx.
  }
View Full Code Here

Examples of org.docx4j.openpackaging.io3.Save

    File baseDir = new File(System.getProperty("user.dir") + "/OUT");
    baseDir.mkdir();
   
    UnzippedPartStore ups = new UnzippedPartStore(baseDir);
    ups.setSourcePartStore(wordMLPackage.getSourcePartStore());
    Save saver = new Save(wordMLPackage, ups);
   
    saver.save(null);
  }
View Full Code Here

Examples of org.enhydra.jawe.base.controller.actions.Save

        langDepName = "Reopen";
        ja = new JaWEAction(action, icon, langDepName);
        componentAction.put("Reopen", ja);

        // Save
        action = new Save(comp);
        icon = new ImageIcon(ResourceManager.class.getClassLoader().getResource("org/enhydra/jawe/images/save.gif"));
        langDepName = "Save";
        ja = new JaWEAction(action, icon, langDepName);
        componentAction.put("Save", ja);
View Full Code Here

Examples of ru.spbu.math.ontologycomparison.zhukova.visualisation.ui.menuactions.Save

    }

    public AbstractAction[] getActions() {
        open = new Open();
        open.setMain(this);
        Save save = new Save();
        save.setMain(this);
        open.addListener(save);
        return new AbstractAction[]{open, save};
    }
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.