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

Default View is not activating when 3D Annotation Object is opened

$
0
0

I am developing plugin to create 3D Annotation Object.

 

I have written code of Default View. But it is not activating when 3D Annotation object is opened.

However it is activated when i click on "Default View" on 3D Toolbar, but background color, rendering style and lighting type for 3D object are also changing.

 

I dont want Background Color, Rendering Style and Lighting type to change!!!

 

My code:

 

CosDoc cosDoc = CosObjGetDoc(cosAnnot);

CosObj cosView = CosNewDict (cosDoc, true, 8);

 

CosDictPutKeyString(cosView,"XN",CosNewString(cosDoc, false, "Default View", strlen("Default View")));

CosDictPutKeyString(cosView, "Type", CosNewName(cosDoc, false, ASAtomFromString("3DView")));

 

double gMatrixVals[12] =

{

          -1.0, 0.0, 0.0,

          0.0, 0.0, 1.0,

          0.0, 1.0, 0.0,

          0.0, -255.0, 0.0

};

float gCOvalue = (float) 255;

CosDictPutKeyString(cosView, "MS",CosNewNameFromString(cosDoc, false, "M"));

CosDictPutKeyString(cosView, "CO", CosNewFixed(cosDoc, false,FloatToASFixed(gCOvalue)));

CosObj matrixArray = CosNewArray(cosDoc, false, 12);

for(int i=0; i<12; i++)

          CosArrayPut(matrixArray, i,CosNewFloat(cosDoc, false, (float) gMatrixVals[i]));

CosDictPutKeyString(cosView, "C2W", matrixArray);

CosDictPutKeyString(cosAnnot, "3DV", cosView);

 

 

Can anyone help me?

Thanks in Advance.


Required path for opened pdf document if two Acrobat.exe are associated with it.

$
0
0

Hi,

 

We are getting two Acrobat.exe in taskmanager for single opened document and we are intercepting windows API. how can we get the opened document's absolute path? or is there any API provided by Adobe to get the absolute path of opened document ?

 

Thanks

-Dharmendra Singh

How to increase/decrease Rotation Speed and change Rotation Axis on 3D Toolbar in Annotation Object

$
0
0

I am developing plugin to create 3D Annotation Object.

There is a Rotate tool on the 3D Toolbar.

 

And it is working properly when an 3D object is activated. The object gets rotated along its axis.

But as soon as any view is selected from the list of Views on 3D Toolbar, the rotation speed increases magnificantly. Also the axis of rotation is also changed.

 

So can any one help me to control Rotation.

 

Waiting for Positive Reply.

 

 

Thanks in Advance,

Akash

acrobat10 unload plug_ins crash。

$
0
0

I wrote it in plug_in project using Delphi ocx public module. Use the heap create control object inside the plug-in PluginUnload function release object will collapse.

#import "C:\Program Files\iSignature_V8\iSignatureManage.ocx"

using namespace iSignatureManage;

extern ISignatureManageCtrlPtr trl;(The above put it in stdafx.h Public header file)

trl.CreateInstance("iSignatureManage.SignatureManageCtrl");(put it in PluginInit)

trl.Release()(put it in PluginUnload)

(Delphi is the active control platform will create a form variables which variables are global variables, the active control of VC platform to create the form is a class of local variables. So as long as it is use Delphi to create active project by the above method call will make acrobat to collapse. )(When I don't close the window or on the task bar has opened the application would not have to crash the acrobat. I don't understand is I close the utility module why the inside of the form causing collapse acrobat.)

Have no way to solve the problem? Office plugin will not appear this problem.{Q38%}8R({P_CXJ]{1B8W@1.jpg

Remove password security from page

$
0
0

I am developing one plugin , it is setting password in correct manner ,

while clearing the password i am using PDDocGetSecurityData(pdDoc) method to get exsistng security datastructure and after that i am calling ASFree to free that datastructure. eventhough when i reopen the document it is asking me for the password . Is it the right approach to clear the password or i need to  use some other api ?  

Automatically Print from Access?

$
0
0

I have an Access application that I'm creating for my employer.

 

We have links to hundreds of PDFs saved on the server associated with our specific product records.

 

I have a query that works, that returns a list of the appropriate PDFs for the specifics required.

 

Is there a way to automatically print those PDFs without someone having to open each individual file and click "Print"?  Some of the queries could return 400+ files.

 

If there is VBA code that someone can share, or if someone can even answer whether this is possible to do through Adobe Acrobat Reader, I would greatly appreciate it!

 

Marcie

 

 

 

PRC Compressed Tessellation

$
0
0

Hi,

 

We are working on a program that should be able to output PRC files. For various reasons, we are not able to use the SDK, but must instead write the file bit by bit. To better understand the structure of a PRC-file, we decided to start out by reading already existing files. Everything went smoothly until we ran into the compressed tessellated data section (SerializeHighlyCompressed3DTess), where Huffman coding is applied.

 

According to the PRC working draft and the PRC Format Specification, the huffman data is stored as unsigned integers. However, when we interpret the data that way it turns out that number of bits for each integer is sometimes larger than 32, indicating that the WriteUnsignedInteger-method was not used to produce the data at all.

All the previous data in the stream seems to be all right, which makes us quite sure that we are reading at the right position in the bit stream.

 

This is the file we are trying to read. Is there any additional documentation on the PRC file format available? Is it possible that some other method than WriteUnsignedInteger should be used to store huffman data?

 

Any help would be much appreciated!

Integrating Adobe Professional with Java webapps: resources? introductions?

$
0
0

I'm interested in learning what resources there are for integrating Java and Adobe Professional, in general.

 

If it helps, my projects already use the Spring Framework.

 

My boss is particularly interested in being able to fill out a PDF form from within a Java webapp and have that data go directly to our database.

 

She mentioned that .net had a lot of bridges to Adobe Professional.

 

I would rather have new projects be in Java so I am eager to find if there are any easy bridges between Java and Adobe Professional for more than just the one task I mentioned.

I would greatly appreciate the names of resources and links to introductions in integrating the features Adobe Acrobat Professional has to offer with Java web technology as this is a completely new area to me.

 

Thanks

 

Steve


Add Annotation data to particular location in existing page.

$
0
0

I created one template file and i want to add 3D annotation data in perticular place in template page.

How is it possible ?

Simultaneous Scrolling in Two Windows

$
0
0

Hi,

 

I need to use Acrobat Reader to compare different instances of the same document. It would help my workflow immensly if I were able to scroll in two Reader windows simulatenously so that I don't need to keep moving my cursor between documents. It would also be great if there were an easy way to toggle this setting on and off. Any ideas? It seems like a script that allows for this functionality might be possible.

 

Thanks!

Drop down tekst box

$
0
0

Hello,

 

Is it possible to insert a 'drop down' tekst box in a document? And if it is, how?

 

I want to hide information in a tekst and make it accessibel if you push a word or button. For example, I write a long tekst about html. Some people know what html means, but not everyone. I want to make the general tekst as short as possible so I don't want to explain what html means. My idea is to make the general tekst and put a small icon/button after the word html. If someone push the button there will drop down a extra tekst box with information about html. If you understand it you can push the button again and the tekst will be hide again. (see the red buttons in this article: https://decorrespondent.nl/97/de-bijna-betekenisloze-prognose-bbp/2486 110-1f3c55cd)

 

I want to make an own tekst 'behinde' some words. So the general information is short but if people want to know more about a word or concept in the tekst it's possible to read extra tekst.

Is this possible or does anyone have an idea how to make something similar (mouse over, pop up box, etc.).

 

Btw, now I use MS Word to make PDF files, but if it isn't possible with word I will use another program to make this possible.

 

Thanks!

Hidding AcroPDF.dll NavBar

$
0
0

Hi,

 

i'm incorporating ArcoPDF.dll into an old VB6 program for diaplying PDF files, i'musing Acrobat Reader 11.0.05 (AcroPDF.dll version 11.0.3.37).

 

for security purposes i need to block the user from saving the PDF - it will be displayed in a Kiosk station and i dont want the user to have the ability to browse the computer / network like the 'Save As' window allows.

It is only for viewing purposes.

 

I found that setting the AcroPdfObject.Src property to the full path of the pdf file with additional parameters ("#navpanes=0&toolbar=0&statusbar=0&messages=0") works, that is:

AcroPdfObject.Src = "C:\Temp\SomeFile.pdf#navpanes=0&toolbar=0&statusbar=0&messages=0"

displays the file without showing the navbar etc.

 

However - This changes when i load another pdf file to the same control... even if the new file still has the same parameters added to it - the nav bar appears.

 

What am i doing wrong?

 

and while we're at it - how can i eliminate the 'Ctrl+S' combo to disable the keyboard bypass to the 'Save As' dialog?

 

Thanks,

 

Guy.

placing a 3d annotation inside the readymade pdf template file

$
0
0

I want to ask Is it possible to find the rectangle size inside the ready made template file dynamically?

suppose the file contains two rectangles one to place 3d annotation and one is showing the information about object . then how to find the the exact size of the rectangle to put 3d annotation? and it should be able to find the position of the rectangle  if we change the template file,is it possible ?

Bounding box of inserted U3D model or of scene in plugin?

$
0
0

Hello ,

 

     I am developing c++ plugin which basically insert 3D annotation in page.And i have inserted U3D model in .Everything worked great till here.

 

     But i have implemented populate view code in it means i have specified the all views "Front" ,"Back","Top" ,"Bottom" ,"Left" and "Right" .Which requires me to calculate camera setting .There i required the bouding box of model so that i can calculate camera position.

 

   To do this i have done ,

      C2W [left_x left_y left_z up_x up_y up_z view_x view_y view_z trans_x trans_y trans_z]

 

      i got the way to calculate left ,up ,view vector value ..But the last thre entries specifies position of camera from world axis center and which i can calculate only if i know the model position or its bouding box .

   

     I also found java script api "scene.computeBoundingBox()"which returns the bouoding box. and it is normally possible to execute document  jave script using plugin api "AFExecuteThisScript" but it wont execute 3d java script like  "scene.computeBoundingBox()" .

 

     Does anyone know how can i get bounding box of 3D model ?

 

Thanks,

What is the best way to handle compressing images in a PDF?

$
0
0

I'm investigating adding compression of images in a PDF into our product.  E.g you have an uncompressed image xobject and you compress it with a filter and save space in your resulting PDF.

 

I have an example of a case I'm not quite sure what makes sense or not, I have an image with BitsPerComponent =8, and an Indexed colorspace with 256 entries with a base color space of CMYK, using a FlateDecode filter

 

So I've noticed when I pass the pdf through CVision's pdf compressor, the resulting image has BitsPerComponent=8, a DeviceRGB colorspace, using a DCTDecode filter, so essentially we went from 8 bits per pixel to 24 bits per pixel and most importantly the PDF is smaller.

 

But when I pass the pdf through Acrobat's PDF optimize, the resulting image has BitsPerComponent =8, a DeviceCMYK colorspace, using a DCTDecode filter, so essentially we went from 8 bits per pixel to 32 bits per pixel and most importantly the PDF is smaller.

 

So I'm wondering how this 'should' be done, is either approach fine or is changing the original colorspace asking for trouble?  I have code that can convert the original image to a Windows BGR bitmap, so I can easily stick the new image in and compress with DCTDecode in terms of DeviceRGB but I'm not so sure if that is the right approach.

 

I'm wondering how Acrobat does it?  They essentialy went from 8 bit per pixel data with a color palette to 32 bit per pixel data.


Exporting Annotations through IAC

$
0
0

Using Acriobat Pro XI, I am using the following WinBatch routine to try to export comments (annotations) to an FDF file from an open PDF document:

 

fdfer="C:\temp\test.fdf"



AcroApp = ObjectCreate("AcroExch.App")


AvDoc = ObjectCreate("AcroExch.AVDoc")


PdDoc = ObjectCreate("AcroExch.PDDoc")


FormApp = ObjectCreate("AFormAUT.App")


AvDoc.Open(fdfer,"")


AcroApp.Show()

 

; wait for user to press a button

 

fds = FormApp.Fields

fds.ExportAsFDF(fdfer, "", "False",)

...

Exit

 

An fdf file is created but it is empty, although the document contained annotations.

Looking at the SDK, it appears that the IAC "ExportAsFDF" method does not have a parameter allowing for the export of annotations:

void ExportAsFDF (LPCTSTR bstrFullPath, LPCTSTR bstrSubmitButton, BOOL bEmptyFields, const VARIANT& arrFields);

even though its javascript counterpart does (bAnnotations).

 

I would appreciate any advice that might allow me to work around this problem.

 

Mike

Creating bookmark using VBA

$
0
0

Hi all,

 

Im creating a pdf file with a number of bookmarks in it from Access using VBA. I want each bookmark to refer to a page in the document. Just wanted to confirm that I have understood this correcly. With current functionality I must use javascript to do this i.e this.pageNum=2 when I create the bookmark(createChild under JSObject). There is no possiblity to create it using the "standard" go to page functionality? I want to avoid javascript as much as possible since this functionality can be disabled. Any ideas would be greatly appreciated.

 

Best Regards,

 

Ingman

Tagged PDF using Acrobat

$
0
0

Hi,

 

I am using Acrobat 7 to add tags to the document.

 

My PDf document contain many website address, some website address are linked and some website are without link. But after completion of tagged PDF. All the website address are linked.

 

My expectation is I want to retain website address text without link which are not linked in original document.

 

 


 

Thanks and Regards

Thirusanguraja Venkatesan

Bounding box of inserted U3D model or of scene in plugin?

$
0
0

Hello ,

 

     I am developing c++ plugin which basically insert 3D annotation in page.And i have inserted U3D model in .Everything worked great till here.

 

     But i have implemented populate view code in it means i have specified the all views "Front" ,"Back","Top" ,"Bottom" ,"Left" and "Right" .Which requires me to calculate camera setting .There i required the bouding box of model so that i can calculate camera position.

 

   To do this i have done ,

      C2W [left_x left_y left_z up_x up_y up_z view_x view_y view_z trans_x trans_y trans_z]

 

      i got the way to calculate left ,up ,view vector value ..But the last thre entries specifies position of camera from world axis center and which i can calculate only if i know the model position or its bouding box .

  

     I also found java script api "scene.computeBoundingBox()"which returns the bouoding box. and it is normally possible to execute document  jave script using plugin api "AFExecuteThisScript" but it wont execute 3d java script like  "scene.computeBoundingBox()" .

 

     Does anyone know how can i get bounding box of 3D model ?

 

Thanks,

Add new view in 3D annotation

$
0
0

Hello,

 

     I have been developing a c++ plugin which embed 3D model in PDF.

     I want to add new views with 3D annotation.How i can do this ?

 

     In 3D annotation property form inside 3D tab i can add views so that they appears in list of view of 3D annotation .How i can do this programatically ?

 

Thanks,

Viewing all 2571 articles
Browse latest View live


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