How to modified the current file?
Hi, excuse for my english, I'm developing a plug-in with SDK 9,
How can I do for modified the file opened with Acrobat Reader ?
thanks
Hi Leonard,
thanks for yuor help, I find in the documentation of Adobe SDK how to create an annotation:
PDPage page = NULL;
PDAnnot annot,textannot;
char* ptr = "This is initial text";
//Create an ASFixed object and define its borders
ASFixedRect fr;
fr.left = ASInt32ToFixed(36);
fr.top = ASInt32ToFixed(792-36);
fr.right = ASInt32ToFixed(136);
fr.bottom = ASInt32ToFixed(792-136);
//Create a PDPage object
page = PDDocAcquirePage(myPDDoc, 0);
//Create a PDAnnot object
annot = PDPageCreateAnnot (page, ASAtomFromString("Text"),&fr);
//Cast the PDAnnot object to a PDTextAnnot object
textannot = CastToPDTextAnnot(annot);
//Open the annotation, set the text, and add it to a page
PDTextAnnotSetOpen (textannot, true);
PDTextAnnotSetContents (textannot, ptr, strlen (ptr));
PDPageAddAnnot(page,-2, textannot);
but when i built my project I'm stucky for this error:
error C2065: 'PDPageCreateAnnotSELPROTO' : undeclared identifier
error C2065: 'PDPageAddAnnotSELPROTO' : undeclared identifier
error C2065: 'PDPageCreateAnnotSELPROTO' : undeclared identifier
error C2065: 'PDTextAnnotSetContentsSELPROTO' : undeclared identifier
error C2065: 'PDTextAnnotSetOpenSELPROTO' : undeclared identifier
What is I wronging ?
Excuse me for my english
Thanks in advance.
Similar Messages
-
InfoPath 2013: How to find the current file name?
Hello,
Is there any way to find the file name in the rule formulas when an existing xml file in a sharepoint form library is being edited in InfoPath? I am looking for a function that returns the current file name that is being edited.
Thank you,Hi,
According to your post, my understanding is that you want to get the current file name in the InfoPath form.
Here is a similar thread for you to take a look at:
http://social.technet.microsoft.com/Forums/en-US/a24f01d5-744c-4b75-b30d-3295311ab054/how-do-i-find-the-file-name-of-the-currently-open-infopath-form?forum=sharepointcustomizationlegacy
Best Regards
Dennis Guo
TechNet Community Support -
How to modify the Manifest file in the JAR file
Hi guys,
i am having a JAR which contains one Manifest file and 10 class files.
actually i want to do some changes on the manifest file, but by using the ,
" jar -cmf new_manifest_file jar_fileName all_class_files " option i am able to modify the manifest file by repacking the .class also.
i want to modify the manifest file without disturbing the existing class files in the JAR file.
Thanx in advance.............! ! ! !
bye,
subbuyeah, that is correct.
my doubt is,
Is it possible to modify the Manifest file which is inside the jar file, by without disturbing the Class files.
--Subbu -
How to modify the jar files information for Script Assets??
Hi,
I am using Open Script 9.2. We can add the external JAR files using Script->Script Properties--> Script Assets. I need to change the jar files when ever i am going to execute no of scripts. How can I modify them using JAVA Coding without manual handling. Is there any specific methods existed in OpenScript to serve the above scenario.
Thanks in Advance.
Thanks & Regards,
Siva ThotaHi,
When you say alter the jar file, do you mean alter the contents of the java code within the jar. If this is yes then the simple answer is no. As you are probably aware, a jar file contains pre-compiled java code, which you will not be able to alter. What is it you are trying to achieve?
A simple answer maybe to use a child script which you can include into your main script. You can then change the code in the child script, and when you play back, this 'new' code will be compiled, and included within the replay.
Regards
Wayne. -
How to get the current FILE PATH?
I want to get the File Path on my Java Programming, which class / method can get a File Path on the windows?
thanks!I want to get the current working directory(e.g.
c:\Tomcat5.0\webapps\)
If this is a web application you're talking about and you want the directory where that application is installed, that's almost certainly not the CWD. It might be one of the context or whatever variables that's available to servlets. Look in the servlet API and see what's there. -
Hi
i am able to parse and modify the xml using DOM parser
after ever modification I am using the below code to write in the file
org.apache.xml.serialize.OutputFormat format = new org.apache.xml.serialize.OutputFormat(doc);
format.setIndenting(true);
org.apache.xml.serialize.XMLSerializer output = new org.apache.xml.serialize.XMLSerializer(new FileOutputStream(xmlFile), format);
output.serialize(doc);
using the above code I am overwriting the entire xmlFile
is there an function that change only the required node the xml that change should me reflected in to the xml file
thanks in advanceYoungWinston wrote:
chi8088 wrote:
is there an function that change only the required node the xml that change should me reflected in to the xml fileI'm pretty sure there is, but I'm afraid I'm not a DOM expert.No, there is not. An XML file is really at its heart just a text file, and just like you can't simply write a change in the middle of a text file* but rather have to re-write out the entire contents, the same is true for an XML file.
* unless you use a RandomAccessFile, and know the exact position to seek, and the change doesn't cause the rest of the contents to shift, such as by adding more content or removing some. All of which are very restrictive conditions. -
How to modify the current editor contents from a JDev extension
Hi there,
I am creating an extension for JDev 11.1.1.3.0 and I am stuck... To simply things, let's say that I want to create an extension that converts the selected text in a editor to UPPERCASE.
So far, I was able to get the selected text using *((CodeEditor)getContext().getView()).getSelectedText()* inside the doit() method.
However I don't know how to update the text in the editor... I am pretty sure that it is more complicated than simply calling a setText() method but I could not find any documentation or examples in the web. Any tips?
Thanks
LuisHi Luis,
u can change the selected Text by the below command...
*((CodeEditor)getContext().getView()).replaceSelection(text.toUpperCase());*
And also u can find some samples and docimentation in the below link
http://www.oracle.com/technetwork/developer-tools/jdev/downloads/index-091862.html
Regards,
Suganth.G -
How to modify the field lengh of file upload
Hi All,
I am facing a problem with u201Cuploadu201D filed length in BSP application.
When we upload the file in BSP page, the path displayed should be the full path (i.e. from where the file is being upload the file)
Now this field is appearing 20 char length
Now I want to increase the length of the upload field (Input field) to be 100 char so that the path is visible.
In the current application the file upload is being done through a structure (attributes)
In this structure the fields are like this
PAGE_NAME
ID
FOR
TAGS
ROW_INDEX
COLUMN_INDEX
OTR_NAME
REQUIRED_NAME
MAXLENGTH
SIZE
TABLE_NAME
ON_SELECT
VALUE
DISABLED
ONCLICK
TEXT
TYPE
Using this method:
CALL METHOD cl_htmlb_fileupload=>factory
EXPORTING
Id = ls_form_save-id
RECEIVING
Element = lv_fileup.
bee_table->add ( level = 2 element = lv_fileup ).
This cl_htmlb_fileupload is named as class interface.
Which has the CLG_HTMLB_FILEUPLOAD (it is a class) it is defined in attributes.
In this class it has the attribute u201CSIZEu201D by default string 20.
Now I need to change this attribute length from 20 to 100
For this I copied the standard class CL_HTMLB_FILEUPLOAD into ZCL_HTMLB_FILEUPLOAD.
This ZCL_HTMLB_FILEUPLOAD contains all attributes of the standard class CL_HTMLB_FILEUPLOAD
Including the one class (CLG_HTMLB_FILEUPLOAD), this is defined as an attribute (ABOVE MENTIONED?)
This class is appearing in non editable mode, so I have copied this class into zclass (ZCLG_HTMLB_FILEUPLOAD).but still I am not able to edit the attribute called u201Csizeu201D
And also I am not bale to add the zclass in place of the ZCLG_HTMLB_FILEUPLOAD
Kindly tell me how to modify the length of the field u201Csize u201Cand also how to add the zclass in the attributes of one class (syntax)
Thanks in advance
Rambabu.AHi,
Class CLG_HTMLB_FILEUPLOAD is a class automatically generated when a BSP Element is created. You should not change/create such a class, unless by creating your own BSP Element.
As per your requirement, you can use the SIZE parameter of method factory:
ls_form_save-size = '100'.
CALL METHOD cl_htmlb_fileupload=>factory
EXPORTING
Id = ls_form_save-id
Size = ls_form_save-size
RECEIVING
Element = lv_fileup.
Regards,
Tanguy -
I have a MacBook and the iPod Nano that came with it. I also have a 4G(I think) 20GB iPod. I have both configured to my Macbook, using only certain playlists to be updated on each iPod.
I don't get any problems when I connect the 20GB iPod(w/ the Firewire), but whenever I connect my Nano(w/ the USB, I have to, it doesn't support Firewire), I get a message saying the iPod"cannot be updated. The current file is in use."
How do I fix this problem? I have my iPod to "Enable disk use", but everything else is OK, and I have separate playlists and designate each iPod to Sync Selected Playlists Only, and have different playlists selected.
How do I fix this and/or why is this problem happening?
(and I'm still going to ask any kind souls to check my previous posts and answer my Playlist Question thread, as that is a nagging problem as well)I fiddeled around and I am still having this problem. Can someone help me.
-
using bootcamp, was installing windows xp, at the select ntfs or fat format mistakenly selected "leave the current file system intact." How can that be changed to a correct choice. Mac side opens correctly. Windows shows disk error. and doesn't respond to press any key. When looking in the startup disk section, windows on boot camp can be seen, but not selected. (13"MacBook Pro 10.6.8)
Have a read here http://support.apple.com/kb/TS1722 for solution.
Stefan -
How to get the current executing file/itself absolute directory?
hellooo,
gentlemen/lady, how to get the current executing file/itself absolute directory?
thanks
Hello,
you can get the real path information of the JSP through the servlet context:
http://java.sun.com/products/servlet/2.2/javadoc/index.html
javax.servlet
Interface ServletContext
Method getRealPath
Christian Plenagl
Developer Relations Engineer
BEA Support
[email protected] (alex mok) wrote:
>hellooo,
>
>gentlemen/lady, how to get the current executing file/itself absolute
>directory?
>
>thanks
-
How to change the width for adf shuttle without modify the skin file
Dear Professionals
I haven an ADF Shuttle component in my jsp screen , How can i change the width for the two boxes without modify the skin files.(I know i can do that by skin but what i want to change one shuttle just in one screen not change all shuttles on other screens).
Regards
Wish79Okay, I didnt try with the trinidad selectmanyshuttle, but this worked for me on the af:selectmanyshuttle..
<af:selectManyShuttle label="Label 1" styleClass="mycustcss">
<af:selectItem label="Label1" value="value1"/>
<af:selectItem label="Label2" value="value2"/>
</af:selectManyShuttle>
<af:selectManyShuttle label="Label 1">
<af:selectItem label="Label1" value="value1"/>
<af:selectItem label="Label2" value="value2"/>
</af:selectManyShuttle> And in my css file, I have
af|selectManyShuttle.mycustcss::content { width: 800.0px;}
The first selectManyShuttle came up very wide and the second one came up in the default width..
Julian. -
I downloaded CS6 Red Plug-In and added to Package Contents, replaced the current files with the new without backing up, now my RED footage thumbnails and color-correction don't WORK! How do I get my old importerRed file back!!?? HELP!
Try asking in the Premiere Pro forum seems to be an Adobe Lab for Premiere Pro
-
How to modify the timestamp in a msg file?
Hi All,
Do you know how to modify the timestamp in a msg file which was saved from Outlook Inbox. The mail subject and body are able to be modified by selecting
Actions - Edit Message. But it looks like the mail timestamp and the To/Cc are not able to be modified.
Thanks,
高麻雀You can convert your MSG file(s) to EML format, edit Date: header in EML file with any plain text editor (like Notepad) and then convert it back to MSG.
You can use free
Convert Outlook MSG to EML Files and
Convert EML Files to Outlook MSG utilities to perform the conversion.
Alexey Kuznetsov,
Relief Software
More than 100 free add-ins for Outlook -
How and where to modify the BAI File for Electronic Bank Statement
HI,
Can anybody explaing me How and where to modify the BAI File for Electronic Bank Statement.
thanks
Sap Guru
kischowdary--gmail.comHi
Actually there were two formats BAI & BAI2, BAI2 format is latest one.
Please ask for the latest file from bank and try to process.
Thanks
Kalyan
Maybe you are looking for
-
Clc.exe stops running on opening PS CC after 14.1.1 update
After updating to photoshop CC 14.1.1 I get a report as follows Problem signature: Problem Event Name: APPCRASH Application Name: clc.exe Application Version: 0.0.0.0 Application Timestamp: 4c5cc9f6 Fault
-
Hi just been to apple store as i am having trouble 1) updating new software 2) icloud wont back up phone due to lack of storage 3) I can't but extra icloud space due to the fact the phone is a replacement and itunes cant verify the bank details 4) wh
-
Acer WQHD Display on Mac Mini i7 with Intel HD4000 chipset.
I have an i7 Mac Mini with the Intel HD4000 video. I have an Acer T272HUL monitor that will display WQHD (2560 x 1440), the exact resolution (and display panel) as the Apple 27" Cinema Display. When the resolution is set at the full 2560x1440 resolut
-
Bex query; RSBBS: GOTO ECC transaction
Hello experts, i have been looking SDN and google this afternoon, but i cannot find my specific problem. My customer wants to start an ECC transaction from a Bex query. I created a 'transaction' RSBBS variant and am testing to see how it works. From
-
Home Office Network Software Challenges - Post HP Support Assistant Update
Hi I have an existing home office network setup on an HP Officejet 7410 with assistance from 'Dean' at the end of 2009 / early 2010. Essentially I have a relatively new HP Compaq 6000 Pro MT Windows 7 32 bit main desktop connected by ethernet to a N