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

I do not know how to use PDDrawPageOrCosObjectToBuffer () method in the Mac environment.

$
0
0

Use the PDDrawPageOrCosObjectToBuffer () method of Acrobat DC SDK in Mac environment,

I want to get a screen shot image of the PDF in the Bitmap.

 

A description of PDDrawPageOrCosObjectToBuffer () in Acrobat DC SDK API References, but I do not understand how to use the method.

Please tell me this usage.

 

If there is a sample code using PDDrawPageOrCosObjectToBuffer (), I'm happy.


アクロバットXI(体験版)で電子署名をして、定款認証を電子申請すると、却下されます。体験版ではだめでしょうか?

$
0
0

アクロバットXI(体験版)で電子署名をして、定款認証を電子申請すると、却下されます。体験版ではだめでしょうか?

Unable to edit documents after opening in SDK

$
0
0

I have an application that stores documents inside a database.  The application pulls the documents out of the database into a temporary location so that the users can view and edit them.  I am using the OLE interface and can open the files using the SDK, but the PDF files do not appear to be editable if I open them using the OpenInWindowEx.  I am using the following code to open the documents:

 

apdfApp = new TAcroApp(this);
apdfApp->Connect();
apdfDoc = new TAcroAVDoc(this);
apdfDoc->Connect();
apdfDoc->OpenInWindowEx(vFileName,long(pPDF->Handle),AVOpenParams::AV_DOC_VIEW,1,0,PDViewM ode::PDUseThumbs, AVZoomType::AVZoomFitWidth,0,0,0);

 

After opening the document, I cannot use any of the fill and sign tools, nor annotate the document, even though under the document security it shows that changing the document is allowed.  Am I missing a flag or some type of setting to allow edits?

pdfissue.png

Access Violation Error

$
0
0

Hi,

 

We have developed a windows application in .Net 4.5/C# in 64-bit architecture and got a functionality to show PDF documents within our application.

 

This feature exists for a long time in our application,recently we started facing application crash  and when we looked at the error in event log , we could see "Access violation error"  in AcroPdf64.dll.

 

Before we used Adobe 11.0.0 version and After upgrading to 11.0.11 patch, we are experiencing this issue.

 

We checked the Acropdf64.dll in our machine and available in C:\Program Files (x86)\Common Files\Adobe\Acrobat\ActiveX folder.

 

But in Adobe 11.0.0 , we don't have AcroPDF64.dll and exists in latest Adobe versions. Since Adobe upgraded latest version we started facing this problem, We suspect this DLL.

 

Would you please let us know if any one already faced this issue?

 

On further analysis using “Process Monitor”, we have found that while using the application, the “AcroPDF” dlls both 32bit(Acropdf.dll) and 64(AcroPDF64.dll) bit are invoked. not sure , this could cause the problem , It is just our view.

 

Note: This weird issue happens from the version 11.0.8, but with very less occurrence, so we missed to noticed that. Now after upgrading 11.0.11, the occurrence is very frequent and happens 4-6 times daily.

 

Can you please provide us solution / workaround for the same?

 

Regards,

Guru

acrobat 9 plugin: set printerName and unicode printerNameW but can't print to it

$
0
0

Plugin works with Acrobat 8:

set printer name:

ASPlatformPrinterSpecRec aspr;

memset(&aspr, 0, sizeof(ASPlatformPrinterSpecRec));

aspr.size = sizeof(ASPlatformPrinterSpecRec);

strcpy_s(aspr.printerName, sizeof(aspr.printerName), (LPCTSTR)m_csPrinter);

 

then print to the printer using AVDocPrintPagesWithParams

 

 

with Acrobat 9 ( plugin Acrobat DC SDK) setting as  required unicode name:

/** Unicode names of the printer. When both <code>printerName</code> and <code>printerNameW</code> are valid, the Unicode name is used. */

    //ASUns16 printerNameW[kPrinterSpecUnicodeNameLen];

    CString csPrinterA = m_csPrinter;   

    int lenA = lstrlenA((LPCTSTR)csPrinterA);

    int lenW = ::MultiByteToWideChar(CP_ACP, 0, (LPCTSTR)csPrinterA, lenA, 0, 0);

::MultiByteToWideChar(CP_ACP, 0, (LPCTSTR)csPrinterA, lenA, (LPWSTR)aspr.printerNameW, lenW)

 

However when using AVDocPrintPagesWithParams Acrobat 9 still prints into default printer.

Where my code is wrong?

move object or shift page

$
0
0

Hi!

 

I have many files with x A4 pages.

In the top-right of the pages there is a box with name and address.

 

Can I move the box?...I need to translate box down for some millimeters...

 

Another solution is, shift all the content of the page down (not only the box...).....what can I do in javascript?!

 

thanks

Andrea

Access Violation error in Adobe Reader 11.0.9 and later in Windows 2012 R2 Server

$
0
0

Hi ,

     Our application is Windows Application Developed in .Net Framework 4.5 and the application got a feature to show PDF documents inside .Net Windows Web Browser control.

We faced a application crash at the production environment while user does operation and keeping PDF document opened within the same application .

 

We have raised a ticket to Microsoft and had confirmed that the issue in AdobePDF64.dll .

 

I have given the details below.

 

Time Travel Position: 34B9340000014.

user32!UserCallWinProcCheckWow+0x190:

00007ffe`204244d2 41ffd6          call    r14 {acropdf64!DllUnregisterServer+0x2e85c (00000000`6a695e08)}

 

0:000> kn

# Child-SP          RetAddr           Call Site

00 0000000d`ec86d450 00007ffe`20423fe2 user32!UserCallWinProcCheckWow+0x190 [d:\blue_gdr\windows\core\ntuser\client\clmsg.c @ 159]

01 0000000d`ec86d510 00007ffe`2042aaef user32!DispatchClientMessage+0xa2 [d:\blue_gdr\windows\core\ntuser\client\client.c @ 3272]

02 0000000d`ec86d570 00007ffe`21e7cb1f user32!__fnINOUTLPPOINT5+0x2f [d:\blue_gdr\windows\core\ntuser\inc\ntcb.h @ 1999]

03 0000000d`ec86d5d0 0000000d`ef69b5bc ntdll!KiUserCallbackDispatcherContinue [d:\blue_gdr\minkernel\ntos\rtl\amd64\trampoln.asm @ 572]

04 00000418`00000788 00000000`00000000 0x0000000d`ef69b5bc

 

0:000> rr9

r9=0000000dec86d640

 

--> this is right before passing LPARAM to Adobe’s component acropdf64.  LPARAM is the fourth parameter, so it is in r9.

 

Step in to the function:

 

Time Travel Position: 34B9340000024.

acropdf64!DllUnregisterServer+0x2e88f:

00000000`6a695e3b 4d63e1          movsxd  r12,r9d

0:000> kn

# Child-SP          RetAddr           Call Site

00 0000000d`ec86d3e0 00007ffe`204244d5 acropdf64!DllUnregisterServer+0x2e88f

01 0000000d`ec86d450 00007ffe`20423fe2 user32!UserCallWinProcCheckWow+0x193 [d:\blue_gdr\windows\core\ntuser\client\clmsg.c @ 159]

02 0000000d`ec86d510 00007ffe`2042aaef user32!DispatchClientMessage+0xa2 [d:\blue_gdr\windows\core\ntuser\client\client.c @ 3272]

...

--> "movsxd  r12,r9d" indicates that Adobe treats LPARAM as a 32 bit number and assign it to a signed 64 bit variable.

 

Before the move:

0:000> rr9

r9=0000000dec86d640

 

0:000> p

Time Travel Position: 34B9340000025.

acropdf64!DllUnregisterServer+0x2e892:

00000000`6a695e3e 66894c2440      mov     word ptr [rsp+40h],cx ss:0000000d`ec86d420=0000

 

After the move:

 

0:000> rr12

r12=ffffffffec86d640

--> the address is not correct.

 

Right before calling back to Windows where the access violation occurs:

 

Time Travel Position: 34B94C000003E.

acropdf64!DllUnregisterServer+0x2e903:

00000000`6a695eaf ff156bfb0200    call    qword ptr [acropdf64!DllUnregisterServer+0x5e474 (00000000`6a6c5a20)] ds:00000000`6a6c5a20={ntdll!NtdllDefWindowProc_A (00007ffe`21e7aa00)}

 

0:000> kn

# Child-SP          RetAddr           Call Site

00 0000000d`ec86d3e0 00007ffe`204244d5 acropdf64!DllUnregisterServer+0x2e903

01 0000000d`ec86d450 00007ffe`20423fe2 user32!UserCallWinProcCheckWow+0x193 [d:\blue_gdr\windows\core\ntuser\client\clmsg.c @ 159]

02 0000000d`ec86d510 00007ffe`2042aaef user32!DispatchClientMessage+0xa2 [d:\blue_gdr\windows\core\ntuser\client\client.c @ 3272]

...

 

0:000> ub .

acropdf64!DllUnregisterServer+0x2e8e9:

00000000`6a695e95 7406            je      acropdf64!DllUnregisterServer+0x2e8f1 (00000000`6a695e9d)

00000000`6a695e97 89b098000000    mov     dword ptr [rax+98h],esi

00000000`6a695e9d bb06000000      mov     ebx,6

00000000`6a695ea2 eb14            jmp     acropdf64!DllUnregisterServer+0x2e90c (00000000`6a695eb8)

00000000`6a695ea4 4d8bcc          mov     r9,r12

00000000`6a695ea7 4c8bc6          mov     r8,rsi

00000000`6a695eaa 8bd7            mov     edx,edi

00000000`6a695eac 488bcd          mov     rcx,rbp

 

0:000> rr9

r9=ffffffffec86d640

--> r9 comes from r12 that contains the bad value.

 

Now step over:

 

0:000> p

(3280.32f8): Access violation - code c0000005 (first/second chance not available)

First chance exceptions are reported before any exception handling.

This exception may be expected and handled.

Time Travel Position: 34B9540000001.

user32!RealDefWindowProcWorker+0x1e3:

00007ffe`2042e247 41847120        test    byte ptr [r9+20h],sil ds:ffffffff`ec86d660=??

 

0:000> rr9

r9=ffffffffec86d640

--> the same bad value resulting into Access Violation.


------------------------------------------------------------


Would you please help us to solve the problem?


Regards

Arockiya


Does Adobe Acrobat provide any api to extract images from the pdf?

$
0
0

Hi,

I would like to know whether the Adobe PDF Library SDK | Adobe Developer Connection provides any api to extract images from the pdf?  I am trying to build a program to extract the images within a PDF using the Acrobat SDK.  Please let me know for any APIs provided.

 

Thanks,

Praveen


Get pdf page rotation

$
0
0

Hi,

 

Can you tell me how to get the pdf page rotation. i want to do operation based on pdf page rotation whether it is 90, 180, 270 or 360.

 

I want code in c# language if there is nothing in c# then i can manage.

AxAcroPdfLib - LoadFile from another thread

$
0
0

Could somebody tell me how can I use OpenFile method (from AxAcroPdfLib library for C#) from another theread (BackgroudWorker for example).

I thing I should use InvokeRequired, but i don't now how...

Thanks for help.

AxAcroPdfLib - LoadFile from another thread

$
0
0

Hi !

 

Could somebody tell me how can I use OpenFile method (from AxAcroPdfLib library in C#) from another theread (BackgroudWorker for example).

I thing I should use InvokeRequired, but i don't now how...

Thanks for help.

Working with Acrobat API

$
0
0

Hello,

our problem is to save a pdf with Visual Basic 2013 in PDF A format. Is it possible to save or convert pdfs in PDF A format ?

If we use our Acrobat XI Professional to convert the PDFs he often loose our bookmarks. Do anyone know the Reason why ?

Can i compress our PDFs with with the API-funtcion in Visual Basic 2013.?

Why  is the pdf A File become so large ?

Embedded text is not getting extracted along with Images in OCR'd PDF?

$
0
0

Hi,

I have a set of scanned OCR'd PDF.  I am trying to extract the images within this PDF.  I am came across "Export" option in Adobe Acrobat X and using it the images within the OCR'd PDF are getting extracted.  However the problem is the text within these images are missing. 

 

Fig: #1 Image within the scanned OCR'd PDF with text on it

Screenshot_052615_125029_PM.jpg

Fig: #2 Using image extraction in Adobe Acrobat X where the text within images are missing

101002gj3350030205_img_0_Page_03_Image_0001.jpg

 

I assume the OCR is too powerful in Adobe Acrobat, which stripes the text within this image.  Please let me know for any settings available in Adobe Acrobat X to overcome this.

 

 

Regards,

Praveen

Embedded AR DC not cooperating via hostContainer

$
0
0

The new Adobe Reader DC, contrary to all prior versions, suddenly does not cooperate when embedded in the browser.

When I wanted to register a message handler, doc.external=true but doc.hostContainer=undefined.

It is difficult to explain our customers why the application is no more running correctly if they just upgraded the reader.

Distill comand not working with acrobat pro dc- MAC

$
0
0

HI, Using MAc 10.10 OS ,

INStalled acrobat pro dc .

Used following script to convert ps file to pdf.

 

tell application "Acrobat Distiller"

Distill sourcePath "path of ps file" destinationPath "output pdf file name" adobePDFSettingsPath ".joboption filepath"

end tell

 

on execution distill command it returns "false" Same command was working with acrobat 10 pro .

Kindly confirm whether distill command is deprecated and any  other command need to be used for acrobat pro dc. Kindly reply


Insert Annotation

$
0
0

Dear Forum,

 

I got a lot of information out of this forum. Thanks for that. But for my current problem I'm struggling since two days now. Perhaps somebody could give me a hint what I'm doing wrong...

 

I'd like to insert a FreeText annotation to a pdf page. I'm doing this with the below code, which works finde except there are two things I don't understand:

1) how can I rotate the whole annotation by 90°? I'd use a transformation matrix, I couldn't figure out, where to apply it!

2) My test ("ORIGINAL") is left oriented. Why is the Q-Key with value 1 not centering it?

 

PDPage page_to_modify = PDDocAcquirePage(mydoc, 0)

CosDoc cdoc = PDDocGetCosDoc(PDPageGetDoc(page_to_modify));

PDAnnot annotation = PDPageCreateAnnot(page_to_modify, ASAtomFromString("FreeText"), initialRect);

 

CosObj cAnnotObj = PDAnnotGetCosObj(annotation);

 

// Set Flag Bit3: Print annotation when page is printed

CosObj cIntObj = CosNewInteger (cdoc, false, 4L);

CosDictPutKeyString(cAnnotObj, "F", cIntObj);

 

// Set Helvetica, Size 24, Color red

CosObj cStringObj = CosNewString(cdoc, false, "/F13 24 Tf 1.0 0.0 0.0 rg", 25);

CosDictPutKeyString(cAnnotObj, "DA", cStringObj);

 

// Center text -----> what is wrong here? Text remains left bound when document is displayed. Ref: pdf-spec 12.5.6.6 Table 174

CosObj cIntObj2 = CosNewInteger(cdoc, false, 1L);

CosDictPutKeyString(cAnnotObj, "Q", cIntObj2);

 

PDTextAnnotSetContents(annotation, "ORIGINAL", 8);

pdpAGEaDDaNNOT(page_to_modify, -2, annotation);

PDPageRelease(page_to_modify);

 

Where and how do I hook in with a transformation matrix? Or how else do I get the whole annotation rotated? Could somebody point me in a direction? The norotate flag is not a solution. I want to keep it at 0, the behavior is exactly right, just the initial orientation of the annotation is not as desired.

 

Regards

 

Raffael

Close / Shutdown Adobe via a Plugin

$
0
0


Does anyone know how to safely close/shutdown Adobe Acrobat or Acrobat reader from a plugin?

I have a plugin which saves the current document to a document management system, after saving the document is closed in Adobe. However, if there are no documents left I'd like to be able to shutdown Adobe itself.

Any help would be greatly appreciated.

Add footer to pdf file from Excel vba

$
0
0

Hello

 

I am looking for vba codes that will add a footer to a pdf file from a macro run in Excel.

 

Thanks,

Eric

Acrobat pro DC crashes when opening in application using acrobat API 'Open()'.

$
0
0

Acrobat pro DC crashes when opening in application using acrobat API 'Open()'.

Acrobat.AcroPDDocClass.Open(String szFullPath)

Getting the exception "System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)".

Working fine in previous versions of Acrobat.

 

OS : Windows 7

Acrobat Version : Pro DC Trial

What is the barcode field compatibility in mobile device?

$
0
0

What is the barcode field compatibility in mobile device?

Viewing all 2571 articles
Browse latest View live


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