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

Line disappears with big zoom

$
0
0

Hello.

I need to draw line in my plugin. I create stream from string (for example) "q 0 1 0 RG 0.12 w 0 878.742 m 0 1133.86 l S Q". Then i use AVPageViewDrawCosObj. In common cases everything is OK. But with big zoom (for 100cm x 100 cm page big zoom is 750+, for 600cm x 400cm - 120+) line desappears. Different lines disappears with different zoom, but disappears all lines. What could be theproblem?

Thank you.


Call AVWindowDestroy(avWin) crashing

$
0
0

I have an acrobat plugin. It has a customized button. Clicking the button do the followings:

 

char* pdfFilePath;

string tempPath = getenv("TEMP");
tempPath.append("\\fv.pdf");

pdfFilePath = &tempPath[0]; 

AVDoc avDoc = AVAppGetActiveDoc();

if(avDoc==NULL) {
  // if no doc is loaded, make a message.
  //AVAlertNote("There is no PDF document loaded in Acrobat.");
  return;
}
else {
  PDDoc pdDoc = AVDocGetPDDoc (avDoc);

  if(InitializeDDEServer())
  {
   if(_access(pdfFilePath, 0) != -1)
    DeleteFile(pdfFilePath);

   PDDocCopyParamsRec tmp;
   tmp.cancelProc = NULL;
   tmp.cancelProcData = NULL;
   tmp.fileSys = ASGetDefaultFileSys();
   tmp.newPath = ASPathFromPlatformPath(pdfFilePath);
   tmp.progMon = NULL;
   tmp.progMonData = NULL;
   tmp.saveChanges = true;
   tmp.size = sizeof(tmp);
 
   PDDocCopyToFile(pdDoc,&tmp);
  
   ASFileSysReleasePath(NULL,tmp.newPath);

 

   HWND hWndClass= FindWindow("Jade:form", NULL);
   if (hWndClass != NULL)
   {
    SetForegroundWindow(hWndClass);
   }

   // send poke
   DDEPoke(ddeInst, hConv, "File Document", pdfFilePath);
   DDEDispose();
  
   //close avDoc window automatically
   AVWindow win = AVDocGetAVWindow(avDoc);
   AVDocClose(avDoc, true);
   //AVWindowUserClose(win, false);
   //AVWindowDestroy(win);

  }  
}

 

Everything works fine except on some PCs, the machine crashes when call AVWindowDestroy or AVWindowUserClose. Any suggestion? Thanks.

looking for expert who can highlight 3d model node in adobe reader with external program

$
0
0

I need to select and highlight 3d model node in adobe reader with my program.from outside of adobe reader. it seems there is no out-of-box API in stndard SDK. I want to outsource this task fully or partly. If you have the solution or able to provide consultant in this area, please send message to me.

AVAppGetLanguageWithParams() returns garbage

$
0
0

I am trying to get the Acrobat/Reader localization language from my plugin. The things are fine using AVAppGetLanguage() but according to SDK this function it was suppressed by AVAppGetLanguageWithParams(). Unfortunately, this function returns false and fills with garbage the AVAppLanguageParams structure.

AVAppLanguageParams langs_param;

ASBool bRet = AVAppGetLanguageWithParams(langs_param);

//or
AVAppLanguageParamsRec langs_param;
ASBool bRet = AVAppGetLanguageWithParams(&langs_param);

 

Am I doing something wrong? I was thinking that I might need to allocate the langs_param on heap, but I don't find the proper way to do it.

 

Related to AVAppGetLanguage() where can I find the complete list of Language Codes of the possible returned values?

Find text using regular expression and add highlight annotation

$
0
0

Hi Friends

                   Is it possible to find text using regular expression and add highlight annotation using plugin

I am getting "Error in Loading Dll" when i instantiate AcroExch.App.

$
0
0

I am getting "Error in Loading Dll" when i instantiate AcroExch.App.  This has worked find when i had Adobe Acrobat 9.0 and Adobe Reader 10.0 installed in my System.  Now the Adobe Reader 10.0 has been uninstalled and Adobe Reader 11.0.10 has been installed in my system.  Ever since this code is not working.  I have delveloped some critical applications in Exceh VBA and not it is not working.  Can anyone provide me the correct solution to overcome this issue.  Is this because the Acrobat and Reader version incompatibility.  If so, what is the workaround for this issue.

VB.NET get crop value

$
0
0

Hi all

 

I'm doing some vb.net automatisation with the acrobat sdk. I've been able to rotate landscape page, get the pagesize etc.

But I've founded an issue with the pagesize, even if the page (8.5x11) gets cropped to 8.2x11, GetSize method returns 8.5x11.

 

How can I get boundaries or the real pagesize value (8.2x11)?

 

Regards,

can excel slicers and power chart be embedded into a pdf and being interactive?

$
0
0

Hi,

Create a data dashbord using powerpivot and slicers, is that possible to convert it to a pdf?


Can Acrobat Pro Editor be embedded into a HTML or .NET application?

$
0
0

Hi Team,

 

Greetings!

 

We have a requirement where we need to embed the acrobat pro editor in our application.

 

Technology to be used : HTML & JavaScript (OR) .NET

 

Please let us know if this is possible.

 

Regards,

Manoj

Convert PDF to Images

$
0
0

Is it possible to convert a multipage PDF file to multiple images with the option to convert to Colored Image (.png) or Grayscale Image (.tif) using Adobe Acrobat XI SDK in C#.

Add tags through Acrobat SDK

$
0
0

I need to add tags programmatically to my PDFs which are not tagged PDFs and I want to create tags by Acrobat SDK. I can make menu available by

mApp.MenuItemExecute("ShowHideNavigationPane");

mApp.MenuItemExecute("ShowHideTagsPanel");

but I do not know how to run "Add Tags to Document" menu. Following is not working:

mApp.MenuItemExecute("AddTagsToDocument");

 

Thanks for help

AcrobatSDKを使用して最適化したPDFの作成を実行するとAcrobatが強制終了してしまう。

$
0
0

初めて投稿させていただきます。

 

AcrobatSDKを使用して最適化されたPDFの作成を行いたいのですが、文書ファイルを開いた状態で、以下のプログラムを

実行すると保存するタイミングでAcrobatが強制終了してしまいます。

開発環境は以下の通りとなります。

Acrobat、AcrobatSDK:10

VisualStudio:2008

 

/**** 以下ソース ****/

AVDoc avDoc=AVAppGetActiveDoc();

 

PDEOptParamsRec pdfOptParams;

PDFont font[1]={};

 

ASText t=ASTextFromPDText("Standard");     //Standardの設定値を取得

ASBool b = AVGetOptimizerParamsForPreset(t, avDoc, &pdfOptParams);

 

pdfOptParams.bRemovePrivateData = true; //[他のアプリケーションのプライベートデータを破棄]にチェック

pdfOptParams.bRemoveDocInfoAndMetadata = true; //[文書情報とメタデータを破棄]にチェック

pdfOptParams.arrPDFontsToUnembed = font;     //埋め込まないフォントの設定

pdfOptParams.cPDFontsToUnembed = 0;

 

AVDocSaveOptimized(avDoc, &pdfOptParams);

 

AFfree(t);

/************************/

※日本語表記のコメントは実際には存在しておりません。

 

arrPDFontsToUnembedプロパティとcPDFontsToUnembedプロパティは取得したタイミングではarrPDFontsToUnembedに

0x00000001が設定されていたため、当初Null値を設定しておりましたが、不当なパラメータとはじかれてしまうため空の配列を

設定しています。


デバッグを実行するとAVDocSaveOptimized(avDoc, &pdfOptParams);終了時に「Unhandled exception at 0x00000000 in

Acrobat.exe: 0xC0000005: Access violation.」メッセージが表示されるのでメモリのアクセス違反になると思いますが、

どのプロパティの設定値が違反しているのか不明な状態です。


fileSysプロパティの値が現PDFファイルと異なるために発生しているのではと思い、APIReferenceにfileSysプロパティにNullを設定することで、

現文書ファイルの情報が設定されると記載されていたため、Null値を設定しましたが、「不当なパラメータ」としてはじかれてしまいます。

 

お手数をおかけ致しますが、ご教授いただけませんでしょうか。

よろしくお願い致します。

Iterate through PDF to extract links and link box size

$
0
0

Hi,

 

I am new to working with PDFs programmatically. I have read through some of the documentation and looked at come of the .NET code samples.

 

What I am interested in accomplishing is reading through a PDF and extracting the link from what would be the link properties in Acrobat. I would also like to be able to get the size of the container (rectangle) that the link resides in.

 

Of the three options (IAC, javascript, and plug-ins), I believe this can only be accomplished by using a plug-in? Would that be correct?

 

I have also seen in passing that this may be able to be accomplished through the PDFEdit layer? Is that only available through the PDF Library or is it also available through the Acrobat SDK?

 

Thanks in advance.

Double sided printing

$
0
0

Hi,

 

I'm trying to print a PDF that is double sided. The double sided part works fine but the back side flips upside down when  its printed on the other side. How can this be fixed?

 

Thanks!

Acrobat Windows Registry Setting FEATURE_BROWSER_EMULATION

$
0
0

I need to set this registry setting with the value 11000 (0x2AF8), but after Acrobat is launched the setting is reverted back to the default value of 9999 (0x270F).  Can anyone tell me why Acrobat reverts this registry setting, and can I prevent it from doing so?

 

Full Registry Path:

 

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION


Does Adobe have a way for my Windows C++ program to convert an HTML string to PDF?

$
0
0

Will the Acrobat SDK or another Adobe library or plugin enable my Windows C++ program (not .NET) to convert HTML to PDF? Thanks.

Invoke OCR in an existing PDF programmatically to make the text searchable

$
0
0

We have thousands of scanned documents in PDF format. They can be made text searchable by opening the document and telling it to do OCR on itself. Is there an API in the SDK that will allow this process to be automated?

I have been able to open PDF docs using C# API Process.Start("Full_path_To_the_PDF_File") in windows 7 or windows 8 with all previous versions of Acrobat32 reader.

$
0
0

I have been able to open PDF docs using C# API Process.Start("Full_path_To_the_PDF_File") in windows 7 or windows 8 with all previous versions of Acrobat32 reader.

However, with v11.0, the same command, in Windows 8, it does not open the PDF document. I can see the Acrobat(32) started in the task manager, but the document does open. Not sure how I can troble shoot this problem. Any help would be appreciated.

Adobe Acrobat Message : ''To view the flash technology content in this PDF, please install the version of flash player that supports Adobe reader and acrobat "

$
0
0

I am using interop acrobat dll in one of my client , when trying to open a pdf file in acrobat X the following message appears :

 

''To view the flash technology content in this PDF, please install the version of flash player that supports Adobe reader and acrobat "

 

Is there any workaround to fix this issue ?... 1.png

will installing the flash player fix the issue ?

 

thanks

C# excel to pdf

$
0
0

A Colleague of mine has created a PDF from and Excel range in VBA using PDFMaker.

 

I am trying to implement this functionality in c# but it is not create the pdf file.

 

this is basically what i am doing:

 

var application = excelWorkbook.Application;

var comRef = application.COMAddIns.Item("PDFMaker.OfficeAddin");

 

Microsoft.Office.Interop.Excel.Worksheet sheet = excelWorkbook.Sheets.Item["Sheet1"] as Microsoft.Office.Interop.Excel.Worksheet;

Microsoft.Office.Interop.Excel.Range range = sheet.Range["A1", "D2"];

 

PDFMaker adobeObject = comRef.Object;

var pdfSettings = new Object();

 

adobeObject.GetCurrentConversionSettings(out pdfSettings);

                    var oSettings = (ISettings)pdfSettings;

                    oSettings.AddBookmarks = true;  //make desired settings

                    oSettings.CreateDocInfo = true;

                    oSettings.AddLinks = false;

                    oSettings.AddTags = false;

                    oSettings.ConvertAllPages = false;

                    oSettings.CreateFootnoteLinks = false;

                    oSettings.CreateXrefLinks = false;

                    oSettings.OutputPDFFileName = pdfFileName;

                    oSettings.PromptForPDFFilename = false;

                    oSettings.ShouldShowProgressDialog = true;

                    oSettings.ViewPDFFile = false;

                    oSettings.FitToOnePage = true;

                    oSettings.PrintActivesheetOnly = true;

                    oSettings.LayoutBasedOnPrinterSettings = false;

                    oSettings.PromptForSheetSelection = false;

                    oSettings.PDFACompliance = 0;

                    oSettings.SetConversionRange(range);

                 

                    oSettings.AlwaysFlattenLayers = false;

                    oSettings.CreateLayers = true;

                    oSettings.JobOptions = "Standard";

                    oSettings.PreserveTransparency = true;

                    oSettings.OpenLayerPane = true;

                    oSettings.ConversionRoute = true; // Key to getting smooth gradients

 

                    var result = 0;

                    adobeObject.CreatePDFEx(oSettings, out result);

 

 

this isn't working the result object equals -1

 

Message was edited by: Alan Barry

Viewing all 2571 articles
Browse latest View live


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