Server 2013

Bookmarks
AddFileBookmark
AddLinkedPDFBookmark
AddPageBookmark
AddURLBookmark
Color
ConvertCMYKToRGB
UCRandBGInfo
Convert to PDF
ConvertImageToPDF
ConvertPCLToPDF
ConvertPSToPDF
ConvertXPSToPDF
Debug
Debug
TestPrintToPDF
Digital Certificates
InvisiblySignFile
Email
AddEMail
AddEMailAttachment
AddToBcc
AddToCC
ClearEmailAttachments
ClearEMails
EMailAttachOutput
EMailReadReceipt
EMailSubject
RemoveEMail
SetEMailBody
SetRecipientInfo
SetReplyToInfo
SetSenderInfo
SetSMTPCredentials
SetSMTPInfo
FTP
AddFTPAttachment
AddFTPRequest
ClearFTPAttachments
ClearFTPs
FTPAttachOutput
RemoveFTP
SetFTPCredentials
File Output
NewDocumentName
NewUniqueID
OutputDirectory
Fonts
EmbedAllFonts
EmbedBase14Fonts
SubsetFonts
Image Quality
ColorImageDownsampleThreshold
ColorImageDownsampleType
ColorImageFilter
ColorImageResolution
GrayImageDownsampleThreshold
GrayImageDownsampleType
GrayImageFilter
GrayImageResolution
MonoImageDownsampleThreshold
MonoImageDownsampleType
MonoImageFilter
MonoImageResolution
Metadata
SetMetadata
Other Output Options
ASCIIEncode
PreserveHalftone
PreserveOverprint
PreserveTransferFunction
PDF Quality
Resolution
PDF Specification
CompatibilityLevel
Format
PS Commands
AddPDFMark
ClearPDFMarks
Page Control
AutoRotate
Print to PDF
BeginPrintToPDF
EndPrintToPDF
Security (PDF)
SetPDFSecurity
SetPDFSecurity128
SetPDFSecurityAES
Stamping
AddStampCollection
AddStampImage
AddStampText
ClearStampCollections
RemoveStampCollection
SetStampColor
SetStampStrokeColor
StampBackground
StampColorNET
StampFillMode
StampFont
StampFontSize
StampFontTransparency
StampRotation
StampStrokeColorNET
Timeout
Timeout
TimeoutSpan
View
SetViewMode
Web View
LinearizePDF

SetReplyToInfo

Example code is for an older version of Server, newer code is available.
<!-- Copyright (c) 2019 ActivePDF, Inc. -->
<!-- ActivePDF Server 2013 -->
<!-- Example generated 06/20/19  -->

<!-- Example uses the .NET DLL which requires -->
<!-- Coldfusion 8 or above -->

<CFSCRIPT>
// Get current path
strPath = ExpandPath(".") & "\";

// Instantiate Object
oSVR = CreateObject(".NET", "APServer.Server", "C:\Program Files\activePDF\Server\bin\APServer.Net35.dll");

// Add an email
oSVR.AddEMail();

// Set server information
oSVR.SetSMTPInfo("0.0.0.0", 25);
oSVR.SetSMTPCredentials("john.doe", "activePDF", "asdfasdf");

// Set email addresses
oSVR.SetSenderInfo("John Doe", "john.doe@asdidlwenra.com");
oSVR.SetReplyToInfo("John Doe", "john.doe@asdidlwenra.com");
oSVR.SetRecipientInfo("Jane Doe", "jane.doe@asdidlwenra.com");
oSVR.AddToCC("Jim Doe", "jim.doe@asdidlwenra.com");
oSVR.AddToBcc("Janice Doe", "janice.doe@asdidlwenra.com");

// Subject and Body
oSVR.Set_EMailSubject("PDF Delivery from activePDF");
oSVR.SetEMailBody("Here is your PDF!", false);

// Attachments - Binary attachments can be added with AddEMailBinaryAttachment
oSVR.AddEMailAttachment(strPath & "x.pdf");

// Other email options
oSVR.Set_EMailReadReceipt(false);
oSVR.Set_EMailAttachOutput(true);

// Path and filename of output
oSVR.Set_OutputDirectory(strPath);
oSVR.Set_NewDocumentName("email.pdf");

// Start the print job
results = oSVR.BeginPrintToPDF();
if(results.Get_ServerStatus() != "Success") {
  Error("BeginPrintToPDF", results, results.Get_ServerStatus());
}

// Here is where you can print to activePDF Server to create
// a PDF from any print job, set your application to print to
// a static activePDF Server printer or call oSVR.NewPrinterName
// to dynamically create a new printer on the fly
// This example simply calls oSVR.TestPrintToPDF for testing purposes
results = oSVR.TestPrintToPDF("Hello World!");
if(results.Get_ServerStatus() != "Success") {
  Error("TestPrintToPDF", results, results.Get_ServerStatus());
}

// Wait(seconds) for job to complete
results = oSVR.EndPrintToPDF(30);
if(results.Get_ServerStatus() != "Success") {
  Error("EndPrintToPDF", results, results.Get_ServerStatus());
}

// If running multiple conversions in one instance:
// One email can be removed before the next conversion
oSVR.RemoveEMail("john.doe@activepdf.com");
// An attachment can be removed
oSVR.ClearEMailAttachments();
// or all emails can be removed
oSVR.ClearEMails();

// Release Object
oSVR = 0;

// Process Complete
WriteOutput("Done!");

// Error Handling
Function Error(method, oResults, errorStatus) {
  WriteOutput("Error with " & method & ": <br/>"
    & errorStatus &  "<br/>"
    & oResults.Get_details());
}
</CFSCRIPT>

Copyright © 2019 ActivePDF, Inc