• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

C++ example of colored box around lines of text?

Community Beginner ,
Nov 21, 2018 Nov 21, 2018

Copy link to clipboard

Copied

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?

TOPICS
Acrobat SDK and JavaScript

Views

720

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 21, 2018 Nov 21, 2018

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 21, 2018 Nov 21, 2018

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 21, 2018 Nov 21, 2018

Copy link to clipboard

Copied

I'm adding additional pages to existing files using a c++ Acrobat Pro DC DLL.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 21, 2018 Nov 21, 2018

Copy link to clipboard

Copied

You mean a plug-in?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 21, 2018 Nov 21, 2018

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 21, 2018 Nov 21, 2018

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 22, 2018 Nov 22, 2018

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 22, 2018 Nov 22, 2018

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines