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

Setting -F parameter in C# for Acrobat Distiller programmatically?

$
0
0

Hi all,

 

I'm currently in the process of writing a solution in C# that will convert SPL files to PDF using the ACRODISTLIBX library from the Acrobat SDK. However, when the PdfDistiller class' FileToPDF method is called to convert the SPL file, it is unable to do so, returning an error message stating that invalid PDF parameters are being used.


If we were to convert SPL files manually using Acrobat Distiller XI, the "-F" parameter must be included in order to allow this. I believe the lack of this parameter in the C# solution is the reason for its failure as the error LOG files produced by Distiller being run without the "-F" parameter and those produced by the C# application are identical in content.


My question is: is there anyway to programmatically include the "-F" parameter in the code, or is there a settings or config file I could modify to include this? Alternatively, is there a way to omit the inclusion of this parameter altogether?


Hopefully I've provided sufficient information for a solution.


Should you require any further information, please do not hesitate to ask.


Many thanks,


API for C#

$
0
0

I tried Acrobat XI Export to PowerPoint and it works excellent.

Is there an API in C# I can use to automate it?

An alternative would be a command line bu an API is best.

Programatically search text in PDF

$
0
0

HI,

 

I am using IAFormApp formApp = newAFormApp(); to search for fields but I am getting the following error:

An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in mscorlib.dll

Additional information: Retrieving the COM class factory for component with CLSID {7CD069A1-50AA-11D1-B8F0-00A0C9259304} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

 

I am using a 64 bit computer and the dll is 32 bit and therefore it is not getting registered. Kindly help me since it is an important project and I am stuck.

retrive location of acrord32.exe via vba

$
0
0

Good Day!

Need to retrieve location of AcroRd32.exe with vba mscaccess.

thanks

Norbert

Some APIs are not support on Mac 64

$
0
0

Hi All

     I am changing an original App which base on mac 32 to mac64.

But I found some APIs in PDFL SDK  are not available on mac 64.

Such as,

PDPageGetPalette,

PDDrawCosObjWithParams,

PDPageDrawContentsWithParams.........

 

I do not know how to find the related APIs to replaced the 32-bit APIs.Is there some 'preferences' or 'guideline' or 'manual' to explain how to change.

 

Who can help me? Thanks a lot.

Acrobat has frozen after entering formulas into a form.

$
0
0

i have a trial of acrobat pro dc. i am makig a fillable order form with formulas in it and have just entered the formulas. the whole form has now frozen and wont respond to anything! i don't want to kill it as isn't saved anywhere. is there any other option?

Acrobat SDK in windows service and .net website

$
0
0

Hi,

 

I'm using a trial of Adobe Acrobat Pro DC, Acrobat reader X, and Acrobat XI SDK with VisualStudio 2012.

 

I use Acrobat SDK in order to extract pages from a main PDF file, and create a new result PDF from that pages. I got this working in a windows application or in a windows service, but the same code doesn't work in a website. I got this error "Cannot create ActiveX Component" when I do this:

 

srcDoc = CreateObject("AcroExch.PDDoc")

 

---

 

Now, I read in some forums that Acrobat SDK cannot be use in a website, is that right? and why? And what about using it in a windows service?

 

This is my code:

 

               Dim srcDoc As Acrobat.CAcroPDDoc

 

                ' Open the source PDF document

                srcDoc = CreateObject("AcroExch.PDDoc")

 

                retVal = srcDoc.Open(SOURCE_DOCUMENT)

                If retVal <> -1 Then

                    Throw New Exception("Failed to open source document. Make sure that SOURCE_DOCUMENT has been configured.")

                End If

 

                ' Acquire the JSObject interface

                jsObj = srcDoc.GetJSObject

              

                Dim newDoc As New Object

                newDoc = jsObj.extractPages(CInt(txtFrom.Text.Trim) - 1, CInt(txtTo.Text.Trim) - 1)

                'Save the new PDF to the output folder

                outputString = OUTPUT_FOLDER & Guid.NewGuid.ToString & "_AdobeSDK.pdf"

                newDoc.saveAs(outputString)

                newDoc.closeDoc()

                newDoc = Nothing

 

---

 

I'll wait for your answer,

 

Thank you,

[Online printer system]Can you do preflight checks with javascript online?

$
0
0

Hi guys, I'd like to know if it is possible to check PDFs without Acrobat or third party software but instead with Javascript? The reason behind this is to have an upload tool for a printer where clients automatically get reports on whether or not their PDF meets the criteria for the printers.


Opening files automatically in VBA and saving to PDF, Adobe Acrobat XI Pro

$
0
0

Hello,

 

I have Adobe Acrobat XI Pro and I want to ask if there is any possibility to open automatically files in Adobe by VBA (Word files, Excel, etc.) and save them to PDF?  Or maybe it is a possibility to print them with Adobe PDF Printer?  If there is something like that can you give me a sample of code?

 

Thank for your help.

 

Best regards,
Robert

Reader DC - PlugIn - AVDocOpenFromFile/AVDocOpenFromPDDoc RdrCEF.exe

$
0
0

Why does AVDocOpenFromFile or  AVDocOpenFromPDDoc open the program RdrCEF.exe and doesn't close the program when AVDocClose or AVWindowUserClose is called ??  Batch print getting impossible because you end up with lots of RdrCEF.exe programs in the task manager, as well as RdrCEF.exe  crashes on Windows Server 2012 after you openend and closed about 10 documents.

Built-in Encoding text extraction

$
0
0

Hello,

 

I have a problem with "built-in encoding" fonts. If I try to extract text of these kind of font I get bad text.

Of course I have the same problem if I try to copy and paste text from PDF file.

 

I have seen that if I use "Add tags" tool with Acrobat 11, built-in font text becomes good.

 

I have tqo questions:

 

- Is there some SDK function to 'translate' built-in font encoded words to UCS (and so in a readable form)?

- Can I launch the 'Add tags' tool programamtically using SDK?

 

Thanks in advance!

Standard 9: Changing Page size

$
0
0

I currently have both Acrobat Standard and Pro. In Pro you have the ability to change the page width - does standard also provide that capability?

embedded PDF object .postMessage doesn't work with Reader DC on IE

$
0
0

In our application, we have PDFs embedded in the browser with an object tag such as this:

 

<object id="pdfObject" width="100%" height="100%" type="application/pdf" data="#{url}"></object>

 

There are HTML/Javascript controls on the page which communicate with the PDF via this syntax:

 

document.getElementById("pdfObject").postMessage([arg])

 

This has been working great with Adobe Reader versions 10+.  It actually still works with Reader DC on Firefox.  However, there is a problem with Adobe Reader DC on Internet Explorer version 11.

All I can tell so far is the "postMessage" function isn't appearing.  Using IE dev tools:

 

document.getElementById("pdfObject").postMessage

Object doesn't support this property or method

 

Any help with this would be amazing.  It is a critical part of our application here.

how do i get on chat

Adobe PDF Reader Control

$
0
0

Greetings all,

I am trying to add Adobe PDF Reader control to my project, once I drag-drop on the form, it shows the following error:

Any Idea how to solve it?

 

Thanking youVBError.png


Convert PDF-Page Thumbnail to PNG or JPEG

$
0
0

Hello,

 

Is it possible to get the Thumbnails to the pages in a PDF-File and save them as a JPEG or PNG File on a local drive?

 

Thanks in advance.

How do you make an item in the drop down menu open up another field when selected?

$
0
0

For example; I am trying to make a drop down menu and one of the choices is "Others"

 

I want "Others" to open up/highlight another field when its chosen. is that possible?

 

Pls help

 

Thanks in advance.

Add menu item between the classical menu items

$
0
0

When I load my plugin within Acrobat I create a new menu item that it's passed at the end of existing items, back to Help item.

I would like to move it to the left, between View and Window if possible.

 

  AVMenubar menubar = AVAppGetMenubar();

  AVMenu viewMenu = AVMenubarAcquireMenuByName(menubar, "View");

  AVMenuIndex indexMenu =  AVMenubarGetMenuIndex(menubar, viewMenu);

 

  // Create our menu item

  stMenuItem = AVMenuItemNew(MyMenuItemTitle, MyMenuItemName, NULL, true, NO_SHORTCUT, 0, NULL, gExtensionID);

  // ....

  commonMenu = AVMenubarAcquireMenuByName(menubar, "MYPREFIX:MYID");

  if (!commonMenu) {

      commonMenu = AVMenuNew("Menu Item Name", "MYPREFIX:MYID", gExtensionID);

      AVMenubarAddMenu(menubar, commonMenu, APPEND_MENU);

  }

 

  AVMenuAddMenuItem(commonMenu, stMenuItem, 3/*indexMenu*//*APPEND_MENUITEM*/);

 

But whatever index I pass to AVMenuAddMenuItem() I get my menu item to the end. I was thinking I might need to change the index of those back items, but I didn't find a *SetIndex function.

How to know Type of Acrobat ( Standard or Professional )

$
0
0

Hello,

 

   How to know type of acrobat? Is there any method to know Acrobat is Standard or Professional?

  I want to call some SDK method on Professional. Please can anyone tell me how to know installed acrobat is Professional or standard?

 

 

Thanks,

 

Sowbhagya

adobe acrobat 9 pro does not convert word to pdf

$
0
0

Adobe.png

Hiya

 

I get the following error when trying to convert word docs to pdf, have tried repairing the program which works but if I close Acrobat and try to convert the same message appears. Have tried uninstalling and re-installing but same issue, any help please!

 

Thanks,

Mariam

Viewing all 2571 articles
Browse latest View live


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