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

Excel VBA code works with Acrobat XI but NOT 2017

$
0
0

Hi,

 

I have some Excel 2010 VBA code that’s been working quite well with Acrobat XI Pro.

 

But when I run it on a PC with Acrobat 2017 Pro, the same code crashes, right at the first step, creating the App.

 

Rather then post the entire spreadsheet here, this excerpt illustrates the problem. The code runs in Workbook_Open()

 

'-----

Option Explicit

Private Sub Workbook_Open()

    Dim OkCan As Integer

    Dim AcroApp As Acrobat.CAcroApp

    OkCan = MsgBox("About to run Set AcroApp = CreateObject(""AcroExch.App"")", vbOKCancel)

    If OkCan = vbCancel Then Exit Sub

    Set AcroApp = CreateObject("AcroExch.App")

    MsgBox ("Done")

    Set AcroApp = Nothing

End Sub

'-----

 

XI Pro, this works.

 

2017 Pro, crashes on

     Set AcroApp = CreateObject("AcroExch.App")

 

Run-time error '-2147467259 (80004005)'

Automation error

Unspecified error

 

References are set correctly, both PC's.

 

Excel 2010 on both PC's.

 

Any ideas?

 

Thanks in advance.


Re: Looking for a way to capture page change via JavaScript

$
0
0

Another option is to create a single page PDF that includes a single read-only button that's as large as the page. This button is used to display the page contents as the button's icon. The contents for each page can be stored in the PDF in hidden buttons or document-level icons. You'd have to use JavaScript to populate the button icon from these sources.

 

A potential downside is this is unlikely to work with any PDF viewer other than the desktop versions of Reader and Acrobat. This technique also has potential limitations and benefits with regard to printing.

Retrieve path of pdf open in Acrobat DC in C#!

$
0
0

  Type PDFType = Type.GetTypeFromProgID("AcroExch.App");
     CAcroApp AcroAppObj = Activator.CreateInstance(PDFType) as CAcroApp;

     AcroAppObj.Show();

     CAcroAVDoc AvDocObj = AcroAppObj.GetActiveDoc() as CAcroAVDoc;

     CAcroPDDoc PdDocObj = AvDocObj.GetPDDoc() as CAcroPDDoc;

Now I have CAcroPDDoc object, but still unable find any library function which returns Path of document, could you please help in this.

     Type PDFType = Type.GetTypeFromProgID("AcroExch.App");
     CAcroApp AcroAppObj = Activator.CreateInstance(PDFType) as CAcroApp;

 

How can I get this file path? could you please help in this!

Re: Retrieve path of pdf open in Acrobat DC in C#

$
0
0

Have you got the path yet? help me!

Re: Retrieve path of pdf open in Acrobat DC in C#

$
0
0

Have you got the path yet? How to get? help me! Thanks

Re: Get Path of PDF Opened in Acrobat DC Pro

$
0
0

I still can't get the path in c#, how can I do it? Thanks

Re: Retrieve path of pdf open in Acrobat DC in C#

$
0
0

I think the discussions covered it all.

Re: Get Path of PDF Opened in Acrobat DC Pro

$
0
0

We described how to do it. Your question won’t help, since all we could do is repeat what we already said. So please show your code and tell us what goes wrong.


Re: Retrieve path of pdf open in Acrobat DC in C#!

$
0
0

You replied to two discussions which told what do do !!

Re: Looking for a way to capture page change via JavaScript

$
0
0

It is actually possible to do something like that using a script, but it's quite complicated and I don't think it's a good solution to limit the user like that.

Re: Retrieve path of pdf open in Acrobat DC in C#!

$
0
0

                Type PDFType = Type.GetTypeFromProgID("AcroExch.App");

                CAcroApp AcroAppObj = Activator.CreateInstance(PDFType) as CAcroApp;

                AcroAppObj.Show();

                CAcroAVDoc AvDocObj = AcroAppObj.GetActiveDoc() as CAcroAVDoc;

                CAcroPDDoc PdDocObj = AvDocObj.GetPDDoc() as CAcroPDDoc;

                Console.WriteLine(PdDocObj.GetNumPages());

                Console.WriteLine(PdDocObj.GetInfo(PdDocObj.GetFileName()));

                string fileName = PdDocObj.GetFileName();

              

 

                I can get the file name, but how can I get the full path?

Re: Retrieve path of pdf open in Acrobat DC in C#!

$
0
0

Please read the discussions, which you replied to, and which told you what to do. Don't ask us to type it out again.

Re: JS: Modifying 3D annot via JavaScript

$
0
0

The same applies for a RichMedia Annotation, by the way. The rect property is supposedly R/W, but changing its value doesn't affect the actual annotation.

Re: Retrieve path of pdf open in Acrobat DC in C#

$
0
0

But I still don't know how to do it with c#. Help me. Thanks.

Re: Retrieve path of pdf open in Acrobat DC in C#

$
0
0

Which part of the answers are not clear? We would only type it out again, because for us that’s the answer.


Re: How to change AllowPSFileOps in Mac Distiller 8.1

$
0
0

This has resurfaced with Mac Distiller Pro DC 18. In com.adobe.distillerDC.plist is AllowPSFileOps set to false by default. If set to true, the job still gives me an empty job. I also tried adding -F in prologue.ps (I read about -F  somewhere) and enabling it in Distiller's settings, but joy.

(Processing prologue.ps...\n) print flush
%  Insert your custom PostScript here...
-F
(Done processing prologue.ps.\n) print flush

 

Bottom line: Is there a trick to getting around these infuriating security settings? Some replies indicate it can't be done outside of a temp directory and a font cache folder; others indicate plist files.

 

I just want RunDirEx and RunFilEx to work pretty much anywhere, on a folder or file located most anywhere. Maybe someone has written something with the SDK?

Re: How to change AllowPSFileOps in Mac Distiller 8.1

$
0
0

Are you editing the plist file? Don’t. Recent MacOS changes mean you must use the “defaults” command instead.

Re: How to change AllowPSFileOps in Mac Distiller 8.1

$
0
0

Can you give us some idea of what you are using Distiller for that you need such things?

Re: How to change AllowPSFileOps in Mac Distiller 8.1

$
0
0

Not sure what you mean by the defaults "command".

Re: How to change AllowPSFileOps in Mac Distiller 8.1

$
0
0

I have a bunch of separate files for employees over the states, some for everyone, some by job function, some by state requirement, some by job level, some federal, with each created by PPT, Word, InDesign, whatever. The plan is to have a system that collects them into a list based on who you are and what you do, then produces a PDF from that collection. I did it years ago to put together an application packet for a heath care company with locations around the U.S. Nice thing about it is if you need to change a document you need only make one new PS file, and it's changed in every document in which it's used (upon next RunFilEx of course).

Viewing all 10848 articles
Browse latest View live


Latest Images

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