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

Upload a document to Doc Cloud automatically

$
0
0

Hi All;

i'm looking for a way to automate the uploading of a document via an exposed API to the Adobe Doc Cloud so that a link to the document can be shared rather than the document itself.

Is this possible? has anyone already solved this problem before?

thanks

William


reflow command in SDK????

$
0
0

Can you use the reflow command in the sdk so that you can reflow documents in an application or a browser window instead of inside Acrobat?

adobe 8.1 sdk download

$
0
0

Hi,

 

I can't find the download of Adobe 8.1 SDK...

I am using the 8.1 3D version, and I have to find its SDK!

 

Thanks

Cancel printing on bad mode in PDDocWillPrintDocInMode

$
0
0

Hi guys

 

I'm trying to force printing with document+comments with a plug-in as I want to replace the print command.

 

If I want to print silently, it's OK thru javascript

If I show the print dialog, the user may change the setting, my PDDocWillPrintDocInMode notification will reflect that.

 

If the mode is wrong, how do I cancel the whole print process?

 

Thanks

 

Christian

Nel debug di VBA le variabili di AcroExch.App e di AcroExch.AVDoc non sono visibili

$
0
0

Nel debug di VBA le variabili di AcroExch.App e di AcroExch.AVDoc non sono visibili

garbled prints from SDK 11 plugin if PDFs include CID fonts

$
0
0

Please advice: we getting garbled prints from plugin if PDFs include CID fonts and sent repeatedly. The plugin runs on Acrobat 11 Standard and is built with Acrobat 11 SDK. The same plugin source code runs on Acrobat 8 Standard built with Acrobat 8 SDK renders correct.

How to programmatically get Acrobat Reader to switch to the "Read Mode (Ctrl-H)" mode

$
0
0

Hello.

I'm trying to use OLE Automation for Acrobat Reader in my application on VFP. There are no problems anywhere, but I came across a question that I can not find the answer to: How do I programmatically get Acrobat Reader to enter the "Read Mode (Ctrl-H)" mode?

 

AdobeApp = createObject ('AcroExch.App')

AdobeDoc = createObject ('AcroExch.AVDoc')

AdobeDoc.open (AdobeFileName, '')

AdobeForm = createObject ('AFormAut.App')

AdobeFields = AdobeForm.fields

 

AdobeApp.Show

AdobeDoc.BringToFront ()

? go into Read Mode (Ctrl-H)

 

Thanked in advance for help

How to get bookmark's multiple actions?

$
0
0

Hi

 

I use PDBookmarkGetAction (aBookmark) to get the PDF bookmark's action

but if the bookmark has multiple actions, PDBookmarkGetAction (aBookmark) only get one action.

How I can get another action of the bookmark?

 

Thanks.


Integrate Successfactors to Adobe DC using Acrobat SDK

$
0
0

I need to integrate Successfactors with Adobe DC using SDK. Please suggest if this is possible.

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

Using Excel VBA to add text to a PDF file

$
0
0

I am trying to open a PDF file with Excel 2013 by using VBA and then adding text to specific locations on the PDF.

I have Adobe Acrobat 9 Pro installed on a Windows 7 PC with Office 2013.

 

Thanks in advance.

Visual Studio Undefined Objects Acrobat DC

$
0
0

Hi,

I am trying to use the Embed3dData plugin on Adobe Acrobat DC.

However, most of the objects are simply undefined...

 

I tried downgrading my Visual Studio 2015 to 2013, and still, no change...

 

Thank you!!!

 

Export to XML or Text in C# using SDK 9

$
0
0
I'm stumped on how to proceed with this. What I'd like to do is open a PDF file in code and save it out either as XML or as text. By looking at the API documentation, I can't quite figure it out.

I've found some examples that say I should call GetJSObject() as I did below, but none of the properties or methods exist on the object that are in the examples.

Any help is appreciated!

string document = @"C:\temp\test.pdf";
string documentTitle = String.Empty;
int numOfPages;

CAcroApp mApp = new AcroAppClass();
CAcroAVDoc avDoc = new AcroAVDocClass();
CAcroPDDoc pdDoc;
if (avDoc.Open(document, ""))
{
pdDoc = (CAcroPDDoc)avDoc.GetPDDoc();
Object jsAcroObj = pdDoc.GetJSObject();
numOfPages = pdDoc.GetNumPages();
documentTitle = pdDoc.GetFileName();
Console.WriteLine("Opened: " + documentTitle);
Console.WriteLine("Number of pages: " + numOfPages.ToString());
}
else Console.WriteLine("Cannot open: " + document);

Layout offset

$
0
0

Hello,


I'm having layout alignment problem. In "Content and Layout" the cards are correctly aligned to the edge of the screen. However, in the Preflight and also in the application there is a space between the cards and the margin.

Can someone help me please?

Thanks,

Looking for developing one adobe reader plugin cost .

$
0
0

The plugin will be simple, and  is going to be used internal to our company .


Layout offset

$
0
0

Hello,


I'm having a layout alignment problem. In "Content and Layout" the cards are correctly aligned to the edge of the screen. However, in the Preflight and also in the application there is a space between the cards and the margin.

Can someone help me please?

Thanks,

Two Esign tags displaying same when I try to eSign in pdf

$
0
0

Hi All,

 

I am using Adobe Acrobat Pro DC, I populated data from C# using acrofields. Regarding eSignatures, we have three Signatures in the pdf form. When I try to draw the first eSignature its ok but when try to second, the first one changed as it is like second one.

 

Can any one plz help on this.

 

Thanks

Bhanu

When using AxInterop.AcroPDFLib in .net application, sometimes the viewer is not loaded.

$
0
0

When using AxInterop.AcroPDFLib in .net application, sometimes the viewer is not loaded.

We see a gray screen instead. On a second attempt it works fine.

 

Anyone have seen a similar issue anywhere ?

Are there any logs that this DLL is creating?

 

Thank you

Reduce pdf file size. Acrobat 10 SDK

$
0
0

I have some code in Access 2010 VBA that reads records and creates a single PDF from multiple linked PDF's with bookmarks.  This code works fine:

 

<<<< CODE begin >>>>>

Private Sub BuildDatabook_Click()

On Error GoTo Err_BuildDatabook_Click

   Dim sqlStr As String

   Dim rst As DAO.Recordset

   Dim vFiles() As String

   Dim iNrOfFiles As Long

   Dim iNrOfIncorrectFiles As Long

   Dim sPDFFileName As String

   Dim sPDFBookMark As String

   Dim sNewPDFFileName As String

   sNewPDFFileName = "\\sample\" & Me.Order_Id & "\Data_Book\10000_" & Format(Now(), "YYYYMMDDhhnn") & ".pdf"

   iNrOfFiles = 0

   iNrOfIncorrectFiles = 0

   sqlStr = "SELECT * FROM TABLE WHERE Order_ID = '10000'"

   Set rst = CurrentDb.OpenRecordset(sqlStr, dbOpenDynaset, dbSeeChanges)

   Do While Not rst.EOF

      sPDFFileName = rst("FileName")

      sPDFBookMark = rst("BookMark")

      If Len(Dir(sPDFFileName)) = 0 Then

         iNrOfIncorrectFiles = iNrOfIncorrectFiles + 1

      Else

         ReDim Preserve vFiles(1, iNrOfFiles)

         vFiles(0, iNrOfFiles) = sPDFFileName

         vFiles(1, iNrOfFiles) = sPDFBookMark

         iNrOfFiles = iNrOfFiles + 1

      End If

      rst.MoveNext

   Loop

   rst.Close

   Set rst = Nothing

   If iNrOfFiles > 0 Then

      If iNrOfIncorrectFiles = 0 Then

         updfConcatenate vFiles, sNewPDFFileName

      Else

         updfConcatenate vFiles, sNewPDFFileName

         MsgBox sNewPDFFileName & " File Created, but " & iNrOfIncorrectFiles & " file(s) could not be found."

      End If

      Application.FollowHyperlink sNewPDFFileName, , True

   Else

      MsgBox "No valid files found to be merged", vbInformation, "Build Databook PDF"

   End If

   DoCmd.Hourglass False

End If

Exit_BuildDatabook_Click:

    Exit Sub

Err_BuildDatabook_Click:

    MsgBox err.Description

    Resume Exit_BuildDatabook_Click

End Sub

 

Sub updfConcatenate(pvarFromPaths() As String, pstrToPath As String)

'http://stackoverflow.com/questions/5514176/merging-pdfs-programatically-while-maintaining- the-combine-files-bookmark-s

 

Dim origPdfDoc As Acrobat.CAcroPDDoc

Dim newPdfDoc As Acrobat.CAcroPDDoc

Dim lngNewPageCount As Long

Dim lngInsertPage As Long

Dim I As Long

 

Set origPdfDoc = CreateObject("AcroExch.PDDoc")

Set newPdfDoc = CreateObject("AcroExch.PDDoc")

 

If newPdfDoc.Open(pvarFromPaths(0, 0)) = True Then

   updfInsertBookmark pvarFromPaths(1, 0), lngInsertPage, , newPdfDoc

   mlngBkmkCounter = 1

   For I = 1 To UBound(pvarFromPaths, 2)

      If origPdfDoc.Open(pvarFromPaths(0, I)) = True Then

         lngInsertPage = newPdfDoc.GetNumPages

         newPdfDoc.InsertPages lngInsertPage - 1, origPdfDoc, 0, origPdfDoc.GetNumPages, False

         If pvarFromPaths(1, I) <> "" Then

            updfInsertBookmark pvarFromPaths(1, I), lngInsertPage, , newPdfDoc

            mlngBkmkCounter = mlngBkmkCounter + 1

         End If

         origPdfDoc.Close

      End If

   Next I

   newPdfDoc.Save PDSaveFull, pstrToPath

End If

 

ExitHere:

Set origPdfDoc = Nothing

Set newPdfDoc = Nothing

Exit Sub

 

End Sub

 

Public Sub updfInsertBookmark(pstrCaption As String, plngPage As Long, _

Optional pstrPath As String, _

Optional pMyPDDoc As Acrobat.CAcroPDDoc, _

Optional plngIndex As Long = -1, _

Optional plngParentIndex As Long = -1)

 

Dim MyPDDoc As Acrobat.CAcroPDDoc

Dim jso As Object

Dim BMR As Object

Dim arrParents As Variant

Dim bkmChildsParent As Object

Dim bleContinue As Boolean

Dim bleSave As Boolean

Dim lngIndex As Long

 

If pMyPDDoc Is Nothing Then

   Set MyPDDoc = CreateObject("AcroExch.PDDoc")

   bleContinue = MyPDDoc.Open(pstrPath)

   bleSave = True

Else

   Set MyPDDoc = pMyPDDoc

   bleContinue = True

End If

 

If plngIndex > -1 Then

   lngIndex = plngIndex

Else

   lngIndex = mlngBkmkCounter

End If

 

If bleContinue = True Then

   Set jso = MyPDDoc.GetJSObject

   Set BMR = jso.BookmarkRoot

   If plngParentIndex > -1 Then

      arrParents = jso.BookmarkRoot.Children

      Set bkmChildsParent = arrParents(plngParentIndex)

      bkmChildsParent.createchild pstrCaption, "this.pageNum= " & plngPage, lngIndex

   Else

      BMR.createchild pstrCaption, "this.pageNum= " & plngPage, lngIndex

   End If

 

   MyPDDoc.SetPageMode 3 '3 — display using bookmarks'

 

   If bleSave = True Then

      MyPDDoc.Save PDSaveIncremental, pstrPath

      MyPDDoc.Close

   End If

End If

 

ExitHere:

Set jso = Nothing

Set BMR = Nothing

Set arrParents = Nothing

Set bkmChildsParent = Nothing

Set MyPDDoc = Nothing

 

End Sub

<<<< CODE end >>>>>

 

What i would like to do is when saving the file, reduce the final pdf file size as much as possible.

 

I don't see any parameters on the PdfDoc.Save that could cause the reduction in file size (hoping there is, just have not found it yet)

 

I see other Save options like PDSaveCompressed in PDSaveFlags2, but do not know how to get them to work or which ones to choose:

 

PDDocSaveParams

PDDocSaveWithParams

 

enum PDSaveFlags2 {

     PDSaveUncompressed = 1 << 0,

     PDSaveCompressed = 1 << 1,

     PDSaveCompressStructureOnly = 1 << 2,

     PDSaveRemoveASCIIFilters = 1 << 3,

     PDSaveAddFlate = 1 << 4,

     PDSaveReplaceLZW = 1 << 5,

     PDSaveOptimizeXObjects = 1 << 6,

     PDSaveOptimizeContentStreams = 1 << 7,

     PDSaveOptimizeFonts = 1 << 8,

     PDSaveOptimizeMarkedJBIG2Dictionaries = 1 << 9,

     PDSaveEnsure7bitASCII = 1 << 10,

     PDSaveAutoSave = 1 << 11,

     PDSaveOverrideCollections = 1 << 12

}

 

If none of the above will reduce the pdf file size,  I have found other options like PDFOptPDFVersion - setting it to 0x00090000 for Acrobat 9 and up, but again cannot find any examples on how to use it:

 

AVDocDoSaveAsWithParams    ()   

PDFOptPDFVersion enmAcrobatVersion - can set the version to support to (like acrobat 9 and up)

PDFOptObjectCompression - not sure what the enumerations are on this one.

 

struct _t_PDFOptParams {

     ASSize_t size;    

      ASPathName asPathDest;    

      ASFileSys fileSys;    

      ProgressMonitor progMon;    

      void* progMonClientData;    

      PDFOptPDFVersion enmAcrobatVersion;    0x00090000

      PDFOptImageOptionsRec imageOptionsColor;    

      PDFOptImageOptionsRec imageOptionsGrayscale;    

      PDFOptImageOptionsRec imageOptionsMonochrome;    

      PDFont* arrPDFontsToUnembed;    

      ASInt32 cPDFontsToUnembed;    

      PDFOptFlattenTransparencyOptions pdfOptFlattenTransparencyOptions;    

      ASBool bRemoveFormActions;    

      ASBool bFlattenFormFields;    

      ASBool bRemoveJavascriptActions;    

      ASBool bRemoveAlternateImages;    

      ASBool bRemoveThumbnails;    

      ASBool bRemoveDocumentTags;    

      ASBool bSmoothenLines;    

      ASBool bMergeImageFragments;    

      ASBool bRemovePrintSettings;    

      ASBool bRemoveSrchIndex;    

      ASBool bRemoveBookmarks;    

      ASBool bRemoveCommentsAndWidgets;    

      ASBool bRemoveDocInfoAndMetadata;    

      ASBool bRemoveObjectData;    

      ASBool bRemoveFileAttachments;    

      ASBool bRemoveCrossRefs;    

      ASBool bRemovePrivateData;    

      ASBool bFlattenVisibleLayers;    

      PDFOptObjectCompression enmObjectCompression;    

      ASBool bUnencodedToFlate;    

      ASBool bLZWToFlate;    

      ASBool bRemoveInvalidBookmarks;    

      ASBool bRemoveInvalidLinks;    

      ASBool bRemoveUnreferencedNamedDests;    

      ASBool bLinearize;    

      ASBool bSkipIrreducibleImages;    

      ASBool bSubsetEmbeddedFonts;    

      ASBool bOptimizeContentStms;    

}

 

 

But again, can't find any examples on how to use these collections.

 

Any help would be greatly Appreciated!

Retrieve words that are space separated as one word (pdwordfinderrec parameters)

$
0
0

Hi there

 

I have a strange behaviour with word finding.

 

I want the word finder to ignore spaces betwween letters, along with punctuation marks.

On some texts it does, and I get a whole 'sentence' like :"list of authorized codes"

On some constructs it doesn't work and returns indiidual words.

Example: "A/CODE 134 FAILS" returns as separate words. I can try to reconstruct, but it's a lot of work.

 

I have played with the character types table, with some sucess, but incomplete.

 

Any clue? If I use PDFEdit (and how),,will II have a better result?

 

Thanks

Christian

Viewing all 2571 articles
Browse latest View live


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