Quantcast
Channel: Adobe Community : All Content - Acrobat SDK
Viewing all 2571 articles
Browse latest View live

How to print specific pages of a pdf from a vb 2013 program using a print dialog

$
0
0

Hi.  I am using the acrobat sdk to display pdfs from within a vb 2013 program, because the pdfs are large and we have developed indexes on certain columns.  The indexes are stored in SQL tables.  My program has a search window which allows the user to search for a value and displays all the pages on which this value appears in the indexed column in a listbox.  By double-clicking on the desired value in the listbox, the user can go to the selected page and column.  However, the user also needs to be able to highlight one or more of the pages in the listbox and print these pages.  I could do this silently using AcroExchAVDoc.PrintPages, but the user also needs to have a print dialog displayed in order to possibly select a watermark to be printed on the pages.  I also need to default the orientation of the pages depending on the document.

I have reviewed the sdk documentation and also searched in Google and on this site but have not found a way to do this.  Does anyone have a suggestion?  Thanks for any help you can provide.

Mary


How to access addressbook.acrodata??

$
0
0

How could i access the "addressbook.acrodata" file in C:/User/AppData/Roaming/Adobe Reader/Scurity which has stored the AATL Certificates which Adobe did download.

 

I want to access the file with Java (Read and Wirte). How can i do this? Or can someone tell me the structre or dataformat is used in this file?

Embedded Acrobat and Javascript API

$
0
0

Hello,

 

I am currently working on a project that expands upon our usage of PDF in our web based software application. We're looking at having a rich forms integration to solve a number of issues, including consent forms. Currently I"m looking at using Acrobat's javascript API's to help solve our issues. One of the primary things we would like to do is have our customers be able to make custom PDF forms, let them fill in this forms in the PDF it's self (using embedded acrobat) then sign the form using an external signature component we have.

 

Currently I'm looking at the documentation for acrobat (which seems a little scattered, but I'm peicing it together). I guess one question I have for openers is how much access to the soap methods do you have when accession Adobe via an embeded PDF object? Is it possible to call functions to save this form data back to a web service?

MenuItemExecute

$
0
0

I am a total novice to the Adobe Acrobat programmatic interface. I use VBA. How can I find out what the MenuItemExecute parameter name is for any particular menu item? Can MenuItemExecute be used to check or uncheck a checked menu item? I currently deal with 2 versions, 4.0 and 9. The menu item I am currently interested in is, for version 4, 'View/Continuous', and for version 9, 'View/Page Display/Single Page Continuous'.

 

Thanks

how disable PDFEdit combines text from multiple Tj operators

$
0
0

HI

In http://help.adobe.com/livedocs/pdfl_sdk/9/PDFL_SDK9_HTMLHelp/API_References/Acrobat_API_Re ference/PDFEdit_Layer/PDEText.html mention that "PDFEdit combines text from multiple Tj operators into a single text run, when possible "

how I can disable this feature

I want disable this feature because  I write a program that process (encrypt) and copy every element recursively  , I used chain encryption algorithm that mean if one bit change  or shift all result will be wrong

when I  encrypt, for example count 323 run in one textelement but after encryption and when I want decrypt in same textelement I just get 322 run, I think  this problem caused by PDFEdit combines text.

thanks for your help

In app pdf viewer plugin

$
0
0

Hello

 

We are developing an app or a customer who wants to be able to show pdf in apps. For this we need a custom pdf viewer or something like a adobe pdf viewer plugin to use.

 

Does something like this exist? Thank you!

How to I delete acrobat software than converts .pdf files to .docx files?

$
0
0

Hello. How do I delete the Acrobat software that converts .pdf files to .docx files?

 

Thank you.

 

DL

How to solve this problem that the error message is "kPDFMErrorLaunchingAssociatedApp"?

$
0
0

HI,There is a ASP.NET program that use to convent the Word to PDF. I used PDFMAKERAPI.DLL in this program.this is the code

"

using System;

using PDFMAKERAPILib;

 

 

namespace test1

{

    public partial class index : System.Web.UI.Page

    {

        protected void Page_Load(object sender, EventArgs e)

        {

        

            string wordPath = "C://123.doc";/ source word file

            string pdfPath = "C://123.pdf";// saved pdf file

            PDFMakerApp app = new PDFMAKERAPILib.PDFMakerApp();

            int iReslut = app.CreatePDF(wordPath, pdfPath, PDFMakerSettings.kConvertAllPages, false, false, false, System.Type.Missing);

            if (iReslut == 0)

            {

                a.Text = "Success!";

            }

            else

            {

                //false!

                a.Text = Enum.GetName(typeof(PDFMakerRetVals), iReslut);

            }

 

       }

    }

}

"

I run this program in a computer with win7,office2007 and adobe acrobat 9 pro.However, it couldn't convent Word to PDF.The wrong messege is "kPDFMErrorLaunchingAssociatedApp".Does anyone have a suggestion?  Thanks for any help you can provide.

David


For Calibri bold font, pdf document is giving weird behaviour on change of resolution

$
0
0

For Calibri bold font, pdf document is giving weird behavior on change of resolution (%) of document.

Whenever I do save /save as on my pdf file, my file size gets increased.I am using Acrobat Pro XI.

$
0
0

Whenever I do save /save as on my pdf file, my file size gets increased.I am using Acrobat Pro XI.Why does this gets happen. Is this the bug in XI version?

How can I change the default page size for the Adobe PDF Printer?

$
0
0

Hello All,

 

I have cases where I need to switch the default paper size from 8.5x11 to 11x17 via api for the Adobe PDF Printer and have not been able to find how this can be accomplished.

 

I am using C# .Net and would appreciate any help.

 

Thanks in advance,

 

Bob

Is it possible to create a plugin for adobe reader xi using visual studio 2012?

$
0
0

Hi All,

 

I'am trying to create a plugin for adobe reader xi .I have vs 2012.

If it is possible for me to create a plugin for this specification, can you please let me know of an updated link? I couldn't find an updated page that helps me get started with this.If I download the sdk of acrobat xi , and compile and run the starter api program it says unable to start the program.Please help me find a few useful tutorials to get started with this as well.I'am familiar with developing add-ins for Microsoft office but this seems like a bigger challenge.

 

 

Any help is much appreciated.Thanks in advance!

 

Regards,

Apoorva

Issues in plug-in for the Adobe Reader X

$
0
0

Hello,

 

We have developed plug-in for Adobe Reader (Adobe Acrobat) a couple of years ago.

But it doesn’t work correctly in the Adobe Reader X.

 

We have observed some issues:

1.       A COM-object creation in the outproc mode with CLSCTX_LOCAL_SERVER is FAIL

IClassFactoryPtr spCF;

_com_util::CheckError(::CoGetClassObject(__uuidof(PromtSvrDirections), CLSCTX_LOCAL_SERVER, NULL, IID_IClassFactory, (LPVOID*)&spCF));

 

The function CoGetClassObject return value is E_ACCESSDENIED (the same issue is observed with CoCreateInstanceEx).

If a COM-object create in the inproc mode with CLSCTX_INPROC_SERVER the creation is OK.

 

2.       The other issue related to registry.

If the plug-in try to open registry key in HKEY_CURRENT_USER with KEY_ALL_ACCESS (for example HKEY_CURRENT_USER\Software\PROject MT\PRMT9\PTSPluginCommonSettings), the return value is ERROR_ACCESS_DENIED.

In all cases we use WIN API functions.

 

Could you please tell us what we need to do in order to fix the issues?

How to integrate javascript object with my plugin in c++

$
0
0

Hi All,

I have the code snippet ,from one sample in the sdk, like so :

 

AVDoc avDoc = AVAppGetActiveDoc();

 

  if(avDoc==NULL) {

  // if no doc is loaded, make a message.

  strcat(str,"There is no PDF document loaded in Acrobat.");

  }

  else {

  // if a PDF is open, get its number of pages

  PDDoc pdDoc = AVDocGetPDDoc (avDoc);

  int numPages =PDDocGetNumPages(pdDoc);

  int cnt=0;

  for (int p = 0; p < numPages; p++)

  cnt= getPageNumWords(p);======================================> How to get number of words/sentences/paragraph count in a pdf document since this method is javascript

 

}

Variable Form Data - PDF Merge Issue

$
0
0

I created a VB program, using Acrobat 5 and the FDFToolkit, that took variable data and populated a form and saved it.  It then populated another form and then saved it. Each form is a set of cards 9-Up double sided.

 

When this process completed it merged the pages together.  It works fine Acrobat 5, but I can't seem to use it with any other version.  Now, each individual fdf and pdf have the correct data, but when I merge them each page is identical.  Where might I be going wrong?


Implement Examine Document Feature using C

$
0
0

I want to perform "Examine Document->Remove Hidden Text" using C#.NET

Can you please let me know how to implement it?

PDDoc Word Count

$
0
0

Hello,

 

I'm trying to pass the address of my countWord method to ASCallbackCreateProto in my C++ plugin, but I'm getting the following compiler error.

    

          error C2065: 'countWord': undeclared identifier

 

 

 

At first I suspected this was just some C++ subtlety I'm not familiar with, but after doing a little research on function pointers I'm still not finding any problem with my code.  Here's what I've got:

 

 

static ASInt32 wordCount;

ACCB1  void  ACCB2  MyPluginCommand(void *clientData)
{     AVDoc activeDoc = AVAppGetActiveDoc();     if (activeDoc != NULL)     {          //Initialize static variable wordCount:          wordCount = 0;          //Get PDDoc and number of pages in doc:          PDDoc activePDDoc = AVDocGetPDDoc(activeDoc);          ASInt32 numPages = PDDocGetNumPages(activePDDoc);          //Create PDWordFinder from PDDoc:          PDWordFinder pdWordFinder = PDDocCreateWordFinderEx(activePDDoc,  WF_LATEST_VERSION,  false,  NULL);          //Create PDWordProc:          PDWordProc pdWordProc = ASCallbackCreateProto(PDWordProc,  &countWord);           //Enumerate words:          for (int p = 0; p < numPages; p++)          {               PDWordFinderEnumWords(pdWordFinder,  p,  pdWordProc,  NULL);          }          //Destroy PDWordFinder:          PDWordFinderDestroy(pdWordFinder);          AVAlertNote("Document word count: " + wordCount);     }     return;
}


static  ACCB1  ASBool  ACCB2  countWord(PDWordFinder wObj,  PDWord wInfo,  ASInt32 pgNum,  void *clientData)
{     wordCount++;     return true;
}

 

 

Now, the goal here is just to get the total word count in the document, so if there's a better way to do this, I'm open to suggestions.

 

Also, the reason why I want the word count is so that I can determine whether or not I want to OCR this document.  I'm thinking that if the word count for the whole document is zero, or close to it, I'll run PaperCapture.  If I'm barking up the wrong tree here, please let me know.

 

 

 

Much appreciated,

- ADJ

Get the one array to another array and manipulate that array , select specific characters from the array.

$
0
0

Hi All,

I have the following  snippet that displays all the words in a pdf file. Can I Store all these words in a separate array and select specific words/patterns from this array.

static ASInt32 wordCount;

char stringBuffer[100];

char arr[100];

ACCB1 ASBool ACCB2 wordEnumerator(PDWordFinder wObj, PDWord wInfo, ASInt32 pgNum, void *clientData)

{

  ASInt16 wordLength;//Remove punctuation

  PDWordFilterWord(wInfo, stringBuffer, 99, &wordLength);

  stringBuffer[wordLength] = 0;//Populate the char array with text that represents the word

  PDWordGetString (wInfo, stringBuffer, 99);

AVAlertConfirm(stringBuffer);//===================================================>display s each word in the pdf, but I want to MOVE THIS TO ANOTHER ARRAY  ACCESS THAT ARRAY OUT SIDE THIS LOOP

 

}

ACCB1 void ACCB2 MyPluginCommand(void *clientData)

{

 

  AVDoc currentAVDoc = AVAppGetActiveDoc();

  if (currentAVDoc != NULL)

      {

        

  PDDoc currentPDDoc = AVDocGetPDDoc(currentAVDoc);

  AVPageView currentPageView = AVDocGetPageView (currentAVDoc);

  ASInt32 numPages = PDDocGetNumPages(currentPDDoc);

  PDWordFinderConfigRec pConfig;

  memset(&pConfig, 0, sizeof(PDWordFinderConfigRec));

  pConfig.recSize = sizeof(PDWordFinderConfigRec);

  pConfig.ignoreCharGaps = true;pConfig.ignoreLineGaps = true;

  pConfig.noAnnots = true;

  pConfig.noEncodingGuess = true;

  PDWordFinder pdWordFinder = PDDocCreateWordFinderEx(currentPDDoc,WF_LATEST_VERSION, false, &pConfig);

  PDWordProc wordProc = NULL;

  wordProc= ASCallbackCreateProto(PDWordProc, &wordEnumerator);

 

  for (int p = 0; p < numPages; p++)

          {

               PDWordFinderEnumWords(pdWordFinder, p, wordProc, NULL);

  

          }

 

 

  PDWordFinderDestroy(pdWordFinder);

 

===================>Count specific syllables from the words,select words with a certain pattern etc..But dont know what statement to use.IN THE NEW ARRAY.

}

  return;

}

What is Screen Annotation?

$
0
0

I am developing pdf assembly which can be capable of adding annotations...

How do i implement this screen annotation in Post script?

Drag n Drop from Acrobat Page thumbnails (Create PDF from hGlobal Storage Medium)

$
0
0

Hello,

 

i have created an external windows on Acrobat that receives drop of page thumbnail from the page lane.

 

Looking into the Format with the help of Windows OLE drag and Drop, i was able to see the type of data sent by Acrobat

Am able to get the Filename from the FileGroupDescriptorW and i think the real data should reside in FileContents.

 

My question is how to create a new PDF from the Filecontent.

Hier is part of my code

/**************************************

   *ifwehaveafilename
   **********************************/
   if(filename!=""){
   //window->simpleMessage("Filename:"+filename);
   //constructaFORMATETCobjectforAcrobatpages
   fmtetc.cfFormat=RegisterClipboardFormat(CFSTR_FILECONTENTS);
   fmtetc.ptd=NULL;
   fmtetc.dwAspect=DVASPECT_CONTENT;
   fmtetc.lindex=-1;
   fmtetc.tymed=TYMED_HGLOBAL;
   //getthefilecontent
   if(pDataObject->GetData(&fmtetc,&stgmed)){
   //debugInfo
   window->simpleMessage("Filename:"+filename);
   //weaskedforthedataasaHGLOBAL,soaccessitappropriately
   PVOIDdata=GlobalLock(stgmed.hGlobal);
   /***
   *CreatenewPDF
   ***********************/
   GlobalUnlock(stgmed.hGlobal);
   //releasethedatausingtheCOMAPI
   ReleaseStgMedium(&stgmed);
   }
Viewing all 2571 articles
Browse latest View live


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