Editing native PDF elements

PDF-XChange Editor SDK for Developers

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

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
lidds
User
Posts: 552
Joined: Sat May 16, 2009 1:55 pm

Editing native PDF elements

Post by lidds »

I want to give the ability within my application to edit native PDF elements, I noticed you already have this feature within PDFXChange Editor. I would like to know if the following is possible:

1. How to activate PDF native text editor tool?
2. Is there a possibility to do a search and replace text feature that would work on native PDF text fields?
3. How to enable vector editor tool?
4. Whilst testing the edit PDF vector tool, I noticed that if I selected a circle for example this might also select other shapes on the PDF, almost like they were grouped together. Is it possible to run a command that would ungroup the elements and then maybe the user could draw a region around the graphic and group these together?

Thanks

Simon
User avatar
Sean - PDF-XChange
Site Admin
Posts: 1032
Joined: Wed Sep 14, 2016 5:42 pm

Re: Editing native PDF elements

Post by Sean - PDF-XChange »

Hi lidds,

This query has been passed on to the development team and they will get back to you asap.

Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
lidds
User
Posts: 552
Joined: Sat May 16, 2009 1:55 pm

Re: Editing native PDF elements

Post by lidds »

Hi Sean,

Thanks for passing this to the development team. I was wondering if there is any update?

Thanks

Simon
User avatar
Sean - PDF-XChange
Site Admin
Posts: 1032
Joined: Wed Sep 14, 2016 5:42 pm

Re: Editing native PDF elements

Post by Sean - PDF-XChange »

Hi lidds,

I'm afraid there was no response on this query yet.

Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
lidds
User
Posts: 552
Joined: Sat May 16, 2009 1:55 pm

Re: Editing native PDF elements

Post by lidds »

Hi Sean,

Could you please give me an estimated date by when this might be answered, as it has been some weeks?

Thanks

Simon
User avatar
Sean - PDF-XChange
Site Admin
Posts: 1032
Joined: Wed Sep 14, 2016 5:42 pm

Re: Editing native PDF elements

Post by Sean - PDF-XChange »

Hi lidds,

I have asked the team for an update here.

Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
lidds
User
Posts: 552
Joined: Sat May 16, 2009 1:55 pm

Re: Editing native PDF elements

Post by lidds »

Hi Sean,

Is there any from the dev team on this as it has been months now!

Thanks

Simons
User avatar
Sean - PDF-XChange
Site Admin
Posts: 1032
Joined: Wed Sep 14, 2016 5:42 pm

Re: Editing native PDF elements

Post by Sean - PDF-XChange »

Hi lidds,

I have given them another nudge on this.

Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
lidds
User
Posts: 552
Joined: Sat May 16, 2009 1:55 pm

Re: Editing native PDF elements

Post by lidds »

Sean,

Is there any update from the development team? I have been waiting for months!

Thank you.

Simon
User avatar
Sean - PDF-XChange
Site Admin
Posts: 1032
Joined: Wed Sep 14, 2016 5:42 pm

Re: Editing native PDF elements

Post by Sean - PDF-XChange »

Hi lidds,

Sorry for the delay - I have given the team another nudge on this.

Kind regards,
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2488
Joined: Thu Jun 30, 2005 4:11 pm

Re: Editing native PDF elements

Post by Vasyl - PDF-XChange »

Hi lidds.

Sorry for looong delay with the answer... :(
How to activate PDF native text editor tool?
pdfCtl.Inst.ExecUICmd("cmd.tool.editText");
2. Is there a possibility to do a search and replace text feature that would work on native PDF text fields?
Not at the moment.
3. How to enable vector editor tool?
First, you need to have activated the "Edit Objects" tool. Programmatically, you may activate it by:

pdfCtl.Inst.ExecUICmd("cmd.tool.editContent");
or by
pdfCtl.Doc.ActivateTool(pdfCtl.Inst.Str2ID("tool.editContent"));

Second - you need to select any vector object in the page content and then:

pdfCtl.Inst.ExecUICmd("cmd.editObject");
- It should start the special path editor for the selected vector object.
4. Whilst testing the edit PDF vector tool, I noticed that if I selected a circle for example this might also select other shapes on the PDF, almost like they were grouped together. Is it possible to run a command that would ungroup the elements and then maybe the user could draw a region around the graphic and group these together?
Not at the moment. But we consider to add it in the future.

Cheers.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
lidds
User
Posts: 552
Joined: Sat May 16, 2009 1:55 pm

Re: Editing native PDF elements

Post by lidds »

Thanks Vasyl,

With regards to item 4, could this be achieved by running JavaScript that uses Adobe PDF ISO format?

Thanks

Simon
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2488
Joined: Thu Jun 30, 2005 4:11 pm

Re: Editing native PDF elements

Post by Vasyl - PDF-XChange »

if I selected a circle for example this might also select other shapes on the PDF
Can you provide a sample doc where it can be reproduced? To avoid any potential misinterpretation of the issue...
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.