Hello,
I am trying to work with this ActiveX control, however I cannot find what the purpose is of the execCommand function and what is possible with it.
Hello,
I am trying to work with this ActiveX control, however I cannot find what the purpose is of the execCommand function and what is possible with it.
Hello, Is it possible to use the read ActiveXControl with own read plugins ?
So that I first modify the read with my own plugin and then use the ActiveXControl in my code to use the modified reader.
I want to do table & image extraction in structured way from hundreds of PDF files automatically.
Does Adobe provides PDF SDK/APIs or support for doing so?
When using the Acrobat Customization Wizard DC to build the MST for both Reader and Acrobat Pro, what does this mean under Default viewer for PDF Files --> "On Windows 10 this option will only set default PDF viewer for browsing and file preview." I cannot find anything online to explain this not even in Adobe Support. I chose the SDK forum since there isn't a selection for the Customization Wizard. I would hope you all know the Customization Wizard for working on Reader and Pro. Thank you.
Hi Team
Is its possible to automate to create form using wizard using plugin. if so which api should i refer
Thanks and Regards
Balamurugan v
Hi all of you. I have downloaded the sample project from the server, and I have compiled with VS2008. I have compiled ActiveView sample project. No errors ... but when I run this app, I got this error:
Failed to create object :<
at CMainFrame::CMainFrame(),
MainAcroApp = new CAcroApp;
COleException e;
if (! MainAcroApp->CreateDispatch("AcroExch.App",&e))
AfxMessageBox("Failed to create object :<");
and MainAcroApp has the following m_lpDispatch value: 0x000000
of course, something went wrong ... but what ? Is there any condition to run these sample projects ? Could you assist me in order to solve this ?
Thank you.
c++ acrobat.tlb中只能找到Acrobat.AcroPDDoc.Save,而找不到Acrobat.AcroPDDoc.SaveAs,怎样才能将pdf转成txt
I want to convert a pdf file to a txt file. I don't know if acrobat SDK can be do it ,Which function is used to do it?
Hi
I am using an excel table to fill fields in a pdf after mapping the xml structure of pdf in Excel.
This is done via a vba code in excel. In synopsis, excel created a map/dictionary of data, calls in acrobat, opens the form, loads the map.
In this loading, the url on the submit button is not getting updated.
Any idea on what vba code will ensure that the url of a button on the pdf will also get updated by the values in the excel.
Ironically enough the button is available in the xml structure.
Any help will be appreciated.
Kind regards
Amit
I inserted the drawing markups text box in my PDF, and I cannot delete it. I have tried rebooting my computer closing and opening the program reopening the file, I select the text box and choose delete, it disappears and the soon as I move my cursor back up where it was it pops back up. I have tried everything I can think of, how do you get rid of a text box that comes back, right after you delete it?
Gary A
I am looking to combine multiple PDFs using the "Interapplication Communication API Reference"
The below snippet will combine the documents and preserve the layers it won't give the same results as creating a binder using the UI combine documents button
The difference being 1) The combine button creates layers for each PDF document and with the document layers created as sub layers whereas the snippet just created the doc layers without the parent layers as per document name. 2) The button automatically creates bookmarks for each document, the snippet doesn't.
Any ideas how to at least get point 1 working. It's for windows and either powershell or vbs would be easiest.
Edit: I see the bottom red bottom red arrow is in the wrong place so please use your imagination to put it in the correct place :-)
call main sub main Dim app Set app = CreateObject("AcroExch.App") Set destDoc = CreateObject("AcroExch.PDDoc") Set doc1 = CreateObject("AcroExch.PDDoc") Set doc2 = CreateObject("AcroExch.PDDoc") Set doc3 = CreateObject("AcroExch.PDDoc") src1Path = "C:\Users\Trevor\Creative Cloud Files\PDF\1.pdf" src2Path = "C:\Users\Trevor\Creative Cloud Files\PDF\2.pdf" src3Path = "C:\Users\Trevor\Creative Cloud Files\PDF\Poly2-01.ai" destPath ="C:\Users\Trevor\Creative Cloud Files\PDF\dest.pdf" destDoc.Create doc1.open src1Path doc2.open src2Path doc3.open src3Path destDoc.InsertPages destDoc.GetNumPages() - 1, doc1, 0, 1, 1 destDoc.InsertPages destDoc.GetNumPages() - 1, doc2, 0, 1, 1 destDoc.InsertPages destDoc.GetNumPages() - 1, doc3, 0, 1, 1 destDoc.Save &H1, destPath ' doc1.Close() ' doc2.Close() ' doc3.Close() ' destDoc.close; app.Exit end sub
Hi,
I used the library provided by datalogic(acrobat's) in my Java Program to extract the content from a pdf file, but after extraction, the content has symbols and non understandable fonts. The same program works fine when I extract the content of another pdf file.
Can you please let me know how to read the exact content from the pdf file avoiding the symbols and various non understandable fonts.
Thanks,
Mahesh
I created Application by Using SDK to convert Word document to PDF.
It works fine but after conversation PDF file's size increases so much.
15-20 KB Word document becomes 1 MB PDF file after conversation.
How can I optimize the PDF file's size?
I'm getting some undesired behavior. If I open an AV document from a file, and then close it, Acrobat will release the file back to the system and it works as intended. If I add a AVDocDoSave() call on the avDoc, it will save the file correctly, and it will no longer be an active document within acrobat, but Acrobat does not release the file to the system.
Here's a sample of how I'm opening a document (just using a simple hardcoded example):
const char* myPath = "C:\\a.pdf";
ASAtom pathType = ASAtomFromString("Cstring");
//Create an ASPathName object
ASFileSys fileSys = ASGetDefaultFileSysForPath(pathType, myPath);
ASPathName pathName = ASFileSysCreatePathName(fileSys, pathType, myPath, NULL);
//Open the PDF file
AVDoc myDoc = AVDocOpenFromFile(pathName, fileSys, NULL);
And then I close it like so:
AVDocDoSave(myDoc);
AVDocClose(myDoc, false);
ASFileSysReleasePath(fileSys, pathName);
After this plugin runs (and the acrobat program is still running, sitting there idle), Acrobat is not letting go of the file, it's still open. I'm using the openfiles /query command from the windows command prompt to verify, although you can also experience this by trying to change the filename while Acrobat is still open. Once I exit Acrobat, the file is released.
Am I using the AVDocDoSave call wrong or do you have any info on this? Should I be saving it a different way?
Thanks.
Hello,
I am writing reader for PRC data to extract the 3D model data from PRC. While doing this I am not getting or decide the value for type_eligible_for_reference variable to decide weather to read the CAD ID and PRC unique ID while reading extra geometry data from PRC.
Please guide me in reading the PRC data from extra geometry file structure section.
Any help in reading the PRC data will be appreciated.
Thanks in Advance.
Hi all,
comming from thread Re: Acrobat not releasing files, AV_Layer, AVDocDoSave(), AVDocClose() I'd like to clarify how I can work on the PDDoc API.
My aim is to perform an OCR on a given document. To do so I've tried for example:
ASAtom pathType = ASAtomFromString( "Cstring"); ASFileSys fileSys = ASGetDefaultFileSysForPath(pathType, "C:/_TRANSFER/a4.pdf"); ASPathName pathLaunchFile = ASFileSysCreatePathName(fileSys, pathType, "C:/_TRANSFER/a4.pdf", NULL); // AVDoc avDoc = AVDocOpenFromFile(pathLaunchFile, fileSys, NULL); // PDDoc pdDoc = AVDocGetPDDoc(avDoc); PDDoc pdDoc = PDDocOpen(pathLaunchFile, fileSys, false, false); PDAction myAct1 = PDActionNew(pdDoc, ASAtomFromString("PaperCapture")); CosObj onObj = PDActionGetCosObj(myAct1); CosDoc cosDoc = CosObjGetDoc(onObj); PDDoc pdDocNew = PDDocFromCosDoc(cosDoc); PDSaveFlags pdsaveflags = PDSaveFlags(); ASProgressMonitor asProgressMonitor = ASProgressMonitor(); PDDocSave(pdDocNew, pdsaveflags, pathLaunchFile, fileSys, asProgressMonitor, false); PDDocClose(pdDoc); PDDocRelease(pdDoc);
But this seems to be not working at all since the file is obviously updated (new timestamp) - even with a larger filesize, but not OCR is performed (tested by search for Words, which are available after a manual OCR).
Any suggestions? =)
Cheers,
S.
Dear all
I am adding annotation on the document in VBA it works but I cannot change the font size or bold it.
VBA
Set annot = JSO.AddAnnot
Set props = annot.getProps
props.Type = "FreeText" this works
props!textFont = "Times-Bold" this does changes it to pop up????
props.textFont = "Times-Bold" this fails
tried many variations of this
See below this works but can not change text size or weight!!!!!
Set JSO = objCAcroPDDocSource.GetJSObject
Set page = objCAcroPDDocSource.AcquirePage(0)
'Set pageRect2 = page.Dr
Set pageRect = page.GetSize
'******
'Add more text
popupRect2(0) = 15
popupRect2(1) = pageRect.y - 5
popupRect2(2) = 600
popupRect2(3) = pageRect.y - 30
Set annot = JSO.AddAnnot
Set props = annot.getProps
props.Type = "FreeText"
props.strokeColor = JSO.Color.Black
' props!FontStyle = "bold" this changes comment to pop up
props.borderEffectStyle = "NONE"
props.page = 0
props.rect = popupRect2
props.contents = " " & strResourceName & " " & Completion & "
Is there any method in SDK which can be used to created AvDoc or PdDoc from Steam or MemoryStream?
Basically I don't want to pass File's path but want to use its Steam or MemoryStream or even byte[] can be use.
I am trying to create a plugin that redacts words in the same fashion as the ones you are creating manually. But I am having a hard time figuring out how this can be done. I have played around with PDRedactParams and PDApplyRedactionParams but with no luck. It always create the redaction with my "custom" values for color etc.
So what I am basically asking is how to programatically create redaction annotations with the same parameters as used in "Properties" for redaction annotations in Acrobat DC?