I do not know.. inserting text in the acrobat file.

I can't speak English well. So please understand my writing even more.
Here is my code. It's getting on the web site and the files of the guide.
I changed the code a little.  and a lot of mistakes at the end of compile errors is fixed.
But in fact, when I run in acorbat receive any action.
I really appreciate that you let me know where you're going wrong.

I can't speak English well. and I am a beginner in programming.
Please help me...
Here is my code... Very strange?
------------------------------------------------------------------------------------------ --
Headers of Acrobat.
#ifndef MAC_PLATFORM
#include 'PIHeaders.h '.
#endif
#include "Resource.h".
/*-------------------------------------------------------
Declarations/definitions
-------------------------------------------------------*/
extern GHINSTANCE HINSTANCE 'C' ;
PDEContent pdeContent; / * Container for the contents of the page * /

PDSysFont sysFont = NULL; / * Used by creation of PDEFont * /

PDEFont pdeFont = NULL; / * Reference to a font that is used on a page * /

PDEFontAttrs pdeFontAttrs; / * Font attributes * /

PDEText pdeText; / * Container for the text * /

TextMatrix ASFixedMatrix; / * Text transformation matrix * /

PDEColorSpace pdeColorSpace; / * Palette * /

PDEGraphicState gState; / * Graphics to apply to operation State * /
ASUns32 fontCreateFlags;
public static ACCB1 addTextCommand void ACCB2 (void * data)
{

TODO: Replace the code below to give following command user interface event
AVAlertNote ("addText command");
/ / Create a PDEText object
PDEText pdeText = PDETextCreate();

pdeContent = PDEContentCreate();

/ / Text to write in the PDF file

char * title = "this page intentionally blank";
Get system fonts
sysFont = PDFindSysFont (& pdeFontAttrs, sizeof(PDEFontAttrs), 0);
Initialize the descriptor of police and then create the reference police.
Memset (& pdeFontAttrs, 0, sizeof (pdeFontAttrs));

Find the corresponding system font.
pdeFontAttrs.name = ASAtomFromString ("Verdana");
sysFont = PDFindSysFont (& pdeFontAttrs,sizeof(pdeFontAttrs), 0);
Create the EDP of the system font font.
Check the embedding bits to see and print fonts, or editing.
Based on the incorporation of pieces of police, decide whether to embed or subset
the police.
if ((pdeFontAttrs.protection & kPDEFontNoEditableEmbedding) == 0) {
Editing OK. Incorporate the full police.
fontCreateFlags = kPDEFontCreateEmbedded;
}
else if ((pdeFontAttrs.protection & kPDEFontNoEmbedding) == 0) {
Preview and print OK incorporation, edition is NOT OK.
A subset of the embedded police.

fontCreateFlags = kPDEFontCreateEmbedded | kPDEFontWillSubset;
}
else {
Unauthorized coating.
fontCreateFlags = kPDEFontDoNotEmbed;
}
Create the font PDE. Stir if allows to incorporate the information.
pdeFont = PDEFontCreateFromSysFont (sysFont, fontCreateFlags);

/ / Create a DEGraphicState object and set its attributes
pdeColorSpace = PDEColorSpaceCreateFromName (ASAtomFromString ("DeviceGray"));
Memset (& gState, 0, sizeof(PDEGraphicState));
gState.strokeColorSpec.space = gState.fillColorSpec.space = pdeColorSpace;
gState.miterLimit = fixedTen;
gState.flatness = fixedOne;
gState.lineWidth = fixedOne;
/ / Create an ASFixedMatrix object
Memset (& textMatrix, 0, sizeof(textMatrix));
textMatrix.a = Int16ToFixed (24);
textMatrix.d = Int16ToFixed (24);
textMatrix.h = Int16ToFixed(1*72);
textMatrix.v = Int16ToFixed(2*72);
pdeText = PDETextCreate();
PDETextAdd (pdeText, kPDETextRun, 0, 30,(ASUns8 *) title, pdeFont, & gState,)
sizeof (gState), NULL, 0, & textMatrix, NULL);

PDEContentAddElem (pdeContent, kPDEAfterLast, pdeText (PDEElement));
}
------------------------------------------------------------------------------------------ -----
There is no error in compiling.
Mission of this code is to push the button, a text is inserted.
But in fact, when I run in acorbat receive any action.
I seem to be really stupid.
I was desperate.
Please help me

The line

pdDoc = PDDocCreate();

creates a virtual pddoc.

When you want to add text to the use of current document, the following lines:

avDoc = AVAppGetActiveDoc ();

pdDoc = AVDocGetPDDoc (avDoc);

Tags: Acrobat

Similar Questions

  • Any ideas how can I insert a pdf into word, by using the option object to insert. However, the pdf file that I want to insert text and annotated lines, but once inserted comments do not appear?  any help would be greatly appreciated.

    Any ideas how can I insert a pdf into word, by using the option object to insert. However, the pdf file that I want to insert text and annotated lines, but once inserted comments do not appear?  any help would be greatly appreciated.

    You will need to find a forum for MS Word, since it is the software you are trying to manipulate in the present.  If you think that the treatment/creation of the PDF file plays a role, then you should ask in the forum for the software that you use to create the PDF file.

    This forum is for a question about downloading and installing Adobe products test, so in all circumstances, your question does not fit in this forum.

  • Cursor (cursor) appears in the text box after inserting text or the position of change

    I managed to change the position of the cursor in a TextArea as qml and C++ to help through the Publisher associated with the drop-down list.

    I checked the change to receive cursor, change of position and position again.

    However, the cursor does not appear or is not visible in the TextArea component. When I tap on the screen the cursor is displayed again.

    The cursor disappears when I insert text at the cursor position.

    No idea why or how to control the visibility of the cursor in this situation.

    I know you probaably you want to see the source code is here

    textArea.editor.insertPlainText ("plain text");

    Hello

    The cursor/caret is not visible unless the text box is focused. Code like this work for you?

            TextArea {
                id: ta
            }
            Button {
                text: "Click Me";
                onClicked: {
                    ta.editor.insertPlainText("plainText");
                    ta.requestFocus();
                }
            }
    

    Thank you.

  • Hi, I do not know where to turn: the person who takes care of all the stuff of count is out of town, this friend started Firefox and there was a message about an update, I thoght I again just click on install and wait to re start Firefox. But what I remem

    Hi, I do not know where to turn: the person who takes care of all the stuff of count is out of town, this friend started Firefox and there was a message about an update, I thoght I again just click on install and wait to re start Firefox. But what I remember is this another open window and asked me to choose 'something' (an icon or banner or?), I thought I have to click on an element (I guess I should read all clearly). Firefox updated to 3.6.4, but it also inserted some sort of what might be called a banner? But it does cover only partially the half right of my 3 toolbars at the top of the Firefox window. It cannot be used to something else because it's just a mess of colors and unknowns, except for what looks like a 'top' and what I recognize as an icon of Firefox (but only partially visible)! Now, what he does, it's partly hide this part all the toolbars and they are difficult to read and to do to turn this 'thing' impossible to understand, if I keep to? I can't find in any case to remove it or use it? But since the icon of Firefox is about it, I think you need to know what it is and how trash. I'm sorry for this accident caused my my inattention, but I'm not much of a computer person - HELP! Thanks for any help. Judi

    This has happened

    Each time Firefox opened

    Today is Thrsday June 24, 2010

    The only thing I can imagine: it's a character.

    Tools-> Add-ons-> Themes
    Here should be the character (light theme)
    and a button 'delete '.

    Click on it (delete button), and he (Persona, this mixture of colors) should disappear instantly.

    This help you?

  • Our phone will make more phone calls, and we do not know how to change the settings to restore the capabilities of phoning.

    Our phone will make more phone calls, and we do not know how to change the settings to restore the capabilities of phoning.

    Greetings jenniferfrom46,

    From your post, I see that you are unable to make phone calls. I count on the ability to use my phone a lot to make calls, so I can understand your concern. I will be happy to provide you with some information for you.

    If you can not make or receive calls on your iPhone, this article goes on measures to take to help with the issue you are experiencing.

    Have a good!

  • You use windows vista Ult; Impossible to format the dvd for backup, do not know dvd is in the drive. able to read DVDs

    You use windows vista Ult; Impossible to format the dvd for backup, do not know dvd is in the drive.  able to read other DVDs

    Hi, Virgil,.

    1. what kind of DVD are you trying to format (DVD + R or DVD + RW)?

    2. you receive messages or error codes when you try to format the drive?

    You can check if you are able to format the DVD in another computer.

    You can also read the following article and check:

    Format a CD or DVD

  • I am runing vista and do not know how to use the fax machine

    I am runing vista and do not know how to use the fax machine

    Here's how to set up Windows Fax and Scan: http://windows.microsoft.com/en-us/windows-vista/Set-up-your-computer-to-send-and-receive-faxes.  Navigate the reference links on the right for more information on how to send faxes and other information.  If you do this on every page you just, you can see all the articles on how to fax and scan and configure the system and solve problems, and many other subjects that may be necessary, useful or informative.  After that, you must be an expert on this subject.

    Here is a quick and easy way to send a fax in Vista: http://www.ehow.com/how_2029566_send-fax-vista.html.

    Unfortunately, the foregoing is available in Business, Enterprise, and Ultimate - not Basic or Home Premium.  In the latter, you need a 3rd party program.  If this is the case, here are some options:

    With the compliments of Bob F. http://www.vistax64.com/vista-print-fax-scan/127986-how-do-i-download-windows-fax-scan.html:

    Not available in Vista Home Premium Basic FAX. It is available in complete edition,
    Extreme and business.

    You might want to consider Snappy Fax at a low cost:
    http://www.snappysoftware.com/

    or the free version of BVRP:
    http://www.usr.com/BVRP/bvrp.asp

    or a full BVRP Classic Phone Tools 9: $29.90
    http://www.shop.Avanquest.com/USA/PR...S_CPT_homepage

    Look screen kinda gross but the product Snappy fax
    actually, is quite rich in features and works very well. BVRP also works very well,
    screen looks a bit better. Other that that, there are minor differences
    performance between the two.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • do not know how to install the HP Photosmart c4480 print cartridge

    do not know how to install the HP Photosmart c4480 printer cartridge

    To add to what DavidML posted. Here a link to a page that shows how to replace the cartridges of your printer model. It has videos and step by step instructions. I hope this helps.

  • I'm about to upgrade to a NEW computer and do NOT know how to approach the transfer on my Photoshop CC program/service to the new computer without LOSING any settings. Can someone advise?

    I'm about to upgrade to a NEW computer system and do NOT know how to approach the transfer on my Photoshop CC program/service to the new computer without LOSING any settings. Can someone advise?

    Trevor thanks for your advice and take the time to answer.

    What about Paul

  • I can't download the trial for inDesign (for Mac), Safari cannot open what I think is the redirection page and says he does not know how to open the app

    Safari can't open what I think is the redirection page and says he does not know how to open the app.


    It gives me the following information:

    OS X does not know how to open the addresses starting with aam

    Click on the link below and download Creative Cloud Installer file and use them to install the creative Cloud Desktop application.

    https://ccmdls.Adobe.com/AdobeProducts/KCCC/1/OSX10/CreativeCloudInstaller.dmg

  • I disabled Adobe on my old computer so that I could download in my new.  I have the disc and the serial number, but then a window came during deactivation to change my proxy settings, which I do not know how.  However the version on

    I disabled Adobe on my old computer so that I could download in my new.  I have the disc and the serial number, but then a window came during deactivation to change my proxy settings, which I do not know how.  However, the version on was on my old computer is deleted but I can't load to my other because it gives me a message that I have exceeded my limit.  My limit is 3 computers and now I have 2 and want to download to my new.  HELP I can send you the serial number

    You are allowed to have two active facilities.  You need to contact Adobe support via chat and ask them to reset your activations.

    Chat support - the link below click the still need help? the option in the blue box below and choose the option to chat...

    Serial number and activation support (non - CC) chat
    http://helpx.Adobe.com/x-productkb/global/Service1.html ( http://adobe.ly/1aYjbSC )

  • How to insert text from the text file saved using the line number of the indesign document to point specific cursor?

    I use indesign for books of the brand. I need always insert quotes from some holy books. so I need to insert text using the verse number

    If you are looking for a way to automate where to insert the text? I really don't understand what you're trying to do.

  • Insert text in the editable area specific

    I can use dom.getEditableRegionList () and dom.getSelectedEditableRegion () to write text in the selected editable area, but I would like to insert text at the beginning of an editable region called "mainContent".
    How can I do this?

    Look for this node by finding its id in the getEditableRegionList()
    Array and attach your text to its innerHTML.

    fMichel brandt

    LeedsJohn wrote:
    > Can I use dom.getEditableRegionList () and dom.getSelectedEditableRegion () to
    > write text in the selected editable area, but I would like to insert text
    > at the beginning of an editable region called "mainContent".
    > How can I do this?
    >
    >

  • My event.result may or may not return a node in the xml file. How can I avoid that TypeError: Error #1009:

    My event.result may or may not return a node in the xml file. How can I avoid that TypeError: Error #1009: cannot access a property or method of a null object reference.

    I have a very simple question. I want to take the value of

    Event.Result.Item.nodeindex1.nodeindex2.Row.MyValue;

    and assign it to a text field

    mytextTi.text = event.result.item.nodeindex1.nodeindex2.row.myvalue;

    But if a part of the tree is missing, which is also valid, so I get TypeError: Error #1009: cannot access a property or method of a null object reference.

    I tried various solutions such as the following. Is there any simple way to do this?

    If (event.result.item.nodeindex1.nodeindex2.row.myvalue! = undefined)-does not work

    Unfortunately, one must test all levels to ensure that it is not null before the reference to it. You can take advantage of the short-circuit evaluation in tying together, for example

    if (event.result.item
        && event.result.item.nodeindex1
        && event.result.item.nodeindex1.nodeindex2
        && event.result.item.nodeindex1.nodeindex2.row
        && event.result.item.nodeindex1.nodeindex2.row.myvalue)
    {
        // access the variable
    }
    else
    {
        // one of the XML nodes in the path is null
    }
    

    Or you could stay away from her a little hacky and wrap the reference in a try/catch block.

    -Tom

    Flex SDK engineer

  • oracle.as.install.engine.exception.LogInitializeException: not enough space to create the log files in the location specified in the inventory. Create a space under the null specified inventory or to point to a different directory

    Hello

    I have installed:

    -(Oracle Linux) OL 6.6

    121 GB HD

    5.0 GB RAM

    -JDK-7u80-EA-bin-b05-Linux-x64-20_jan_2015.tar.gz (Java)

    -Fmw_12.1.3.0.0_infrastructure.jar (infrastructure)

    -Fmw_12.1.3.0.0_ohs_linux64.bin (SST)

    I try to install OBIEE, I unzip these files:

    -bi_linux_x86_111170_64_disk1_1of2.zip

    -bi_linux_x86_111170_64_disk1_2of2.zip

    -bi_linux_x86_111170_64_disk2_1of2.zip

    -bi_linux_x86_111170_64_disk2_2of2.zip

    -bi_linux_x86_111170_64_disk3.zip

    I run/home/oracle/OBIEE/Disk1/runInslaller and open the screen to select the oraInventory directory, when I click OK, the error message appears (see image below):

    Error_Screen.png

    [oracle@localhost Disk1] $. / runInstaller

    Iniciando Universal Oracle install...

    Espaço Verificando Temp: deve ser superior a 1536 MB.   Passado Reais 36602 MB

    Verificando swap Espaço: deve ser superior a 500 MB.   Passado Reais 2553 MB

    Verificando monitor: deve ser configurado para exibir pelo menos 256 cores.    Reais 16777216 Passado

    2nd para iniciar o Oracle Universal Installer from/tmp/OraInstall2015-09-13_08-13-50 h Aguarde... [oracle@localhost Disk1] $ 13/09 / 2015 20:13:53 oracle.as.install.bi.util.ConsumerUIProperties getCustomPropertiesFilename

    INFO: Using a custom UI properties of the oracle/as/install/bi/config/consumer-ui.properties file

    [ERROR]: error initializing log values

    oracle.as.install.engine.exception.LogInitializeException: Espaço insuficiente para criar os log archives na Localização address para o inventario. Espaço shouts ob o inventario especificado/home/oracle/oraInventory UO aponte para outro inventario

    to oracle.as.install.engine.logging.EngineLogHelper. < init > (EngineLogHelper.java:65)

    at oracle.as.install.engine.logging.EngineLogHelper.initialize(EngineLogHelper.java:192)

    to oracle.as.install.engine.InstallEngine. < init > (InstallEngine.java:135)

    to oracle.as.install.engine.InstallEngine. < clinit > (InstallEngine.java:130)

    at oracle.sysman.oio.oioc.OiocOneClickInstaller.main(OiocOneClickInstaller.java:603)

    In English:

    oracle.as.install.engine.exception.LogInitializeException: not enough space to create the log files in the location specified in the inventory. Create a space under the null specified inventory or to point to a different directory

    What can be?

    Well, you very probably not a lot of space on the left under/Home.

    You can move to another location that is located on/home/oracle/orInventory the / partitioning of the partition where you probably have more space left if you used the default value.

    For example, as a root user:

    mkdir/U01

    MV/home/oracle/oraInventory/U01

    Update /etc/oraInst.loc and replace

    inventory_loc = / home/oracle/oraInventory

    with

    inventory_loc = / u01/oraInventory

Maybe you are looking for