Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
yiyun0918@adobeforums.com #1
How to find Image Region and add image in it?
Hello,
I want to write a plug-in for Adobe Reader 8.First,the plug-in find the appointed Image Region such as named myImage in PDF file which designed by Adobe Designer 8.0. Then,want to add a picture in the image region when people used Adobe Reader.
I don't know whether plug-in for Adobe Reader can realize that.If it can do,how to find the Image Region?
Is there anyone can give me any suggestion?
Thanks!
yun
yiyun0918@adobeforums.com Guest
-
I know we can set max image width, but I need to set itby region. Region A has one max width; Region B another.
We can already set a maximum image width for use globally, throughout every page. Can we do it by region? This way one region can have a max... -
How to find size (in bytes) of an image using the GD image resource?
I would like to be able to determine the size (in bytes) of a file and re-adjust before output. Is this possible? Norm -- Avatar hosting at... -
can you see/find imported image file names?
I have a bunch of .tif's that I imported into Acrobat using the "Create from Mulitple Files" option. Is there any way I can bring in the actual file... -
Load JPG into Flash and find out the size of the image
does it works with local loading too? I tryed the code below with flash loading a JPEG image located on my hard drive. The widht/height of my... -
Can I take a small (320x240), blurry image, and make it a clear, large image?
Just wondering if there is an easy way to do this? I'm sure it won't be perfect cause photoshop can only work with what's there, but maybe it can... -
Bernd Alheit #2
Re: How to find Image Region and add image in it?
Before starting your project you must contact Adobe:
<http://www.adobe.com/devnet/reader/ikla.html>
Bernd Alheit Guest
-
yiyun0918@adobeforums.com #3
Re: How to find Image Region and add image in it?
We have contacted Adobe.
Can you tell me whether we can realize that function?
Thanks!
yiyun0918@adobeforums.com Guest
-
Aandi_Inston@adobeforums.com #4
Re: How to find Image Region and add image in it?
It seems unlikely that Adobe would allow you to write such a plug-in.
Have they indicated it will be allowed?
If so, this is still a major technical challenge, because a Designer
form is not a normal PDF, and 99% of the API is useless. You would
have to extract the embedded XFA XML, update the XML, and resave into
the PDF.
Aandi Inston
Aandi_Inston@adobeforums.com Guest
-
yiyun0918@adobeforums.com #5
Re: How to find Image Region and add image in it?
Thank Aandi Inston!
When I used API AFPDFieldGetName to get the name of a field,the string it return is not equal to the name that I set .Why?
Codes:
ACCB1 ASBool ACCB2 FieldEnumProc ( PDField fldP, void *clientData)
{
CosDoc cosDoc;
CosObj fieldCosObj, keyValueObj, stringObj;
char *fieldName;
ASInt32 fieldNameLength;
DURING
if ( AFPDFieldIsValid (fldP))
{
fieldCosObj = AFPDFieldGetCosObj (fldP);
if (! CosDictKnownKeyString (fieldCosObj, "FT"))
E_RETURN( true );
keyValueObj = CosDictGetKeyString (fieldCosObj, "FT");
if ( CosName != CosObjGetType (keyValueObj))
E_RETURN( true )
if (( CosNameValue (keyValueObj) == ASAtomFromString ("Tx"))) {
cosDoc = CosObjGetDoc (fieldCosObj);
fieldName = AFPDFieldGetName (fldP);
fieldNameLength = strlen (fieldName);
stringObj = CosNewString (cosDoc, false , fieldName, fieldNameLength);
AFPDFieldSetValue (fldP, stringObj);
}
}
HANDLER
END_HANDLER
return true;
}
yiyun0918@adobeforums.com Guest
-
PDL@adobeforums.com #6
Re: How to find Image Region and add image in it?
Because those APIs are only for AcroForms. Designer creates XFA forms, and as Aandi mentioned 99% of the APIs are useless on XFA forms. You'll have to code this entirely from scratch, again as Aandi mentioned.
PDL@adobeforums.com Guest
-
yiyun0918@adobeforums.com #7
Re: How to find Image Region and add image in it?
Thanks!
1.These codes can get the Fields in PDF.So , whether Adobe's SDK provide other API to realize that?
2.If I have to begin from scratch, where do I begin?Is there any document?
3.I didn't know much about XFA.Is there any API to parse XFA?
yiyun0918@adobeforums.com Guest
-
Aandi_Inston@adobeforums.com #8
Re: How to find Image Region and add image in it?
>1.These codes can get the Fields in PDF
Yes, but only if you make a PDF which is an Acroform.
You have chosen to use Designer instead. This is completely different.
I am not aware of anything in the Acrobat SDK, except to work as I>.So , whether Adobe's SDK provide other API to realize that?
described.
You should always start a project on this scale by reading the PDF>2.If I have to begin from scratch, where do I begin?Is there any document?
Reference, but most of it will not be relevant. So you should
probably start by reading the section about XFA forms. This references
other specifications.
XFA is a form of XML. There are many APIs to parse XML files, you>3.I didn't know much about XFA.Is there any API to parse XFA?
don't need one from Adobe, once you have it extracted.
I emphasise: this is a major project. Very few programmers have
attempted projects of this kind. It would be much simpler if you could
work with Acroforms. Why are you using Designer, specifically, rather
than Acroforms?
Aandi Inston
Aandi_Inston@adobeforums.com Guest



Reply With Quote

