All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adobe.fd.fp.service.FormsPortalPDFRenderService Maven / Gradle / Ivy

/*************************************************************************
*
* ADOBE CONFIDENTIAL
* ___________________
*
*  Copyright 2015 Adobe Systems Incorporated
*  All Rights Reserved.
*
* NOTICE:  All information contained herein is, and remains
* the property of Adobe Systems Incorporated and its suppliers,
* if any.  The intellectual and technical concepts contained
* herein are proprietary to Adobe Systems Incorporated and its
* suppliers and are protected by trade secret or copyright law.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe Systems Incorporated.
***************************************************************************/


package com.adobe.fd.fp.service;

import java.util.List;

import javax.jcr.Node;

import com.adobe.forms.common.service.FileAttachmentWrapper;
import com.adobe.fd.fp.exception.FormsPortalException;


/**
 *
 * @pad.exclude excluded
 */
public interface FormsPortalPDFRenderService {

	/**
	 * When you have form node, data to fill and attachments with you and looking for a document of record
	 * @param formNode Ideally this should be a form node under /content/dam/formsanddocuments
	 * @param data Data submitted by the end user
	 * @param attachments List of attachment wrapper class
	 * @return Document of record's pdf bytes
	 * @throws FormsPortalException
	 */

	public byte[] getDorFromNode(Node formNode, byte[] data, List attachments, String locale) throws FormsPortalException;
	
	/**
	 * When we need DoR bytes by stitching attachments to already processed pdf
	 * @param formName
	 * @param pdfBytes
	 * @param attachments
	 * @return
	 * @throws FormsPortalException
	 */
	public byte[] getDorFromPdf(String formName, byte[] pdfBytes, List attachments) throws FormsPortalException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy