This is a snippet from old solution (C# .NET)
Code: Select all
public void SelectText(int docID, int page, int start, int length, bool ViewSelection = true, int Flags = 0)
{
int[] ar = new int[3];
object vDataIn = null;
object vDataOut = null;
if (_PdfActiveX != null)
{
_PdfActiveX.GetActiveDocument(out DocId);
ar[0] = start;
ar[1] = length;
if (ViewSelection)
ar[2] = 1;
else
ar[2] = 0;
vDataIn = ar;
Execute("Documents[#" + docID + "].Pages[" + page + "].Text", "Select", vDataIn, out vDataOut, Flags);
}
}
Code: Select all
public bool Execute(string obj, string cmd, object vDataIn, out object vDataOut, int flag)
{
try
{
_PdfActiveX.DoVerb(obj, cmd, vDataIn, out vDataOut, flag);
return true;
}
catch (Exception ex)
{
LastError = System.Runtime.InteropServices.Marshal.GetHRForException(ex);
log.Debug("PDF Execute " + cmd + " ERROR");
vDataOut = null;
return false;
}
}
Another issue we're facing is that the documentation of core-level functions is, in most cases, a mere automated documentation with no clear referrals to COM objects. The most valuable information, in these cases, is variable naming... and that's not much to work with.
Top level editor functions, however, are better documented and accompanied with some code samples.
Is there another documentation source, or developer guide other than online docs?
Thanks in advance,
Fabrizio