Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all 10848 articles
Browse latest View live

Re: How can saveAs a PDDoc to image file?


Re: How can saveAs a PDDoc to image file?

$
0
0

Look at the saveAs method in the Acrobat JavaScript Reference.

Re: How can saveAs a PDDoc to image file?

$
0
0

Plugins should be using the AVConversion APIs. In the UI and scripting this is made to seem part of Save processing but it is not.

Re: License for SDK use in company’s internal application

$
0
0

Many thanks for your quick answer.

Could you give me some details on the following questions:

 

  • Can you detail why Acrobat is not suitable for server from a technical point of view ? What would prevent us for installing and using  our application (Python code that calls Acrobat IAC API) on a Windows server ?
  • From a legal point of view, are there any ways of using the application we developed other than installing it directly on end-user computers, where Adobe Acrobat is installed ? (The application is design only for an internal use in the company, with no intention of selling or sublicensing the program)

 

Thank you in advance,

Best,

Re: License for SDK use in company’s internal application

$
0
0

I believe your app is a non-starter in the form you describe it. You would need each individual to have Acrobat and to run the app themselves, on their own computer, for heir own benefit.


Refer to the Acrobat Developer FAQ for the few official words Adobe have ever given on this.

 

Informal thoughts: in general you should never consider taking an interactive tool and running on a server without checking for technical and licensing status (which you were doing, of course, this is a general note; this has been a very expensive mistake for some companies, who have ended up, for example, with bills for millions of users, being each web client). Interactive tools often expect there to be a human, to put out warning messages, or exciting adverts about new versions; to remind the user to log in; a thousand interactive things. Because of this, moving interactive apps to a service or background task means they will likely hang, either quickly, or weeks later, because there is no way to respond.

 

Informal license thoughts (I am not a lawyer): in the early days of Acrobat smart admins quickly realised they could put one copy of Acrobat on a server and provide PDF services to the whole company. Adobe's idea is to sell a copy per person, so the licenses quickly forbade this. Any attempt to move the services onto an individuals computer quickly fail too, unless the person is acting under manual orders.

 

Adobe have a separate range of server products, priced, supported, and implemented in an appropriate way. You might look into LiveCycle PDF Generator. Despite its name it includes some tools for PDF conversion to other formats.

A spot color isn't applied to PDEImage.

$
0
0

I want to apply a spot color to an image object(PDEImage).

- Case gray scale, apply a spot color to the whole image.

- Case binary image, apply a spot color to only a black part(value == 0).

 

I programed as follows, but  a spot color isn't applied to an image object.

But, when I check it by the Output Preview, the name of a spot color is applied.

 

It could be applied by processing similar to PDEPath.

Is processing needed additionally to apply it to PDEImage?

Or is it necessary to use other API?

 

Would you let me know, please?

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

// create PDEColorSpace

ColorSpaceSettingInfo colorSpaceSettingInfo = comEnvironment.getObjectObjColorInfo();

PDEColorSpace colorSpace = createRGBSpotColor(pdDoc, colorSpaceSettingInfo);

 

// create PDEColorValue

PDEColorValue pdeColorvalue;

memset(&pdeColorvalue, 0, sizeof(PDEColorValue));

pdeColorvalue.color[0] = FloatToASFixed(Tint / 100.0f);

 

// apply PDEColorSpace and PDEColorValue to PDEImage

PDEGraphicState gstate;

PDEElementGetGState((PDEElement)pdeImage, &gstate, sizeof(gstate));

PDEColorSpec colourSpec;

colourSpec.space = colorSpace;

colourSpec.value = pdeColorvalue;

gstate.strokeColorSpec = gstate.fillColorSpec = colourSpec;

gstate.miterLimit = fixedTen;

gstate.flatness = fixedOne;

gstate.lineWidth = fixedOne;

gstate.extGState = pdeExtGState;

gstate.wasSetFlags = kPDEFillCSpaceWasSet | kPDEFillCValueWasSet | kPDEStrokeCSpaceWasSet | kPDEStrokeCValueWasSet |

  kPDELineWidthWasSet | kPDEMiterLimitWasSet | kPDEFlatnessWasSet | kPDEExtGStateWasSet;

PDEElementSetGState((PDEElement)pdeImage, &gstate, sizeof(gstate));

 

// create PDEColorSpace

PDEColorSpace OCMDesigner::createRGBSpotColor(PDDoc argPdDoc, ColorSpaceSettingInfo argColorSpaceValue)

{

  /** @par 処理 */

  PDEColorSpace spotColorSpace = NULL;

  try{

  CosDoc cosDoc = PDDocGetCosDoc(argPdDoc);

 

  std::string colorName = argColorSpaceValue.colorName;

  // C0

  CosObj C0 = CosNewArray(cosDoc, false, 3);

  CosArrayPut(C0, 0, CosNewFloat(cosDoc, false, 1.00f));

  CosArrayPut(C0, 1, CosNewFloat(cosDoc, false, 1.00f));

  CosArrayPut(C0, 2, CosNewFloat(cosDoc, false, 1.00f));

  // C1

  CosObj C1 = CosNewArray(cosDoc, false, 3);

  CosArrayPut(C1, 0, CosNewFloat(cosDoc, false, argColorSpaceValue.colorValue_RCL));

  CosArrayPut(C1, 1, CosNewFloat(cosDoc, false, argColorSpaceValue.colorValue_GMa));

  CosArrayPut(C1, 2, CosNewFloat(cosDoc, false, argColorSpaceValue.colorValue_BYb));

  // Domain

  CosObj domain = CosNewArray(cosDoc, false, 2);

  CosArrayPut(domain, 0, CosNewFloat(cosDoc, false, 0.0f));

  CosArrayPut(domain, 1, CosNewFloat(cosDoc, false, 1.0f));

  // Range

  CosObj range = CosNewArray(cosDoc, false, 6);

  CosArrayPut(range, 0, CosNewFloat(cosDoc, false, 0.0f));

  CosArrayPut(range, 1, CosNewFloat(cosDoc, false, 1.0f));

  CosArrayPut(range, 2, CosNewFloat(cosDoc, false, 0.0f));

  CosArrayPut(range, 3, CosNewFloat(cosDoc, false, 1.0f));

  CosArrayPut(range, 4, CosNewFloat(cosDoc, false, 0.0f));

  CosArrayPut(range, 5, CosNewFloat(cosDoc, false, 1.0f));

  // create dictionary

  CosObj dict = CosNewDict(cosDoc, false, 6);

  CosDictPut(dict, ASAtomFromString("C0"), C0);

  CosDictPut(dict, ASAtomFromString("C1"), C1);

  CosDictPut(dict, ASAtomFromString("Domain"), domain);

  CosDictPut(dict, ASAtomFromString("FunctionType"), CosNewInteger(cosDoc, false, 2));

  CosDictPut(dict, ASAtomFromString("N"), CosNewInteger(cosDoc, false, 1.0f));

  CosDictPut(dict, ASAtomFromString("Range"), range);

  ASStm asStm = ASMemStmRdOpen(TINTTRANSFORM_RGB, strlen(TINTTRANSFORM_RGB));

  CosObj function = CosNewStream(cosDoc, true, asStm, 0, true, dict, CosNewNull(), -1);

  ASStmClose(asStm);

 

  PDEColorSpace altSpace = PDEColorSpaceCreateFromName(ASAtomFromString("DeviceRGB"));

  PDESeparationColorData data;

  data.alt = altSpace;

  data.name = ASAtomFromString(colorName.c_str());

  data.size = sizeof(data);

  data.tintTransform = function;

  PDEColorSpaceStruct clrStruct;

  clrStruct.sep = &data;

  // create a spot color

  spotColorSpace = PDEColorSpaceCreate(ASAtomFromString("Separation"), &clrStruct);

  }

  catch (bad_alloc& err) {

  TC_ASSERT(MEMORY_ERR, err.what());

  }

  return spotColorSpace;

}

Re: A spot color isn't applied to PDEImage.

$
0
0

I haven't studied your code in detail, but I think you need to read up on image dictionaries in the PDF Reference. In particular, some kinds of image (image masks) will take their colour from the graphics state, like a path. But most images have their own colour space, independent of the graphics state. I think the term "binary image" you use is in PDF terms "image mask".

Re: License for SDK use in company’s internal application

$
0
0

Thank you for your answer.

 

  • Do you know if LiveCycle PDF Generator can be used as a standalone application ? Or does it require a running lifecycle server ?
  • Also, I cannot find any trial version. Is there any way to download and try PDF Generator ?
  • Do you know where I can find information about LifeCycle pricing ?

 

Many thanks for your help

Best


Re: License for SDK use in company’s internal application

$
0
0

LiveCycle PDF Generator is designed to run as a server application. Contact sales if you want to evaluate LiveCycle products. The pricing is by negotiation, but is at enterprise levels.

createChild action doesnt not work in browser

$
0
0

bkmChildsParent.createChild currentDepartment, "this.pageNum=" & dPageNum, dCount

This code creates a bookmark with the associated javascript action. I didn't realize that these javascript actions don't seem to be working when the PDF is opened in a browser. Is there a way to get the browser to work with a javascript action, or is there a way to add a non javascript action to these bookmarks within vba?

Re: createChild action doesnt not work in browser

Re: createChild action doesnt not work in browser

$
0
0

And does it have the Acrobat plugin inside or is it using some 3rd party PDF viewer?

Re: access acrobat pdf (File Properties data ) programatically for every pdf on a drive

$
0
0

I would suggest going a different route. There are PDF libraries out there that can be used in a stand-alone application (written in Java, for example), which is much better suited for this kind of task (ie, scanning an entire drive for PDF files and extracting data from all of them). It could even be used to extract the Bates numbers, if those appear somewhere in the file's metadata, or even in a known location on the pages. I've developed similar tools in the past.

advance nested bookmark automation using VBA

$
0
0

Had anyone used/created/found code which controls advance child bookmarks during pdf merging using VBA for Microsoft Access 2016?

Does Acrobat SDK support extract hyperlink from PDF file?

$
0
0

I want extract hyperlink from PDF

Does Acrobat SDK support extract hyperlink from PDF file?

Or

Exist Library support .Net?

Please give me a advice.

Thanks.


Re: Does Acrobat SDK support extract hyperlink from PDF file?

$
0
0

By "extract" you mean you want a kind of report? A plugin in C++ could do this. No library, no C#.

Re: createChild action doesnt not work in browser

$
0
0

I tested in both Firefox and Chrome. As you pointed out it was the built in viewers of these two browsers that was opening the pdf. Since the pdf I am generated will be public and I can't control what viewer they use is there a way to get these bookmarks to work within the 3rd party viewers. I know that when I create bookmarks manually (CTRL+B) from within Acrobat it works, but not using the javascript action from vba.

Re: createChild action doesnt not work in browser

$
0
0

The PDF Viewer from Google doesn't support this.

Re: createChild action doesnt not work in browser

$
0
0

I ended up having to create bookmarks via menu actions. If u are able to stick with javascript actions then createChild will work. If not use the code below to create your bookmarks.

 

gApp.MenuItemExecute ("NewBookmark")
newTitle = newBookmark.GetByTitle(PDDoc, "Untitled")
newTitle = newBookmark.SetTitle("Title")

Convert html to pdf

$
0
0

We have a .NET program and want it to convert html file into pdf file. I wonder if the Acrobat SDK has any .NET api or Windows command line to do so?

 

And for licensing, we have purchased Adobe Acrobat DC standalone version (that means not the cloud version). Does it come with Acrobat SDK license?

Viewing all 10848 articles
Browse latest View live


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