Circular text box

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Craigap
User
Posts: 9
Joined: Tue May 07, 2024 10:15 am

Circular text box

Post by Craigap »

Is it possible to create a circular text box? We need to put incremental numbers next to some symbols on a drawing but need them to be circular rather than square. I know I can create a circle then a text box over it, but it becomes pain to do this for 100+ numbers that I have to do.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Circular text box

Post by Stefan - PDF-XChange »

Hello Craigap,

Not a circular text box as such - however you can use a dynamic stamp that would have a circular outline and a counter inside. So all you would need to do is select the stamp once and then click on your PDF file multiple times to add consecutive counters:
image.png
Please download the "Stamp_indexes.pdf" attachment you would find at the bottom of this post, and place it in
%Appdata%\Tracker Software\PDFXEditor\3.0\Stamps
(If this folder does not exist - open %Appdata%\Tracker Software\PDFXEditor\3.0 and then create the \Stamps subfolder manually.)

After that restart the Editor and you would now have a new stamp collection that would allow you to use those counters.

Kind regards,
Stefan
You do not have the required permissions to view the files attached to this post.
Craigap
User
Posts: 9
Joined: Tue May 07, 2024 10:15 am

Re: Circular text box

Post by Craigap »

Perfect, thanks Stefan.

How do you create these?

Is there a way to have more that one set of increments on a single document, differentiated by a colour for example? I'm just wondering if I can use this for counting up symbols (manually) on a drawing.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Circular text box

Post by Stefan - PDF-XChange »

Hello Craigap,

Those are created with some JS in them.
You can check the code inside the stamps collection, however we are unable to assist much further with JS coding for you, so you would need some JS knowledge on your side + probably this reference:
Adobe JS API reference.


Kind regards,
Stefan
KD952
User
Posts: 109
Joined: Mon Feb 13, 2023 6:13 am

Re: Circular text box

Post by KD952 »

Hello Stefan!

Using your custom stamp menu.


image(1).png
image.png


Craigap would not need any knowledge in JavaScript.

Kind regards,
Daniel
You do not have the required permissions to view the files attached to this post.
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19868
Joined: Mon Jan 12, 2009 8:07 am

Re: Circular text box

Post by Stefan - PDF-XChange »

Hello KD952,

The stamps I shared with him are with some persistent counters - so I thought he might need similar ones.
Yes - using the built in tool a simple stamp can indeed be created, thanks for reminding me of that KD592!

Kind regards,
Stefan
User avatar
David.P
User
Posts: 1638
Joined: Thu Feb 28, 2008 8:16 pm

Re: Circular text box

Post by David.P »

The dynamic stamp stuff is awesome. While I don't seem to remember how exactly I did it back then, this is the dynamic stamp that I created some time ago. It can be used both for numbers and for text.

image.png
You do not have the required permissions to view the files attached to this post.
David.P
PDF-XChange Pro
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11036
Joined: Wed Jan 03, 2018 6:52 pm

Circular text box

Post by Daniel - PDF-XChange »

:)
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
cadirkin
User
Posts: 5
Joined: Tue Oct 02, 2018 3:24 pm

Re: Circular text box

Post by cadirkin »

I have been looking for something like this. Thank you so much.
Would it be possible to update it so that a dialog box pops up and lets you enter a different starting number? For example you want to start at 100 then the next stamp would be 101.
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11036
Joined: Wed Jan 03, 2018 6:52 pm

Re: Circular text box

Post by Daniel - PDF-XChange »

Hello, cadirkin

it should be possible with some JS knowledge to accomplish that, yes. Alas, I am not an JS expert and do not have an example of such a "set and continue" counter on hand to share.

Kind regards,
Dan McIntyre - Support Technician
PDF-XChange Co. LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Mathew
User
Posts: 573
Joined: Thu Jun 19, 2014 7:30 pm

Re: Circular text box

Post by Mathew »

For the above stamp, you could run something like this in the javascript console to change the start value:

Code: Select all

this.info.stampIndex = parseInt(app.response({cQuestion: "New start value:", cDefault: this.info.stampIndex})) || 0;
At some day in the future PXE may have the ability to save code snippets like this. For now, you'd just need to paste it into the console every time, or you could make a custom tool button or menu item to run it.
KD952
User
Posts: 109
Joined: Mon Feb 13, 2023 6:13 am

Re: Circular text box

Post by KD952 »

I suppose there is no point in being stingy.

Attached are the dynamic stamps I use for numbering objects.
You just have to copy the files to your "Stamps" folder.

Don't look to hard at the graphical aspect of the stamps. They were made using PDF-XChange Viewer and I didn't have a clue back then how to work with pdfs.

Using the "reset" stamp you can enter a number or letter you want and the "inc" stamp starts from this new number or letter.

Nummerierung_magenta.pdf
Nummerierung_orange.pdf
Nummerierung_rot.pdf
Nummerierung_violett.pdf
Nummerierung_blau.pdf
Nummerierung_cyan.pdf
Nummerierung_grün.pdf
You do not have the required permissions to view the files attached to this post.
User avatar
Dimitar - PDF-XChange
Site Admin
Posts: 2208
Joined: Mon Jan 15, 2018 9:01 am

Re: Circular text box

Post by Dimitar - PDF-XChange »

Thanks for the help, KD952.

These will be a good addition to the stamp library.

Regards.
User avatar
PHK
User
Posts: 1396
Joined: Tue Nov 24, 2020 4:02 pm

Re: Circular text box

Post by PHK »

Thank you, KD!
All best,

FringePhil
User avatar
Dimitar - PDF-XChange
Site Admin
Posts: 2208
Joined: Mon Jan 15, 2018 9:01 am

Circular text box

Post by Dimitar - PDF-XChange »

:)