Click or drag to resize

PFItemAttachPdfFile Method (PFFile, String)

This will create and persist a file in database and then link it into the fileHolder field value. You will need to save this item to persist the value in database. Note : this is different from .Files.Add() that will only create a non-yet-persisted instance of a file.

Namespace:  Packflow.Core
Assembly:  MicaSystems.Packflow.Core (in MicaSystems.Packflow.Core.dll) Version: 1.0.0.0 (3.2.0.306)
Syntax
C#
public PFFile AttachPdfFile(
	PFFile file,
	string fileHolderFieldName
)

Parameters

file
Type: Packflow.CorePFFile
Pdf file or Office document file (which will be converted to pdf)
fileHolderFieldName
Type: SystemString
Name of the field that will receive the file in this item.

Return Value

Type: PFFile
Persisted file
See Also