[tool] Toggle between polyline or pencil annotations

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

User avatar
Mathew
User
Posts: 905
Joined: Thu Jun 19, 2014 7:30 pm

[tool] Toggle between polyline or pencil annotations

Post by Mathew »

This is a rough and ready tool that toggles between pencil (ink) markups and polylines or polygons. Select the markup you want to change, then the tool. Only works on Polyline, Polygon or Ink markups.

Because ink markups automatically smooth lines, this is an easy way to make a smooth curved line from a polyline. For example, this:
image(1).png
becomes this as an ink annotation:
image(2).png

It adds a button on the Add-on Toolbar
image.png
Installation
Extract the zip file and copy the javascript files to the JavaScripts folder and restart PDF XChange. Detailed instructions here: viewtopic.php?p=196006#p196006
inkToPoly v1.0.zip
You do not have the required permissions to view the files attached to this post.
Last edited by Mathew on Fri Sep 04, 2026 1:24 am, edited 2 times in total.
User avatar
PHK
User
Posts: 1633
Joined: Tue Nov 24, 2020 4:02 pm

Re: [tool] Toggle between polyline or pencil annotations

Post by PHK »

COOL! Thanks Mathew.
All best,

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

Re: [tool] Toggle between polyline or pencil annotations

Post by Sean - PDF-XChange »

:)
Sean Godley
Technical Writer
PDF-XChange Co LTD
Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623
User avatar
Mathew
User
Posts: 905
Joined: Thu Jun 19, 2014 7:30 pm

Re: [tool] Toggle between polyline or pencil annotations

Post by Mathew »

This version will convert ovals/circles to ink annotations as well.
inkToPoly v1.0.zip
Changes v1.0
  • add ellipse and square conversion;
  • new icon
  • groups all the selected polylines into one ink annotation

It does it by making circular polygons,
image.png
so when you convert back, it's no longer a circle, just a polygon with a lot of joints:
image(1).png
Useful to make arcs, though, by erasing part of the ink annotation
erase circle.gif
You do not have the required permissions to view the files attached to this post.