view pdf in asp net mvc : Add link to pdf SDK application service wpf azure windows dnn TIB_bwpluginpdf_1.0_users_guide4-part115

TIBCO ActiveMatrix BusinessWorks Plug-in for PDF User’s Guide
PDFReader Processes
|
27
Exception_OutputMismatch Process
This process demonstrates how the Plug-in throws exceptions when an input file 
mismatches a PDF template file.
Figure7 illustrates the Exception_OutputMismatch process definition.
Figure 7   Exception_OutputMismatch Process
Log_IncorrectPDF
Password
Writes exceptions to a log file.
Throw_IncorrectPDF
Password
Generates an error and causes an immediate 
transition to any error transitions.
Table9   Activities in the Exception_IncorrectPDFPassword Process (Cont’d)
Activity
Description
Add link to pdf - insert, remove PDF links in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Free C# example code is offered for users to edit PDF document hyperlink (url), like inserting and deleting
adding a link to a pdf in preview; convert a word document to pdf with hyperlinks
Add link to pdf - VB.NET PDF url edit library: insert, remove PDF links in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Help to Insert a Hyperlink to Specified PDF Document Page
convert excel to pdf with hyperlinks; clickable links in pdf files
TIBCO ActiveMatrix BusinessWorks Plug-in for PDF User’s Guide
28
|
Chapter 4  Sample Projects
Table 10 lists the activities in the process.
Table10   Activities in the Exception_OutputMismatch Process
Activity
Description
Start
Starts the process.
PDF Reader
Reads a PDF template file and creates a template schema. 
Based on the PDF template file and schema, parse and read 
the input PDF files in the Input tab.
End
Ends the process.
Catch_Output
Mismatch
Receives control of execution when the output does not 
match the input, and transits the exception to the next 
activity. 
Log_Output
Mismatch
Writes exceptions to a log file.
Throw_Output
Mismatch
Generates an error and causes an immediate transition to 
any error transitions.
C# PDF Library SDK to view, edit, convert, process PDF file for C#
editing PDF document hyperlink (url) and quick navigation link in PDF bookmark. C#.NET: Edit PDF Metadata. PDF SDK for .NET allows you to read, add, edit, update
pdf links; add links pdf document
RasterEdge .NET Document Imaging Trial Package Download Link.
Extract; C# Read: PDF Image Extract; C# Write: Insert text into PDF; C# Write: Add Image to PDF; C# Protect: Add Password to PDF; C#
add page number to pdf hyperlink; pdf email link
TIBCO ActiveMatrix BusinessWorks Plug-in for PDF User’s Guide
PDFWriter Processes
|
29
PDFWriter Processes
The processes in the PDFWriter folder show how to use TIBCO ActiveMatrix 
BusinessWorks Plug-in for PDF to encrypt and write data to PDF files. The 
PDFWriter folder contains OutPutDirEmpty Process, OutPutDirInvalid Process
PDFEncryption ProcessPDFWriter Process, and Watermark Process.
OutPutDirEmpty Process
This process demonstrates how the Plug-in performs when the output directory 
for the PDF file is empty.
Figure8 illustrates the OutPutDirEmpty process definition.
Figure 8   OutPutDirEmpty Process
Table 11 lists the activities in the process.
Table 11   Activities in the OutPutDirEmpty Process
Activity
Description
Start
Starts the activity.
PDF Writer
Writes data into the input PDF file.
End
Ends the activity
Catch_OutPut
DirEmpty
Catches errors automatically when the output directory 
written into the PDF Writer activity is empty.
C# PDF insert image Library: insert images into PDF in C#.net, ASP
C#.NET PDF SDK - Add Image to PDF Page in C#.NET. How to Insert & Add Image, Picture or Logo on PDF Page Using C#.NET. Add Image to PDF Page Using C#.NET.
pdf hyperlink; change link in pdf
VB.NET PDF insert image library: insert images into PDF in vb.net
VB.NET PDF - Add Image to PDF Page in VB.NET. Guide VB.NET Programmers How to Add Images in PDF Document Using XDoc.PDF SDK for VB.NET.
add url pdf; add link to pdf acrobat
TIBCO ActiveMatrix BusinessWorks Plug-in for PDF User’s Guide
30
|
Chapter 4  Sample Projects
OutPutDirInvalid Process
This process demonstrates how the Plug-in performs when the output directory 
for the PDF file is invalid.
Figure9 illustrates the OutPutDirInvalid process definition.
Figure 9   OutPutDirInvalid Process
Table 12 lists the activities in the process.
Log_OutPutDir
Empty
Records errors caught by the Catch_OutPutDirEmpty 
activity.
Throw_OutPut
DirEmpty
Throws out errors recorded by the Log_OutPutDirEmpty 
activity.
Table 11   Activities in the OutPutDirEmpty Process (Cont’d)
Activity
Description
Table 12   Activities in the OutPutDirInvalid Process
Activity
Description
Start
Starts the activity.
PDF Writer
Writes data into the input PDF file.
End
Ends the activity.
Catch_OutPut
DirInvalid
Catches errors automatically when the output directory 
written into the PDF Writer activity is invalid.
VB.NET PDF Password Library: add, remove, edit PDF file password
VB: Add Password to PDF with Permission Settings Applied. This VB.NET example shows how to add PDF file password with access permission setting.
add a link to a pdf in acrobat; pdf link to email
C# PDF Password Library: add, remove, edit PDF file password in C#
C# Sample Code: Add Password to PDF with Permission Settings Applied in C#.NET. This example shows how to add PDF file password with access permission setting.
add a link to a pdf in preview; pdf edit hyperlink
TIBCO ActiveMatrix BusinessWorks Plug-in for PDF User’s Guide
PDFWriter Processes
|
31
PDFEncryption Process
This process demonstrates how to encrypt PDF files in the PDF Writer activity. 
Figure10 illustrates the PDFEncryption process definition.
Figure 10   PDFEncryption Process
Table 13 lists the activities in the process.
PDFWriter Process
This process demonstrates how to generate filled or merged PDF files.
Figure11 illustrates the PDF Writer process definition.
Log_OutPutDir
Invalid
Records errors caught by the Catch_OutPutDirInvalid 
activity.
Throw_OutPut
DirInvalid
Throws out errors recorded by the Log_OutPutDirInvalid 
activity.
Table 12   Activities in the OutPutDirInvalid Process (Cont’d)
Activity
Description
Table 13   Activities in the PDFEncryption Process
Activity
Description
Start
Starts the activity.
PDF Writer
Writes data into the input PDF file.
End
Ends the activity.
How to C#: Basic SDK Concept of XDoc.PDF for .NET
You may add PDF document protection functionality into your C# of PDF document, including editing PDF url links and quick navigation link in bookmark
pdf link open in new window; add hyperlink to pdf
VB.NET PDF: Basic SDK Concept of XDoc.PDF
You may add PDF document protection functionality into your VB.NET of PDF document, including editing PDF url links and quick navigation link in bookmark
add email link to pdf; add hyperlinks to pdf
TIBCO ActiveMatrix BusinessWorks Plug-in for PDF User’s Guide
32
|
Chapter 4  Sample Projects
Figure 11   PDFWriter Process
Table 14 lists the activities in the process.
Table 14   Activities in the PDFWriter Process
Activity
Description
File Poller
Starts the process automatically when input files change. It 
supports batch processing files.
Parse XML
Parses the input file and passes the result to the PDF Writer 
activity.
PDF Writer
Writes data into the input PDF file.
End
Ends the activity.
TIBCO ActiveMatrix BusinessWorks Plug-in for PDF User’s Guide
PDFWriter Processes
|
33
Watermark Process
This process demonstrates how to assign watermark to the PDF file.
Figure12 illustrates the Watermark process definition.
Figure 12   Watermark Process
Table 15 lists the activities in the process.
Table 15   Activities in the Watermark Process
Activity
Description
File Poller
Starts the process automatically when input files change. It 
supports batch processing files.
Parse XML
Parses the input file and passes the validated file to the PDF 
Writer activity.
Read File
Reads the image file and passes the data content to the PDF 
Writer activity.
PDF Writer
Writes data into the input PDF file.
End
Ends the activity.
TIBCO ActiveMatrix BusinessWorks Plug-in for PDF User’s Guide
34
|
Chapter 4  Sample Projects
Setting Up and Testing the Sample Project
This section introduces how to set up and test the sample project, which consists 
of the following parts:
• Setting Up the Sample Project in TIBCO Designer
• Editing Global Variables
• Running the Process
• Expected Result
Setting Up the Sample Project in TIBCO Designer
To set up the sample project:
1. Start TIBCO Designer.
2. Click Open existing project in the TIBCO Designer window.
3. In the Open Project window, click Select a file from the file system   in the 
Multi-File Project tab to navigate to the sample project. The example project 
is located in the 
TIB_BWPLUGINPDF_HOME
\examples\PDFExample
directory.
4. Click OK.
The PDFExample project is displayed in the Project panel.
Editing Global Variables
After setting up the sample project, you need to edit the Global Variables before 
running the processes.
To update Global Variables:
1. Click the Global Variables tab.
2. Click Open Advanced Editor 
.
TIBCO ActiveMatrix BusinessWorks Plug-in for PDF User’s Guide
Setting Up and Testing the Sample Project
|
35
3. Expand the PDFExample folder and edit the following global variables values 
accordingly in the Value column:
— EncryptedPrefix
— GeneratedPDFs
— InputPDFEncrypted
— InputPDFFile
— InputPDFPassword
— PDFReaderFail
— PDFReaderFailEnc
— PDFWriterPrefix
— SamplePDFRead
— WatermarkFile
— WatermarkPrefix
— XMLInputs
4. Click OK when you finish editing.
5. Click Save.
Running the Process
After setting up the sample project and editing Global Variables, complete the 
following steps to run the processes:
1. In the Tester tab, click Start testing viewed process  .
2. In the Select Processes to Load window, select the check box of the process 
that you want to run.
3. Click Load Selected to run the process.
When the process is executed in the Test mode, the black transition arrows 
pointing to each activity turn green.
4. Click Stop testing   to stop the testing and return to the Design mode.
For detailed information on using the Test mode and setting breakpoints, see 
TIBCO ActiveMatrix BusinessWorks Process Design.
TIBCO ActiveMatrix BusinessWorks Plug-in for PDF User’s Guide
36
|
Chapter 4  Sample Projects
Expected Result
The expected result for processes varies depending on the configuration. All the 
generated PDF files are saved in the 
TIB_BWPLUGINPDF_HOME
\examples\PDFExample\PDFInputs\GeneratedPDF 
directory.
• If the EncryptedReader Process performs successfully, all the transition lines 
change to green, and a batch of PDF files in the 
TIB_BWPLUGINPDF_HOME
\examples\Samplefiles\PdfReader
directory are 
read by group. 
• When you run the Exception_IncorrectPDFPassword Process, the Catch 
activity receives control of execution from the PDF Reader activity, and the 
following error occurs:
- Job-
11000
Error in 
[PDFReader/Exception_IncorrectPDFPassword.process/Throw_Incorre
ctPDFPassword] java.lang.RuntimeExceptionInvalid password 
provided for decrypting input PDF file in Input tab
• When you run the Exception_OutputMismatch Process, the Catch activity 
receives control of execution from the PDF Reader activity, an activity error of 
output mismatch occurs.
• When you run the OutPutDirEmpty Process, the Catch activity receives 
control of execution from the PDF Writer activity, and the following error 
occurs:
- Job-
13000
Error in 
[PDFWriter/Exceptions/OutPutDirEmpty.process/Throw_OutPutDirEmp
ty] java.lang.RuntimeExceptionThe directory for output file has 
not been specified
• When you run the OutPutDirInvalid Process, the Catch activity receives 
control of execution from the PDF Writer activity, and the following error 
occurs:
- Job-
14000
Error in 
[PDFWriter/Exceptions/OutPutDirInvalid.process/Throw_OutPutDirI
nvalid] java.lang.RuntimeExceptioninvaliddir is not a valid 
directory in this file system
• If the PDFEncryption Process performs successfully, all the transition lines 
change to green, and the PDF Writer activity encrypts the PDF files. See the 
output data for detailed information.
• If the PDFWriter Process performs successfully, all the transition lines change 
to green, and output data contains detailed information.
Documents you may be interested
Documents you may be interested