Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all 10848 articles
Browse latest View live

Re: Convert html to pdf

$
0
0

You're right to make licensing the first thing to check. A common issue is wanting to use the Acrobat SDK on a server. Since Acrobat is licensed per user, the potential on a server is that it has hundreds-to-millions of end users. To avoid this, Acrobat is simply not licensed for any kind of server use. If you want an enterprise server side product check out LiveCycle PDF Generator.


Re: Send and track for Outlook stopped working?

$
0
0

Has anyone gotten this fixed? This started happening to me yesterday.

Re: Does Acrobat SDK support extract hyperlink from PDF file?

$
0
0

This code get type of annotation is link:

  //Get each annotation on the page

  for (i2 = 0; i2 < PDPageGetNumAnnots(pdPage); i2++) {

  //Get a specific annotation

  annot = PDPageGetAnnot(pdPage,i2);

  if (PDAnnotIsValid(annot)){

  //Display subtype information about the annotation

  atom = PDAnnotGetSubtype(annot);

  //Cast the ASAtom object to a character pointer

  ptr = (char*) ASAtomGetString(atom);

  sprintf(buf, "The annotation’s subtype is %s", ptr);

  AVAlertNote (buf);

  }

  }

How can get link name ( ex: https://forums.adobe.com/ )?

Re: Does Acrobat SDK support extract hyperlink from PDF file?

$
0
0

1. Study the PDF Reference to see the relationship between actions and annotations. There are many types of action, and you seem to be interested in only one type; but you need to check whether there is an action and its type. There are also "additional actions" you can probably ignore for your purposes.

2. See whether you can use PDAction methods to get the information you need. This will be easier than 3.

3. If a the PDAction methods do not give enough information, you need to use the Cos layer; this will require the detailed knowledge from 1.

Re: Does Acrobat SDK support extract hyperlink from PDF file?

$
0
0

One more point: please bear in mind that Acrobat, Reader and some other PDF viewers will create additional links that are not a part of the PDF content, by analysing the page contents. In particular, if a valid URL is seen, there may be a link to it. The rules for this are undocumented, and the PDF does not change; you cannot discover programmatically what has been done.

Acrobat Pro DC crash issue

$
0
0

Hello,

 

I am using Acrobat Pro DC 2015 release (Continuous). I have installed it from adobe Creative cloud.

My issue is -  Acrobat is crashing randomly many times a day.

 

I developed a plugin for it and thought that It was a plugin issue. But crash is does not seem relevant to my plugin.

I did not found the crash log file in the acrobat installation folder.

But in the Windows event viewer, I can see some error information regarding acrobat.

 

Here are the screenshots of the errors:

 

 

 

I am not able to understand the meaning of these.

What can be the problem in acrobat?

What is the solution for this?


Thank you in advance!

Re: Acrobat Pro DC crash issue

$
0
0

When you say that your plug-in may not be relevant to the crashes, how exactly are you determining this? To rule out any 3rd party plug-in, I would configure Acrobat so that it only loads "certified" plug-ins, which are those plug-ins that are part of Adobe Acrobat. You can do that by opening up Acrobat's preferences, and then go to the "General" category. The last option on that display will be "Use only certified plug-ins". Turn this on, and then use Acrobat for a while. Does it still crash? If not, then it's one of the 3rd party plug-ins you have installed. If not, follow the  debugging instructions on this page: Resolve Acrobat DC intermittent crashes on Windows

 

BTW: Adobe release an update to Acrobat DC today, so you may want to upgrade and see if your application still crashes. 

Re: Creating Fillable PDF form using SDK

$
0
0

With Older version of desktop Acrobat you could create a form and fields from a blank screen.  That ability is no longer available in Acrobat DC.  What product can I use to create a form and make a fillable PDF?


Re: Creating Fillable PDF form using SDK

$
0
0

You can still do that. What exactly are the steps you are performing, and what fails?

Re: Creating Fillable PDF form using SDK

$
0
0

Nothing fails.  I am not sure where to begin.  It is not like the desktop version.  I don't want to start with a scan OCR form  I want to start from scratch and add text and fields.  When finished, create a pdf.  Have people email the information or post the pdf and email it to me.

Re: Creating Fillable PDF form using SDK

$
0
0

Acrobat DC _IS_ the desktop version. What are you using?

Re: Creating Fillable PDF form using SDK

$
0
0

I guess I see DC as Document Cloud and not necessarily as the desktop version.  I have V9 on my old computer.  When I upgraded the computer in January, I updated Acrobat from 10 Pro to DC.  Either way I don't see how to create a form.  I see FormsCentral ended.  I was thinking I need to create a form in InForms.

"Convert to pdf/A" button in a module

$
0
0

I would like to know if it's possible to generate a "convert to pdf/A" button to a pdf module, so it will be possible to sign the pdf/a.

Javascript?

Re: Does Acrobat SDK support extract hyperlink from PDF file?

I want to Know that I want merge multiples PDF File In One PDF By using the Visual Studio 2013 (.Net) So please let me know How Can i do that by using Visual Studio ?

$
0
0

By using the Visual Studio 2013 (.Net)  So please let me know How Can i do that by using Visual Studio ?

Does it possible to do that with Acrobat SDK


Re: Does Acrobat SDK support extract hyperlink from PDF file?

With the use of SDK, Merging of more than one PDF Files are possible in VB.NET?

$
0
0

I want to merge more than one PDF File of Windows Application created thru Vb.net (Visual Studio 2013). So want to know that With the use of Adobe SDK, its possible or not?

 

[Moved from the Coding Corner (which is for general coding discussion) to a more focused, and active forum - moderator]

Selection is extended with PDTextSelectGetBoundingRect

$
0
0

Hello,

 

I am trying to create highlight annotation for the selected text over multiple line.

 

For example, see in the below image:

This is my selected text. Now when I apply the annotation to this text, it looks like below:

 

That means selection is getting extended while applying the annotation.

Here is my code:

I have used

 

ACCB1 void ACCB2 createRequirement(char *sectionName) {


AVDoc avDoc = AVAppGetActiveDoc();


if (avDoc == NULL) {
  AVAlertNote("Please open the document first.");  return;
}


PDDoc pdDoc = AVDocGetPDDoc(avDoc);
ASFixedRect boundingRect;
PDPage page = NULL;
PDAnnot annot, hilightAnnot;
LPCWSTR secName = convertCharArrayToLPCWSTR(sectionName);
LPCWSTR arg = L"value";
DWORD size = 1024;
LPCWSTR filePath = convertCharArrayToLPCWSTR(iniFilePath);
PDTextSelect pdtext =static_cast<PDTextSelect>(AVDocGetSelection(avDoc));


char reqId[2048];
char ident[2048];
int numPages = PDDocGetNumPages(pdDoc);


//Check if text is not selected
if (pdtext == NULL) {
  AVAlertNote("Please select the text first.");  if (sectionName != NULL) {  WritePrivateProfileString(_T(sectionName), _T("selectedText"), _T(""), _T(iniFilePath));  }  return;
}


if (sectionName != NULL) {
  //Create requirement from Reqtify  GetPrivateProfileString(sectionName, "value", NULL, reqId, size, iniFilePath);  strcpy(ident,reqId);
}
else {  //Input box to create requirement manually  createInputDialogBox(0, NULL, L"Requirement creation", L"Requirement ID:", L"REQ");  if (TheText[0] == 0) {  return;  }  wstring reqIdent(TheText);   string str(reqIdent.begin(), reqIdent.end());   strcpy(ident, str.c_str());
}


//Get selected text
AVDocCopySelection(avDoc);
wchar_t* selectedText = getClipboardText();
if (selectedText == NULL) {
  AVAlertNote("Could not copy to clipboard.");  return;
}


// Get the bounding box for the selection
PDTextSelectGetBoundingRect(pdtext, &boundingRect);
//Create a PDPage object
AVPageView currentPageView = AVDocGetPageView(avDoc);
ASInt32 pageNum = AVPageViewGetPageNum(currentPageView);
page = PDDocAcquirePage(pdDoc, pageNum);


PDColorValueRec yellow;
yellow.space = PDDeviceRGB;
yellow.value[0] = ASInt32ToFixed(1);
yellow.value[1] = ASInt32ToFixed(1);
yellow.value[2] = ASInt32ToFixed(0);


//Use the bbox to create a highight annotation QuadPoints
CosObj ArrayObj, RecObj;
CosDoc cd = PDDocGetCosDoc(pdDoc);
CosObj cosPage = PDPageGetCosObj(page);
ArrayObj = CosNewArray(cd, false, 8);
CosArrayPut(ArrayObj, 0, CosNewFixed(cd, false, boundingRect.right));
CosArrayPut(ArrayObj, 1, CosNewFixed(cd, false, boundingRect.bottom));
CosArrayPut(ArrayObj, 2, CosNewFixed(cd, false, boundingRect.left));
CosArrayPut(ArrayObj, 3, CosNewFixed(cd, false, boundingRect.bottom));
CosArrayPut(ArrayObj, 4, CosNewFixed(cd, false, boundingRect.right));
CosArrayPut(ArrayObj, 5, CosNewFixed(cd, false, boundingRect.top));
CosArrayPut(ArrayObj, 6, CosNewFixed(cd, false, boundingRect.left));
CosArrayPut(ArrayObj, 7, CosNewFixed(cd, false, boundingRect.top));
// for the Rect. Highlight annotations don't require, but API call to create annotation requires this key
RecObj = CosNewArray(cd, false, 4);
CosArrayPut(RecObj, 0, CosNewFixed(cd, false, boundingRect.left));
CosArrayPut(RecObj, 1, CosNewFixed(cd, false, boundingRect.right));
CosArrayPut(RecObj, 2, CosNewFixed(cd, false, boundingRect.bottom));
CosArrayPut(RecObj, 3, CosNewFixed(cd, false, boundingRect.top));


CosObj cosDict = CosNewDict(cd, true, 4);
CosDictPutKeyString(cosDict, "Subtype", CosNewNameFromString(cd, false, "Highlight"));
CosDictPutKeyString(cosDict, "QuadPoints", ArrayObj);
CosDictPutKeyString(cosDict, "Rect", RecObj);


annot = PDAnnotFromCosObj(cosDict);


hilightAnnot = CastToPDTextAnnot(annot);


//Open the annotation, set the text, and add it to a page
PDTextAnnotSetOpen(hilightAnnot, true);
PDTextAnnotSetContents(hilightAnnot, ident, strlen(ident));


//Fix 197842 starts
//Adds logged in Username as a Annotation title
char username[UNLEN + 1];
DWORD username_len = UNLEN + 1;
GetUserName(username, &username_len);
PDAnnotSetTitle(hilightAnnot, username, strlen(username));
//Fix 197842 ends


PDPageAddAnnot(page, -2, annot);


PDPageNotifyContentsDidChange(page);
PDAnnotSetColor(annot, &yellow);
AVPageViewDrawNow(currentPageView);


if (ASAtomFromString("Highlight") == PDAnnotGetSubtype(annot) && sectionName != NULL)
{  std::wstring  text;  std::wstring str;  std::wstringstream stringStream;  stringStream << selectedText;  while (stringStream >> text)  {  str.append(text);  str.append(L" ");  }  trim(str);  LPCWSTR secName = convertCharArrayToLPCWSTR(sectionName);  LPCWSTR arg = L"selectedText";  LPCWSTR reqText = str.c_str();  LPCWSTR filePath = convertCharArrayToLPCWSTR(iniFilePath);  WritePrivateProfileStringW(secName, arg, reqText, filePath);
}


PDPageRelease(page);
}

 

 

I have used PDTextSelect to select the text and PDTextSelectGetBoundingRect to get the bounding rect of selected text.

Can you please tell me what is missing or wrong in this code?

 

Thank you in advance!!

Re: I want to Know that I want merge multiples PDF File In One PDF By using the Visual Studio 2013 (.Net) So please let me know How Can i do that by using Visual Studio ?

$
0
0

Is this for an interactive user, with Acrobat Pro running? For a server? Something else?

Re: Selection is extended with PDTextSelectGetBoundingRect

$
0
0

You make only one quad point, the enclosing rectangle. The highlight correctly shows this. There is no magic to adjust the highlight to actual text. Normally there is a quad per selected line.

Viewing all 10848 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>