I'm attempting to write a C++ function that will generate the following on a PDF page:
A top bar that that has a solid line of color around it and inside a gradient that shades from white to this color top to bottom inside this bar.
Place within the top bar an icon, some text and then some optional icons on the right hand side.
Under the top bar have one or more lines of text with the color bars on the left and right hand side to match the width of the top bar.
Between lines of text draw a black line.
Below the last line of text have a color line to act as the bottom of the box.
Does anybody know of sample code that does one or more bits of this?
Do you want to add these things to an existing PDF, or make a new PDF with this as the entire content?
Do you want this for an end user owning Acrobat, a command line, a background process, a server, something else? There are important technical and licensing issues to be considered.
The first answer is – “Yes, you can do this from C++ using Adobe technology”…
Now, which piece of technology you will use will be based on the answers those questions.
I'm adding additional pages to existing files using a c++ Acrobat Pro DC DLL.
You mean a plug-in?
We're just using the C++ API from a DLL, adding in menu items to activate stuff.
It's all internal use so we don't need to bundle it up as a plug-in yet.
So you are using the IAC (Interapplication Communication) API from C++? This DLL is loaded by a differen app?
From your comments on bundling and internal use I think you may not be aware of the real reasons to use the plug-in API- which you're certainly going to need.
Thanks for the supplementary info, but you still haven't confirmed which API you are using, of the multiple APIs supported by the SDK. Or answed my other question. Never mind. To avoid wasting any more of either of our time I will say: you need to study the PDF reference so you understand the "text" and "graphics" chapters well, then write a plug-in where you must use the PDFEdit APIs to create these graphical objects.