我正在使用报价软件,我使用mpdf使用HTML格式生成报价.标题由以下代码设置.
$mpdf->SetHTMLHeader($header);
$mpdf=>SetHTMLFooter($footer);
Run Code Online (Sandbox Code Playgroud)
这适用于所有页面.但我需要不同的标题到第一页.我应该如何实现它?
我正在使用spring 3.1和注释开发应用程序.
我写的模型如下
package servlet.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.validator.constraints.NotEmpty;
@Entity
@Table(name="products")
public class Product {
@Id
@GeneratedValue
private Integer product_id;
@NotEmpty(message = "Category should not be blank.")
private String cat_id;
@NotEmpty(message = "Name should not be blank.")
private String product_name;
private String specification;
@NotEmpty(message = "Purchase Price should not be blank.")
private double purchase_price;
@NotEmpty(message = "Sales Price should not be blank.")
private double sales_price;
@NotEmpty(message = "Stock should not be blank.") …Run Code Online (Sandbox Code Playgroud)