Group or ungroup from elements
Moderators: Daniel - PDF-XChange, PDF-XChange Support, Vasyl - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, John - Tracker Supp, Ivan - Tracker Software, Stefan - PDF-XChange, Tracker - Clarion Support, Support Staff, moderators
Group or ungroup from elements
It would be helpful if there was a way (shortcut or function) to group selected areas, such as two set stamps, so that their position relative to each other in the document could be moved. An example would be a stamp with an overlying image of a signature. Two elements that belong together. There is definitely no group or ungroup function. Will such a feature be possible in the future?
- Dimitar - PDF-XChange
- Site Admin
- Posts: 2169
- Joined: Mon Jan 15, 2018 9:01 am
Re: Group or ungroup from elements
Hello Hausi,
Welcome to our Forum.
You can group the аnotations by several criteria:
...and while they are selected you can move them all.
Regards.
Welcome to our Forum.
You can group the аnotations by several criteria:
...and while they are selected you can move them all.
Regards.
Re: Group or ungroup from elements
Hello Hausi,
It seems to me that the "group" and "ungroup" you are referring to are not the "group" Dimitar is referring to. The "group" and "ungroup" functions you are talking about have been requested in the past in the following topic.
rakunavi
It seems to me that the "group" and "ungroup" you are referring to are not the "group" Dimitar is referring to. The "group" and "ungroup" functions you are talking about have been requested in the past in the following topic.
- Grouping / Ungrouping of markup elements (viewtopic.php?t=23821)
- I can't group objects (viewtopic.php?t=37886)
- Horizontal or vertical copy / Group elements (viewtopic.php?t=38396)
rakunavi
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
- Daniel - PDF-XChange
- Site Admin
- Posts: 10586
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Group or ungroup from elements
Hello, rakunavi
That seems to be the case, yes, and to answer the question captioned on your image, yes, these are not yet complete and do not yet server any purpose. In time that will change, but right now, there is no manual Content grouping option in the Editor.
Kind regards,
That seems to be the case, yes, and to answer the question captioned on your image, yes, these are not yet complete and do not yet server any purpose. In time that will change, but right now, there is no manual Content grouping option in the Editor.
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
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
Re: Group or ungroup from elements
I'd just like to add my vote for the ability to group markups. Would be very useful for making groups of elements -- a bit like a stamp -- except it could have color/text/etc changed.
I see in the specification that it's there:
I see in the specification that it's there:
I even tried setting the .refType and .inReplyTo properties with the following script, but it's not implemented in PXE yet...From the PDF reference v1.7:
In PDF 1.6, a set of annotations can be grouped so that they function as a single unit when a user interacts with them. The group consists of a primary annotation, which must not have an IRT entry, and one or more subordinate annotations, which must have an IRT entry that refers to the primary annotation and an RT en-try whose value is Group.
Some entries in the primary annotation are treated as “group attributes” that should apply to the group as a whole; the corresponding entries in the subordinate annotations should be ignored. These entries are Contents (or RC and DS), M, C, T, Popup, CreationDate, Subj, and Open. Operations that manipulate any annotation in a group, such as movement, cut, and copy, should be treated by viewer applications as acting on the entire group.
Code: Select all
{
let a = this.selectedAnnots;
// doesn't check if already in a group
if (a.length > 1) {
let primary;
for (let i in a) {
let RT = {};
if (primary) {
RT.refType = "Group";
RT.inReplyTo = primary;
a[i].setProps( RT );
} else {
// first one is primary
primary = a[i].name;
console.println(primary)
if ( a[i].inReplyTo ) a[i].inReplyTo = "";
}
}
}}
- Daniel - PDF-XChange
- Site Admin
- Posts: 10586
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Group or ungroup from elements
Hello, Mathew
Thank you for the added support, it is on its way thankfully, but it will likely still be a few releases before it is ready.
Kind regards,
Thank you for the added support, it is on its way thankfully, but it will likely still be a few releases before it is ready.
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
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
-
- User
- Posts: 5
- Joined: Sun Apr 09, 2023 4:25 pm
Re: Group or ungroup from elements
Hello, I really need this feature as well. I too discovered the commands and even gave them hotkeys but alas they are not working, as confirmed here.
Its really hard to do anything complex without being able to group objects together and move them as one in the future. Any chance we will see this feature in early 2024??
Thanks.
Its really hard to do anything complex without being able to group objects together and move them as one in the future. Any chance we will see this feature in early 2024??
Thanks.
- Dimitar - PDF-XChange
- Site Admin
- Posts: 2169
- Joined: Mon Jan 15, 2018 9:01 am
Re: Group or ungroup from elements
Hello Ralf_Reddings,
We can't make any promises but our developers are working on adding this feature to the PDF Editor.
We will ask them to prioritize this task.
Regards.
We can't make any promises but our developers are working on adding this feature to the PDF Editor.
We will ask them to prioritize this task.
Regards.
Re: Group or ungroup from elements
Also looking forward to this functionality being implemented. Hopefully soon...
I'm also curious why the Commands were made available prior to the feature, is this by accident?
I'm also curious why the Commands were made available prior to the feature, is this by accident?
- Dimitar - PDF-XChange
- Site Admin
- Posts: 2169
- Joined: Mon Jan 15, 2018 9:01 am
Re: Group or ungroup from elements
Hello jake_se,
These are place holders that are not visible in the main menu.
Regards.
These are place holders that are not visible in the main menu.
Regards.
Re: Group or ungroup from elements
Hi,
there ist still an Use for it.
Please implement it
there ist still an Use for it.
Please implement it
- Dimitar - PDF-XChange
- Site Admin
- Posts: 2169
- Joined: Mon Jan 15, 2018 9:01 am
Re: Group or ungroup from elements
Thanks for the input, Eldereld.
We will. That is why we have these place holders.
We will. That is why we have these place holders.

Re: Group or ungroup from elements
Not in build 387 yet - actually this script attempting to group annotations with javascript will crash the application: viewtopic.php?p=173066#p173066
- Dimitar - PDF-XChange
- Site Admin
- Posts: 2169
- Joined: Mon Jan 15, 2018 9:01 am
Re: Group or ungroup from elements
Hello Mathew,
Please generate a full crash report:
https://www.pdf-xchange.com/knowledgeba ... estigation
...and send it to us for investigation, to support@pdf-xchange.com
Regards.
Please generate a full crash report:
https://www.pdf-xchange.com/knowledgeba ... estigation
...and send it to us for investigation, to support@pdf-xchange.com
Regards.
Re: Group or ungroup from elements
It crashes every time. Paste this script into the javascript console, select two annotations, and run the script:
Code: Select all
{
let a = this.selectedAnnots;
// doesn't check if already in a group
if (a.length > 1) {
let primary;
for (let i in a) {
let RT = {};
if (primary) {
RT.refType = "Group";
RT.inReplyTo = primary;
a[i].setProps( RT );
} else {
// first one is primary
primary = a[i].name;
console.println(primary)
if ( a[i].inReplyTo ) a[i].inReplyTo = "";
}
}
}}
- Paul - PDF-XChange
- Site Admin
- Posts: 7348
- Joined: Wed Mar 25, 2009 10:37 pm
- Contact:
Re: Group or ungroup from elements
Hi, Mathew
the devs have found the cause of this and it will be corrected for the next build.
While there is more to be donme on our side to make the script work propoer;ly, it was pointed oout to tme that if you reverse the order of these two lines, it won't crash:
make
into
so it exists before using it. We should catch that exception, and we will do so in future, but this will at least prevent a crash unbtil the next build.
I hope that helps.
Thanks for bringing it to our attention.
the devs have found the cause of this and it will be corrected for the next build.
While there is more to be donme on our side to make the script work propoer;ly, it was pointed oout to tme that if you reverse the order of these two lines, it won't crash:
make
Code: Select all
RT.refType = "Group";
RT.inReplyTo = primary;
Code: Select all
RT.inReplyTo = primary;
RT.refType = "Group";
I hope that helps.
Thanks for bringing it to our attention.
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
- Paul - PDF-XChange
- Site Admin
- Posts: 7348
- Joined: Wed Mar 25, 2009 10:37 pm
- Contact:
Re: Group or ungroup from elements
Hi again Mathew
until the next build is released with the (now) fixed setProps() function you can avoid using it this way and it should work:
until the next build is released with the (now) fixed setProps() function you can avoid using it this way and it should work:
Code: Select all
{
let a = this.selectedAnnots;
// doesn't check if already in a group
if (a.length > 1) {
let primary;
for (let i in a) {
let RT = {};
if (primary) {
a[i].inReplyTo = primary;
a[i].refType = "Group";
} else {
// first one is primary
primary = a[i].name;
console.println(primary)
if ( a[i].inReplyTo ) a[i].inReplyTo = "";
}
}
}}
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Re: Group or ungroup from elements
I need to group/ungroup objects I added to my PDF drawings as comments, I that way I can copy the whole group, it could be locked or unlocked.
- Daniel - PDF-XChange
- Site Admin
- Posts: 10586
- Joined: Wed Jan 03, 2018 6:52 pm
Re: Group or ungroup from elements
Hello, Tajin2310
Thank you for the interest, Comment grouping is particularly complex to perform properly, and many PDF applications do not support it, so ensuring we offer it in a way that is stable is a priority. As such, this is taking a much longer time to develop than originally planned, but it is on its way. I cannot offer a timeline, but rest assured, we have seen the large user demand for such a feature, and it is in development.
Kind regards,
Thank you for the interest, Comment grouping is particularly complex to perform properly, and many PDF applications do not support it, so ensuring we offer it in a way that is stable is a priority. As such, this is taking a much longer time to develop than originally planned, but it is on its way. I cannot offer a timeline, but rest assured, we have seen the large user demand for such a feature, and it is in development.
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
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
Re: Group or ungroup from elements
Look forward to this feature.
- Stefan - PDF-XChange
- Site Admin
- Posts: 19673
- Joined: Mon Jan 12, 2009 8:07 am
- Contact:
Re: Group or ungroup from elements
I was going crazy trying to figure why the two commands ("group"/"ungroup") were not working. Glad I found this thread. Any news on the development of them?
Thanks.
Thanks.
Re: Group or ungroup from elements
Hello delano84,
The following most recent response in this topic may be helpful.
rakunavi
The following most recent response in this topic may be helpful.
Best regards,Stefan - PDF-XChange wrote: ↑Wed Mar 12, 2025 10:22 am Unfortunately the answer is still that there are no changes in that respect and there's no permanent grouping possible for PDF objects, sorry!
rakunavi
TOP desires for PDFXCE
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
forum.pdf-xchange.com/viewtopic.php?t=39665 LassoTool
forum.pdf-xchange.com/viewtopic.php?t=38554 CmtGarbled
forum.pdf-xchange.com/viewtopic.php?t=37353 FulScrMultiMon
forum.pdf-xchange.com/viewtopic.php?t=41002 DisableTouchSelect
- Stefan - PDF-XChange
- Site Admin
- Posts: 19673
- Joined: Mon Jan 12, 2009 8:07 am
- Contact: