[javascript] Report.divide() ignores color, indent  SOLVED

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

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

[javascript] Report.divide() ignores color, indent

Post by Mathew »

Based on the API Report.divide() should start the divide at the current indent and use the currently set color:
image.png
image(1).png
It seems divide ignores this. To reproduce:

Code: Select all

var rep = new Report();
rep.size = 1.2;
rep.color = color.blue; 
rep.divide(1);
rep.writeText("Hello World!");
rep.indent(20);
rep.color = color.red; 
rep.writeText("This text and the next divide should be red and indented!");
rep.divide(1);
rep.open("My Report");
You do not have the required permissions to view the files attached to this post.
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11069
Joined: Wed Jan 03, 2018 6:52 pm

Re: [javascript] Report.divide() ignores color, indent  SOLVED

Post by Daniel - PDF-XChange »

Hello, Mathew

Thank you for the report (no pun intended) :lol:

I have passed this up to the dev team for review, hopefully we hear some good news back from them

[Edit]
We have confirmation that the indent issue will be fixed for sure.
Color is still under investigation, but it is nearing the end of my day. I will let you know on Monday if anything else comes up over the weekend.

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: 582
Joined: Thu Jun 19, 2014 7:30 pm

Re: [javascript] Report.divide() ignores color, indent

Post by Mathew »

:) thank you
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19883
Joined: Mon Jan 12, 2009 8:07 am

[javascript] Report.divide() ignores color, indent

Post by Stefan - PDF-XChange »

:)
User avatar
Daniel - PDF-XChange
Site Admin
Posts: 11069
Joined: Wed Jan 03, 2018 6:52 pm

Re: [javascript] Report.divide() ignores color, indent

Post by Daniel - PDF-XChange »

Hello,

I just heard back regarding the color. That aspect will not be changing. Divide lines are mimicking Acrobats handling, which also ignores color input, which is an intentional decision for consistency at this time.

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