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

Acrobat Reader DC Command line Options

$
0
0

Hi to all,

 

I need to print PDF file directly from command line; in Acrobat Reade XI I have used /h /t switches, but now it is wrong.

 

Anyone does know the new options for Reader DC?

 

My OS is Windows 7 32 bit with IE 11

 

thanks


Create an Add-In

$
0
0

Is it possible to create an add-in within Acrobat DC? I have been looking through the documentation and have been coming up short. I would like to be able to create a third party window within the application.

Repeated calculation with different parameters upon MouseUp Button action

$
0
0

I need a repeated calculations with different array parameters upon the same button MouseUp activation.

 

i.e. when the user press-leave the mouse button I want the Javascript to take 2 values from an array, perform some calculations and send to TextFields. Upon next iteration (a user induced a MouseUp again) the code should move to the next 2 values within the array and so on.

 

What is the best way to implement it? Should I set any global variable (counter)?

 

Thanks a lot!

views missing when importing annotation with IAC

$
0
0

Dear all,

 

I want to import the annotation from a fdf file which includes 3d annotes.  (the model is in PRC format)

I am using a c# program to call the function retrieveAnnotsFromFile(doc). The texts are imported successfully, but the views are missing.

But when I call the same function with JS within acrobat through button event, the function works fine, all texts and views are imported successfully.

I was wondering if I need to do something extra for importing the annotes views with IAC.

 

thanks and regards,

How to duplicate/copy button icons on multiple pages

$
0
0

I need to use the same button icons throughout the PDF (around 12 button icons).

 

How can I copy/save/duplicate icons dynamically on different pages? I mean some icons are changing according to user choices and eventually all of them should return to the initial state - this is the case when I want these icons to be copied from some "global" storage.

 

Thanks a lot.

convert multiple TIF files into one searchable PDF file

$
0
0

I'm new to Acrobat VBA. What's a recommended approach to converting multiple single page .TIF files into a new, searchable .PDF file?

 

Something like:

create new .pdf file
for each .tif file     open .tif file     convert to .pdf format     add this page to new .pdf file
next
make the new .pdf file searchable
save the new .pdf file

 

I've seen in some of the other posts that opening a .tif file with the "AcroExch.PDDoc" works but that it's not supported. I'd like to build on supported approaches, if possible.

 

Thanks for assistance.

buttonSetIcon to null (how to delete icon)

$
0
0

Dear friends,

Now if I want to hide the button' icon I use this method:

 

someButton.buttonPosition = position.textOnly

 

But this method only hides the icon - the icon remains "in memory" and immediately re-appears if I use buttonPosition = position.iconOnly.

 

I want to delete the icon completely - could you please help me with proper method (without blank buttons).

 

Thanks a lot!

Can I fill, save and print a PDF using the Acrobat API from VBA Code?


Need javascript/VB code to open password protected PDF file by passing password in code itself.

$
0
0
Hi,

I have used PDFcreator to create the PDF file with password security

'To create PDF file with password security
With PDFCreator1


.cOption("UseAutosave") = 1
.cOption("UseAutosaveDirectory") = 1
' ==============
.cOption("AutosaveDirectory") = strBackupPath '& "\" & Format(Trim(Sheets("Form16_Database").Range("A" &

I).Value), "0#####") & "\" 'ActiveWorkbook.Path
Debug.Print Trim(Sheets("Form16_Database").Range("A" & I).Value) & "Form16-" & Format(Trim(Sheets

("Form16_Database").Range("A" & I).Value), "0#####") & "-" & Format(Now(), "YYYYMMDDHHMMSS") & ".PDF"
.cOption("AutosaveFilename") = Format(Trim(Sheets("Form16_Database").Range("B" & I).Value), "0#####") & ".PDF"
FileName = Format(Trim(Sheets("Form16_Database").Range("B" & I).Value), "0#####") & ".PDF"
.cOption("AutosaveFormat") = 0
.cOptions.PDFUseSecurity = 1
.cOption("PDFOwnerPass") = 1
.cOption("PDFOwnerPasswordString") = "mypass"
.cOption("PDFUserPass") = 1
.cOption("PDFUserPasswordString") = "mypass"

.cClearCache

End With
'Printing to PDF Creator
ActiveSheet.PrintOut Copies:=1, ActivePrinter:="PDFCreator"

'Making the system wait for the PDF creator to create the file
Do Until PDFCreator1.cCountOfPrintjobs = 1
DoEvents
Sleep 1000
Loop

PDFCreator1.cPrinterStop = False
Sleep 1000

''and To fix digital signature used below code from Acrobat SDK 8.1..

''VB code for fixing Digital Signature --calling jaascript file from SDK.

Sub GetDigitalSignature(PDFFilepath As String, PDFFileName As String, PFXfile As String, Password As String, Top As Double,

Left As Integer)

Dim gapp As Acrobat.AcroApp
Dim gpddoc As Acrobat.AcroPDDoc

Dim jso As Object
Dim FullPath As String
Dim avDoc As CAcroAVDoc
Dim boK As Boolean
Dim ppklite As Object
Set avDoc = CreateObject("AcroExch.AVDoc")
Set gapp = CreateObject("acroexch.app")
Set gpddoc = CreateObject("acroexch.pddoc")
boK = avDoc.Open(PDFFilepath, PDFFileName)
gpddoc.Open (PDFFilepath)

Set jso = gpddoc.GetJSObject()
jso.SetUserPassword (Password)
jso.SetUserDigitalIDPath (PFXfile)
jso.SetSignTop (Top)
jso.SetSignLeft (Left)
jso.app.execMenuItem ("ADBESDK:AddSignature")
avDoc.Close (True)
gapp.Exit

End Sub

Now i am able to create PDF with Digital signature. But We want to assign password protection too..and problem is once we fix Digital signature we can't change security.

My problem is to pass password at the time of opening PDF for embedding signature. Password window should not prompt to the user while running VBA application.

Can you please help me to pass password on fly when file prompt password while opening PDF file. As file need to be opened at the time of fixing signature using sdk javascript code.

pdf saveas tiff/bmp problem

$
0
0

Does anybody know if there is setting to fix this problem of mine when saving pdf as tiff/bmp.

 

Application Version : Acrobat Pro XI/Acrobat Pro DC 2017

 

1. open a pdf file with text as outline.

2. saveas pdf to tiff

3. change tiff setting resolution to 300dpi

4. continue with saving as tiff

 

after examining the saved tiff file carefully, some text (japanese fonts) with 1-2px space will look like it is being filled by the color of the text. looks like anti-alising is not performed during saveas, hence the filled effect.

 

Note: the problem disappear when the pdf is exported in 600dpi

 

Side by Side Comparison of text

side_by_side_comparison.png

email merge with Adobe

$
0
0

I am a single user mainly of the creative suite but also Live Cycle and Acrobat Pro.

 

There are various 3rd party email mail merge programs (like PDF Machine Merge) but which, if any, Adobe product manages this process?

 

JohnB

CreateObject("AcroExch.PDDoc") not working any more

$
0
0

I have been using Excel macros for years, which would generate Word documents from data and then convert them to pdf with the Acrobat VBA-API. Since Adobe Reader DC has been installed last week in our company (Acrobat 11.0 and Acrobat 10.0 are also installed in the Adobe folder), this does not work any more -nothing changed from my side:

 

Sub add_bookmarks2pdf()

Dim myPdfDoc As Acrobat.CAcroPDDoc

,,,,

Set myPdfDoc = CreateObject("AcroExch.PDDoc")

..

the line Set myPdfDoc = CreateObject("AcroExch.PDDoc")   now throws an error.

 

Any option to fix this? Is it a referencing issue? I am using Acrobat ...

(abrobat11/Acrobat.tlb) as a reference, but later on this points to ...reader10/..../Acrord32,dll)

Using a WebBrowser control to view PDF and execute embedded javascript

$
0
0

Hello,

 

How can I execute the embedded javascript inside a pdf?

 

I'm using the default WPF WebBrowser control to view a pdf. 

 

Here's the XAML:

<WebBrowser Name="_web"/>

 

In the .cs I do this to view the .pdf:

_web.Navigate("test.pdf");

 

Everything works great.  The test.pdf has a javascript method called "IsComplete".

How do I call the IsComplete method? 

 

I have Adobe Acrobat DC Pro installed.

Send and track for Outlook stopped working?

$
0
0

2015-07-03 Send and track for Outlook worked perfect. Today (same environment, no changes made by me or system administrator) I just get a message (in Swedish) "This Adobe ID can not be found. Open Acrobat and log in with your Adobe ID". Wich I did. Several times. Also closed Outlook inbetween and so on. Sad that this excellent service from within Outlook (that MS failed to offer, despite all kind of "professional" Sharepoint services) stopped working so soon. Is there anything I can do to restore the function?

How do I save PDF as multipage TIFF?

$
0
0
any idea how I can accomplish this task?

AVCommandNew - Optimize Scanned Pages action

$
0
0

What's the AVCommand's name for Optimize Scanned Pages "Scan:OPT" action? I want to call AVCommandNew, but the name for this action is not documented in the SDK. Is there a way how to call it from the plugin?

Thanks.

Adobe Acrobat and RPA, what license do I need?

$
0
0

Is it possible to use Adobe Acrobat to automate a process with RPA on a server. A process like reading a PDF document, apply OCR and extract information from it. What's the appropriate license for this?

Can I add rich text to a richtext-enabled FormField using VB?

$
0
0

I want to populate a richtext form field with a formatted string compiled by a vb.net app.

 

 

Dim pdDoc As New Acrobat.AcroPDDoc

pdDoc.Open("my.PDF")

Dim jso = pdDoc.GetJSObject

Dim myFld = jso.getField("MyFld")

 

Dim mySpans = myFld.richValue

Assuming that myField.value is "This is MY field", with "MY" in bold,

I get back 5 spans: "This is"," ","MY"," ","field", the fontWeight on all is 400 except for "MY" which is 700

I change mySpans(2).text from "MY" to "YOUR", and write the spans back:

myFld.richVale = mySpans

expecting to see "This is YOUR field", but I don't

 

Am I missing something here, or can I just not do it this way?

 

Had lots of experience setting value, font and sizes on fields - which I managed to decipher from "JavaScript for Acrobat  API Reference", but not this...

The examples I've found all refer to Java - nothing for VB (or even C#, which might have helped).

 

Any help much appreciated.

 

Thanks

 

Dave

LNK2019 error in during plugin build

$
0
0

I am getting linker error while building acrobat plugin , do i need to add some lib in input.

I already have Headers in include directory and Acrobat DC in installed? 

 

Severity Code Description Project File Line Suppression State

Error LNK2019 unresolved external symbol "public: static int __cdecl TTC_GLOBAL_UTILS::GetBookmarkPageNum(struct _t_PDDoc *,struct OPAQUE_64_BITS)" (?GetBookmarkPageNum@TTC_GLOBAL_UTILS@@SAHPAU_t_PDDoc@@UOPAQUE_64_BITS@@@Z) referenced in function "void __cdecl DelOldBookmarks(struct OPAQUE_64_BITS,int,struct OPAQUE_64_BITS)" (?DelOldBookmarks@@YAXUOPAQUE_64_BITS@@H0@Z) TTC Plug-In E:\TTC\AddBookmarks.obj 1

get non unicode character in pdf

$
0
0

Hi Team,

It is possible to get the all Non-Unicode characters from pdf text?, If possible which method should i use.

 

 

Thanks,

Maruthu

Viewing all 2571 articles
Browse latest View live