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

Does using a reference to the acrobat.tlb TypeLibrary supplied with the SDK break any rules?

$
0
0

I recently downloaded the Acrobat SDK as I will be using it to create a C# program to automate the filling of AcroForms and a few other things. I tried to run the FillFormCS Sample program but it would not run as I did not have Acrobat DC installed and it was trying to reference the acrobat.tlb present in the Acrobat DC install folder (C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\acrobat.tlb). I noticed that the program will run perfectly fine if I changed the reference to the acrobat.tlb located in the SDK download at (..\Adobe\Acrobat DC SDK\Version 1\InterAppCommunicationSupport\Headers). Is it against any rules to use the acrobat.tlb supplied with the SDK to build a C# application?


How to convert from PDF to PPT automatically? (command line, C# code)

$
0
0

I need to generate a PPT from a PDF. I am not sure if there are a way to do it by command line.

If not there are a C# code to do it?

 

Thanks!

pdf convert to html

$
0
0

How do I convert PDF with fillable fields to HTML?

How to Print a PDF programmatically without the Adobe Reader Window

$
0
0

Hi,

 

I'm trying to print a PDF my application. I would prefer to do it as silent as possible - no PrintDialogue | Adobe Reader Window.

 

  • Language C#
  • Adobe Reader 10.0

 

Here´s some Code:

 

    public static void PrintPDF(string file, string printerName)
    {
        Process proc = new Process();
        proc.StartInfo.FileName = @"C:\Program Files (x86)\Adobe\Reader 10.0\Reader\AcroRd32.exe";
        proc.StartInfo.Arguments = @" /t /h " + "\"" + file + "\"" + " " + "\"" + printerName + "\"";
        proc.StartInfo.UseShellExecute = true;
        proc.StartInfo.CreateNoWindow = true;
        proc.Start();
        Thread.Sleep(1000);
        proc.WaitForInputIdle();
       

proc.Kill();

    }

 

It works, but the Adobe Reader Window is still popping up -> /h (start the reader minimized) does not work.

 

Is there another way to hide the Window ?

 

Regards

how to use acrobat sdk develop adobe reader plugins?

$
0
0

I have developed a plugin of Adobe Acrobat DC, but when I put it on Adobe Acrobat Reader DC the reader show me a error:

"Invalid plugin detected. Adobe Acrobat Reader DC will quit."

And the software quit.

I want to know the cause of the error.

I used the Acrobat DC SDK developed the plugins and the develop center instructions "Develop software that integrates with Adobe Acrobat and Adobe Reader.". I have put the .api in the correct position.

Thank you for your answer.

 

Skip batch step via Javascript

$
0
0

Hi There

 

I'm working with Acrobat Pro DC.

 

I've got the following problem:

 

There is a process at our company witch creates multiple PDF-Files (Sometimes over 300).

In most cases this is the end of the story.

But: Sometimes i have to convert all of them to PDF 1.4  (Acrobat5.x).

 

I wanted to generate an action for the conversion:

  1. Open all files in the folder
  2. If it is a PDF
    1. Save as PDF 1.4
  3. Leave every other file alone.

 

In Acrobat DC i found no option to only load pdf files in the actions wizard.

 

My Attempt was to insert a javascript between opening and saving:

     /* Geben Sie hier den Titel des Skripts ein */

     var myFilename = this.documentFileName;

     var myRegExp = /\.pdf/;

          if(myRegExp.test(myFilename)) {

                 // Do nothing

          } else {

                 // Skip saving and proceed with next file in the folder

          }

Acrobat Reader signature plugin yellow question mark

$
0
0

I am developing a digital signature plugin (primarily for Reader but should work in Acrobat as well). I have a basic proof of concept working, with signing and verification and custom signature appearance but I am getting a large yellow question mark displayed behind my appearance.

 

I have seen other posts on this forum which suggested the certificate needs to be trusted but I have done that and I still get the question mark.

What could I be doing wrong? What do I need to do to make the question mark go away?

 

(I am developing/testing with Acrobat Reader DC and a self-signed certificate on Windows 10.)

How to replace words in PDF using Acrobat SDK in C#?

$
0
0

Hi,

I have some PDFs that contain sensitive information in form of text, like name of person, city, etc. These PDFs need to be duplicated into another copy but while creating duplicated copy, sensitive text needs to be searched & replaced with some dummy text. The replacement is essential to avoid tracing original information, by any fraudulent means. Also, the replaced text requires to be redacted.

Finding text is expected to support RegEx, as there could be variations of text that needs to be masked.

Could you please assist me how can this be done using Acrobat SDK in C#?

Thanks in advance.


Hi,I'm sorry to bother you.but this problem has trobled me a long time , that i load my plugin in adobe reader dc,then it will prompt ,tell me how to slove the problem please ,thank you

$
0
0

HELLO ,

we bulid one project like this,and we add this plug-in to the app,but it just use   15s then take out one error like this picture

you should know we want to develop a plug-in,but have so many problems. so we need technical support and i just want to know,in your

offical website i see the agreementget that  use the plug-in's develop need your  key  about  adobe  reader  plug-in.

And do you have the free key about the development .and what is the key look like, can you give me a example about how to use it .then please tell me the charges collectable.

In your samples i  see the  only one build is Debug,how can i  build release

How To Disable tool & Comment pane in adobe acrobat x

$
0
0

Hi All,

 

I want to disable/freeze tool & comment pane in adobe acrobat x permanently while view/read pdf file, with that everybody can't edited pdf file which already signed or add comment.

 

Please help.

 

Regards

 

Haerudin

How to build a plugin release build

Problems with toolbar icons in Acrobat DC

$
0
0

I'm running into some problems with my plug-in's toolbar icons in Acrobat DC.  In addition to the Retina-specific problem on Mac, there are several other issues which affect toolbar icons on both Windows and Mac (and on non-Retina Mac displays):

 

  1. The plug-in's toolbar icons do not change their appearance when selected or hovered over.
  2. The plug-in's toolbar icons are low-resolution.
  3. The icon for the toolbar itself in the “Tools” panel is the default icon.

 

Not only am I seeing those problems with my own plug-in’s icons, but as with the Retina-specific problem from the other thread, both the Stamper sample plug-in (from the Acrobat DC SDK) and Enfocus's PitStop plug-in have exactly the same problems.

 

Regarding issue 1, with the function AVAppCreateIconBundle6(), how do you specify more than one icon?  The documentation for _t_AVIconBundleRec6 says "An icon bundle allows you to gather up multiple icons and present them to Acrobat as a single AVIcon. For example, when creating a toolbar button you can pass in an icon bundle specifying both gray and color icons; the gray icon will be used to draw the button in its normal state, the color icon will be used to draw the button when the pointer is over it.”  I can specify an array of AVIconDataRec objects for the dataRecs parameter, and specify a number greater than 1 for the numRecs parameter, but I only see the icon set to kAVIconColor, regardless of whether the tool is selected or whether the mouse pointer is over it.  How do I get Acrobat to show a grayscale icon normally, but a color icon when the tool is selected or hovered over, for one of my plug-ins tools, like what happens now with Acrobat’s own tools?  Or is there some other way to visually indicate to the user that the tool is selected? (If you have “Show all labels” checked for the toolbar, then the text label shows up in blue if the tool is selected or hovered over, but there’s no indication that the tool is selected without the label.)  Note that, in all previous versions of Acrobat, our plug-in's tool icons didn't change when they were selected, but they were surrounded by a dark gray highlight rectangle, so the visual indication of selection was present, but this feature seems to have not made it over to Acrobat DC.

 

Regarding issue 2, also with AVAppCreateIconBundle6(), how do you specify an icon file rather than a PNG?  If I pass kAVIconMacIconRef16, kAVIconMacIconRef32, or kAVIconMacIconRef128 as the first parameter, Acrobat always crashes in the AVAppCreateIconBundle6() call.  I’ve tried it with .icns files and .ico files, of various sizes, but I can’t get it to work. Exactly what kind of data does this function expect in the AVIconDataRec::dataStm for an icon?

 

Regarding issue 3,, how do you get something other than the default “lego” icon to appear for your toolbar in the “Tools” view?  In the Stamper example project, in the call to AVMenuItemNew(), an AVIcon is passed, but it doesn’t seem to show up, neither with the menu item, nor in the “Tools” view.  (By the “Tools” view, I mean when you click on “Tools” at the top of the window where the options are Home, Tools, and Document.)

 

Also, with all of these issues, note that the built-in tools in Acrobat all function correctly. They all appear properly under Retina, they change their appearance (to show colors) when selected or hovered over, they’re high-resolution, and all the items in the “Tools” view have non-default icons.  I’m hoping that, if I can figure out how to use actual icons (with kAVIconMacIconRef128) instead of PNG files (with kAVIconPNG), that my plug-in’s tools will work the same way that Acrobat’s built-in tools work.  On the other hand, I can’t find any actual icons for all of Acrobat’s tools inside of its application bundle; they all seem to come from a file called icons.pdf, but the Acrobat SDK doesn’t expose any functionality to plug-ins to load icons from a PDF, as far as I can tell.

 

Any assistance or insight would be appreciated.

Modify Acrobat's UI to one similar to "Form editing" mode from the plugin

$
0
0

Is there any way to modify Acrobat's UI from the plugin to one similar to "Form editing" mode?

C#.Net Library to Merge and optimize Pdf

$
0
0

Hi,

 

i am looking for C#.Net library to merge set of pdf files and save them optimized, i am already holding license for Acrobat Pro DC

 

Please provide me any documents for the same

 

Thanks

AxAcroPDF hyper links to external files not working

$
0
0

Hello,

 

I am currently using the AxAcroPDF interop component to open up PDF's.

 

These PDF's have hyperlinks that when running directly under Adobe Reader the links work and open up the corresponding external PDF that the link references.

 

However, opening the PDF with AxAcroPDF, the links do not work.  The mouse cursor does change to the touch down icon so it picks up is a link but when clicking nothing happens.

 

Is there something I need to do to be able to make hyperlinks work when opening PDF's with AxAcroPDF?  (i.e. a property of the component to allow navigation?)

 

I have seen similar posts to this but not saying whether this is a known bug or something with the configuration of AxAcroPDF.

 

None of the external links work - i.e.  mailto  to open up an email,  url's,  links to local PDF's,  etc.   The only links that work are those that jump within the same PDF.

 

Even though in both cases the PDF ends up opened within Adobe Reader, whether directly via the Adobe Reader app - or via the activeX component, I thought the behavior should therefore be the same?

 

Thanks in advance


print multiple pages per sheet via VBA | Acrobat Reader

$
0
0

Hey guys,

 

I'm trying to print multiple pages on one sheet via VBA. I'm trying to implement this with the PrintPages()-Methode but I havn't found any example or comment in the API. I'm using the Adobe Acrobat Reader DC Version 2015.017.20053.

I'd appreciate any help.

How to reduce/optimze PDF file size with VBA?

$
0
0

I use this code to add Order# to an existing PDF

Function PDF_Numbering(order As String)

 

Dim acroApp As Acrobat.acroApp

Dim myDocument As Acrobat.AcroPDDoc

Dim jso As Object

 

Dim strPath As String

Dim strFileName As String

Dim intPages As Integer

Dim i As Integer

 

Set acroApp = CreateObject("AcroExch.App")

Set myDocument = CreateObject("AcroExch.PDDOc")

 

strPath = "C:\Users\Daniel\Downloads\"

strFileName = order & ".pdf"

 

'Open file and load JSObject

Set myDocument = CreateObject("AcroExch.PDDOc")

myDocument.Open (strPath & strFileName)

Set jso = myDocument.GetJSObject

 

' get number of pages

intPages = myDocument.GetNumPages

 

'Write page number

    jso.addWatermarkFromText _

        cText:=order & "  ", _

        nFontSize:=14, _

        nTextAlign:=1, _

        nHorizAlign:=2, _

        nVertAlign:=1, _

        nVertValue:=-30, _

 

'Save document

Call myDocument.Save(1, strPath & strFileName)

 

'Clean up

Set jso = Nothing

Call acroApp.CloseAllDocs

Set myDocument = Nothing

Call acroApp.Exit

Set acroApp = Nothing

 

However, the modified PDF is 15 times larger in size than the original PDF (original 60kb, modified 800kb)

 

Why is this happening and how do I correct this?

AcroForms Notification server beyond Acrobat 8

$
0
0

Is there any replacement for AcroForms Notification server  in latest versions of Acrobat for AcroForms Notification server, which was deprecated in version 8?

Or in other words is there any way to get notification from the plugin that the form field value was changed?

 

Thanks

What SDK do I need?

$
0
0

I want to build an application in .net that can view, print, email, zoom and navigate through PDF and PDF portfolio documents independent of having Acrobat or the Acrobat Reader installed - what SDK would I need to use to accomplish this?   What is the cost associated with the SDK?

Combining CosObjs

$
0
0

I am creating a signature plugin (based on the DocSign sample) and I want the appearance to include a graphic, for which I can use DigSigAPXObjectFromLogo, and some text, for which I can use DigSigAPCreateCompositeTextXObj.

 

Is there any way to combine the CosObj objects from those 2 functions into a single CosObj? If not, what's the best way to achieve my goal?

 

Thanks

Viewing all 2571 articles
Browse latest View live


Latest Images

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