Call us on
+44 (0) 2077 545 948
Quickly and easily convert Notes to PDF. With only 2 lines of code any Notes / Domino content can be saved as PDF.
Download Now| DominoPDF Bindings - Notes To PDF from Java, VB, C# .NET, Visual Objects, FoxPro, Basic |
|
DominoPDF at its core is typically called via LotusScript, however it supports usage via a wide range of applications and development environments, such as Java, Visual Basic, C#, .NET, etc. The code below provides examples of typically usage and implementation. LotusScript Declare Function DoPDF Lib "DominoPDF.dll" Alias "DoPDF" (ByVal sURL As String, ByVal sPDF As String, ByVal sOptions As String) As Long Visual Basic Public Declare Function DoPDF Lib "DominoPDF.dll" Alias "DoPDF" (ByVal sURL As String, ByVal sPDF As String, ByVal sOptions As String) As Long C# .NET using System.Runtime.InteropServices; namespace Primeapple.DomPDF { public class DominoPDF { [DllImport("DominoPDF.dll")] static extern int DoPDF(string sURL, string sPDF, string sOptions); public int eDoPDF(string sURL, string sPDF, string sptions) { return DoPDF(URL, PDF, Options); } } } Java import lotus.domino.*; public class JavaAgent extends AgentBase { public native int DoPDF(String sInput, String sOutput, String sOptions); public void NotesMain() { try { System.loadLibrary("DominoPDF"); this.DoPDF("http://www.google.com", "c:\test.pdf", ""); } catch(Exception e) { e.printStackTrace(); } } } Visual Objects _DLL FUNCTION DoPDF ( sURL AS PSZ, sPDF AS PSZ, sOptions AS PSZ ) AS INT PASCAL:DominoPDF.DoPDF Visual FoxPro DECLARE Long DoPDF IN "DominoPDF.dll" AS "DoPDF" String sURL, String sPDF, String sOptions PowerBasic DECLARE FUNCTION DoPDF LIB "DominoPDF.DLL" ALIAS "DoPDF" (BYVAL sURL AS ASCIIZ, sPDF AS ASCIIZ, BYVAL sOptions AS ASCIIZ) AS LONG PureBasic #DOMPDF=1
Global FPDoPDF.l Procedure DomPDFInit(Path.s) If (Len(Path) > 0) And (Right(Path, 1) <> "\") Path = Path + "\" EndIf OpenLibrary(#DOMPDF, Path + "DominoPDF.dll"); FPDoPDF = IsFunction(#DOMPDF, "DoPDF") EndProcedure Procedure.l DoPDF(URL.s, PDF.s, OPTIONS.s) ProcedureReturn CallFunctionFast(FPDoPDF, URL, PDF, OPTIONS) EndProcedure Comments
(0)
|
| Home |
| Download |
| Case Studies |
| Testimonials |
| Contact Us |