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

SignPlugin tools showing an error as bad key pair file.

$
0
0

Hi,

 

My company submitted a RIKLA application and it has been approved. I've taken the received certificate file and combined with the keypair file I generated, have executed SignPlugin.exe, but it shows an error as 'Bad key pair file'. I have used it as given below.

 

SignPlugin -kp '..\private_key\key_pair' -cf '..\Adobe Plugin\RIKLA-DigCert.cc' ..\Adobe Plugin\SamplePlugin.api'

 

I have tried with both public as well as private keypair file.

 

Any help will be highly appreciated.

 

Regards,

 

Jinosh K Chacko


Adobe javascript ASN tratingin site

I want to use Javascript with Acrobat to get beyond Acrobat menu use

$
0
0

I want to learn JavaScript with Acrobat. I've been limited to the Acrobat menu tools for 3 years now and would like to expand my abilities with JavaScript. I am willing to travel to learn, but nobody is teach it that I've found. I can't figure out something as simple as inserting a time stamp into a PDF. I believe JavaScript can do it.

Automatically combine pdfs

$
0
0

I am new to Acrobat and I am looking for a way to automatically produce a PDF from a folder of PDFs.

 


I am running a macro in Excel that upon closing the documents, automatically prints the necessary sheets to PDFs, which I have saved in one file. At any given time, this folder of PDFs has the most up to date information. I would like to have a constantly up to date PDF file that combines the current PDFs and updates as the others are updated.

 

Is there some way to do this? Or something I can run to make this process a little bit faster and less hands on?

 

Additionally, some of the (Excel) PDFs are out of order. For example, ExcelWorkbook1PDF has one page that needs to go after ExcelWorkbook2PDF, Will I need to go in every time and move this file manually? Or is there a better way to do this? I can probably do it in Excel, but that would not be ideal.

 

I'm all ears.


Thank you!

Need VB.Net help with detecting vertical text

$
0
0

I have a process that detects rotated pages and sets their orientation to 0 but I also need to detect vertical text on a page and act on that. In the test files I an using the page has not been rotated but the text (rasterized) is vertical. Using the Acrobat 11.0 object model through VB.NET, how can I achieve that? The following code does handle where the page has been rotated but does not detect the vertical text. Any help is appreciated.

 

    Private Sub cmdConvert_Click(sender As Object, e As EventArgs) Handles cmdConvert.Click

 

        Dim AcroXApp As Acrobat.AcroApp

        Dim AcroXAVDoc As Acrobat.AcroAVDoc

        Dim AcroXPDPage As Acrobat.AcroPDPage

        Dim AcroXPDDoc As Acrobat.AcroPDDoc

        Dim JSO As Object

 

        AcroXApp = CreateObject("AcroExch.App")

        AcroXApp.Hide()

        AcroXAVDoc = CreateObject("AcroExch.AVDoc")

        AcroXAVDoc.Open(txtTargetFile.Text, "")

        AcroXPDDoc = AcroXAVDoc.GetPDDoc

        JSO = AcroXPDDoc.GetJSObject

 

        Dim iPageCount = AcroXPDDoc.GetNumPages

 

        For i = 0 To iPageCount - 1

            Dim rotation = JSO.getPageRotation(i)

            Select Case rotation

                Case 90

                    AcroXPDPage = AcroXPDDoc.AcquirePage(i)

                    Debug.Print("Page " & i & " was set at " & rotation & " degree rotation")

                    AcroXPDPage.SetRotate(0)

                Case 180

                    AcroXPDPage = AcroXPDDoc.AcquirePage(i)

                    Debug.Print("Page " & i & " was set at " & rotation & " degree rotation")

                    AcroXPDPage.SetRotate(0)

                Case 270

                    AcroXPDPage = AcroXPDDoc.AcquirePage(i)

                    Debug.Print("Page " & i & " was set at " & rotation & " degree rotation")

                    AcroXPDPage.SetRotate(0)

            End Select

        Next

 

        Dim strOutFileName As String = Replace(txtTargetFile.Text, ".pdf", "_Rotated.pdf")

 

        JSO.SaveAs(strOutFileName)

        AcroXAVDoc.Close(False)

        AcroXApp.Exit()

        AcroXApp = Nothing

        AcroXAVDoc = Nothing

        AcroXPDDoc = Nothing

        JSO = Nothing

 

    End Sub

listen for doc open event from folder-level script

$
0
0

How would I go about this? I'm unsure how to listen for events.

When will Acrobat support CEP?

$
0
0

When will CEP be supported for Acrobat?

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!


Where is AVExtensionMgrRegisterNotification, or AVAppRegisterNotification?

$
0
0

Where is AVExtensionMgrRegisterNotification, or AVAppRegisterNotification ?

 

I am working on the first Adobe Reader plugin, and wondering where the APIs such as AVExtensionMgrRegisterNotification, or AVAppRegisterNotification are from?

 

On Windows, I looked into all the Adobe Reader DLLs, such as AcroRd32.dll, but cannot find any exported functions like above.

 

So how can the plugins access these APIs, if they are not exported in any DLLs?

 

Thanks

enhance Scanned API

$
0
0

Hi Team,

I am not able to find enhance scan api in adobe dc SDK, can someone help me with API details to explore.

Issue with SetTitle for Acrobat Pro 2017

$
0
0

In some of my company's applications, we open up the PDF via code and set the title as something more descriptive than the file name. This has worked for both Acrobat 9 and Acrobat DC. We're now looking to switch to Acrobat 2017, and it looks like for some computers it works (except the title disappears when focus is lost) and some computers the Acrobat will error out. Does anyone know a workaround?

 

Below, the steps I can take to produce the error and the sample code that opens it up

 

SAMPLE STEPS

 

  1. Opening a PDF via an application and set title (see sample code)
  2. View PDF
  3. Lose focus of PDF
  4. Go back to PDF (title switches to GUID)
  5. Close PDF
  6. Opening a PDF via an application and set title (see sample code)

    Get the following error


    Debugging I see

    Unhandled exception at 0x5F696E3D (Acrobat.dll) in Acrobat.exe: 0xC0000005: Access violation writing location 0x00000014. occurred

 

 

 

 

 

 

SAMPLE CODE BELOW

 

public static void OpenFile(int handle, string pdfLocation, string description)

{

 

 

var gAppClass = new Acrobat.AcroApp();

var avDOC = new Acrobat.AcroAVDoc();

 

 

OpenAvDoc(handle, avDOC, pdfLocation);

 

 

avDOC.BringToFront();

gAppClass.Show();

 

 

 

 

  avDOC.SetTitle(description);

 

 

}

 

 

 

 

 

 

private static bool OpenAvDoc(int handle, Acrobat.AcroAVDoc avDOC, string pdfLocation)

{

bool result = false;

// if no foreground, or couldn't open window, open normally.

if (handle <= 0 || !avDOC.SetViewMode(0))

{

result = avDOC.Open(pdfLocation, "");

 

 

}

else

{

 

 

try

{

result = avDOC.OpenInWindowEx(pdfLocation, handle, (int)Acrobat.AVOpenParams.AV_PAGE_VIEW, 1, 0, (short)Acrobat.PDViewMode.PDUseNone, (int)Acrobat.AVZoomType.AVZoomFitWidth, 0, (short)9999, (short)9999);

}

catch

{

result = avDOC.Open(pdfLocation, "");

}

 

 

 

 

}

return result;

}

How to set page layout to single page using plugin?

$
0
0

Hi.

 

After Opening a PDF file, I want to set the page layout to single page.

 

I think maybe AVDocSetViewDefEx (AVDoc doc, ASCab viewDef)  can be used,

but I don't know how to set ASCab viewDef about page layout.

 

And,is it possible to use AVDocOpenFromFileWithParams (ASPathName pathName, ASFileSys fileSys, const

ASText tempTitle, AVDocOpenParams params) to set page layout?

 

I tried to use PDDocSetLayoutMode (PDDoc doc, PDLayoutMode mode),

but the page layout not changed.

 

If it's possible, please show me some codes.

 

Best Regard.

Reader-enabled plugin with custom annotation handler

$
0
0

We've build an Acrobat plugin with custom annotation handler which works fine. Now we're looking at reader-enabled plugin and it seems like methods like PDRegisterAnnotHandler or PDGetAnnotHandlerByName are not available in reader at all. Is it really so? Or is there any way to enable/use these methods in Reader plugin?

 

Thanks

Jozef

How to know font sizes in a digital signed pdf ? Plug-in available to do so ?

$
0
0

Hello,

 

I work in a company where graphic workflow use signed .pdf in routine.

Our regulatory department needs to check the size of the fonts AFTER THEY ARE SIGNED.

Before signature, the "modification" tool can be use to select and check font sizes within the pdfs.

Once it is signed, we cannot access to this tool and can verify sizes of fonts.

Is there another way to check it in SIGNED pdfs ?

Is there another tool or a plug-in ?

Or a specific way to create our signature to have this function still available after ?

 

VERSIONS USED :

Creation of pdfs : Acrobat 10 & DC on macs

Review/font check : Acrobat reader and Pro XI on PC.

 

Thanks in advance,

 

S. JANDOT

Acrobat DC - CreateObject - Visibility

$
0
0

In previous Acrobat Versions I was creating a instance of the Acrobat Writer by the following code:

 

Dim objAcrobat = CreateObject("AcroExch.PDDoc")

 

after the update to Acrobat DC the above code creates the Acrobat instance and shows the Acrobat visible. In the previous version it was invisible.

 

How can I create a Acrobat instance invisible.

 

Thank you

 

Thomas


How to obtain a RIKLA?

$
0
0

I've filled out the RIKLA pdf, emailed it using the application and IT BOUNCED.

I've sent an email to RIKLA Support, nothing.

 

How do I go about obtaining a RIKLA?

I have a customer using DC and Reader who wants a custom integration built between the application and a 3rd party EDRMS tool.

 

How do I go about actually calling someone to talk to them about this?

There absolutely NO way I can find a number to call... on the entire site.

 

*v. frustrated*

 

RH

How to hide an icon from the button in PDF (the fill colour remains)

$
0
0

Dear friends,

 

I am building dynamic PDF file.

 

I'd like to hide an icon from the button field in a way when the background color (fill) is still visible/preserved.

 

Which method/property should I use in Javascript? Is it possible at all??

 

Thanks a lot.

How to set the Icon Image in Acrobat lesser in size then button dimensions

$
0
0

Dear friends,

 

I need to resize/scale the button icon Image to dimensions which are lesser in size than button dimensions.

 

Let say I have this image where the icon Image scaled to the Button's dimensions -

 

Screen Shot 2017-10-23 at 13.22.57.png

And I need it like this -

 

Screen Shot 2017-10-23 at 13.23.15.png

The star is png image with transparency, thus red - it is just button's fill property.

 

Javascript solution needed, please.

 

Thanks a lot!!

Convert XFA Form to AcroForm?

$
0
0
Greetings (I'm desperately seeking an answer to this, but I'll try to keep the rhetoric toned down!):

Is there a way for Acrobat Pro (I'm current at 8.1.2) to convert a (static) XFA Form into the old AcroForm format? I have a large static XFA form (created in LiveCycle Designer), but the Java API that I'm using to pre-populate some values currently works only with the AcroForm format.

FYI, there are two "informal workarounds" to be found on the net, but I can't get either of these to work in Acrobat Pro 8:

o From Carl Young: "Create PDF -> From Web Page"; select the XFA form instead of a web page; Acrobats web page conversion tool would turn the XML inside the Designer form to a regular PDF. Only works in Acrobat 7.

o From Ted Padova: "Document->Extract Pages" (static XFA only). This option is always grayed-out on any static XFA form I create.

So unless there are other suggestions out there, would you say that my best option for an immediate solution is to track down a copy of Acrobat 7 and use that? I've tried creating an AcroForm manually with Acrobat Pro's "Tools->Forms->Text Field Tool"/etc, but it's very, very difficult to replicate all the form field config and layout we did in LiveCycle. Having to do that might force us to abandon PDF forms altogether.

Thanks very much for any suggestions!

Regards,
-Peter Demling
Lexington, MA

How to call PDPageRelease API to release pdf?

$
0
0

Here is my code.

Public Function GetPDFLastTwentyText(ByVal pstrPdfFilename As String) As String 
     Dim PDDoc As Object
     Dim CAcroRect As New Acrobat.AcroRect
     Dim PDPage As Acrobat.AcroPDPage
     Dim PDTxtSelect As Acrobat.AcroPDTextSelect
     Dim CArcoPoint As Acrobat.AcroPoint
     Dim iNumWords As Integer
     Dim iMax As Long
     Dim arPdfLines() As String
     Dim i As Integer
     Dim fso As FileSystemObject
     GetPDFLastTwentyText = ""
     Set fso = New FileSystemObject
     If fso.FileExists(pstrPdfFilename) Then
          Set PDDoc = CreateObject("AcroExch.PDDoc")
          PDDoc.Open pstrPdfFilename
          Set PDPage = PDDoc.AcquirePage(PDDoc.GetNumPages() - 1)
          Set CArcoPoint = PDPage.GetSize()
          CAcroRect.Top = CArcoPoint.y
          CAcroRect.Left = 0
          CAcroRect.Right = CArcoPoint.x
          CAcroRect.bottom = 0
          Set PDTxtSelect = PDDoc.CreateTextSelect(PDDoc.GetNumPages() - 1, CAcroRect)
          ...
          PDDoc.Close
     End If 
    
     Set fso = Nothing
     Set PDTxtSelect = Nothing
     Set CAcroRect = Nothing
     Set CArcoPoint = Nothing
     Set PDPage = Nothing
     Set PDDoc = Nothing 
End Function

I have no idea to use this API.

Although I call API directly "PDPageRelease (PDPage)" in my code, it will get error that it can't find this API.

Viewing all 2571 articles
Browse latest View live


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