tracker issue : CF-3846442

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: naming inconsistency of page number variables

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): / ext-user (Nimit Sharma)

Created: 11/03/2014

Components: Document Management, PDF Generation (CFHTML2PDF)

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: 291742 /

Priority/Frequency: Normal / Few users will encounter

Locale/System: English / Mac 10 All,Win XP All

Vote Count: 1

Listed in the version 2016.0.0.297996 Issues Fixed doc
Verification notes: verified_fixed on May 18, 2018 using build 2016.0.01.298513
Related Bugs:
CF-3744504 - Similar to


cfdocumentitem uses:

<cfdocumentitem type="header">
#CFDOCUMENT.currentPageNumber# - #CFDOCUMENT.totalPageCount#
</cfdocumentitem>

cfhtmltopdfitem uses:

<cfhtmltopdfitem type="header">
_PAGENUMBER - _LASTPAGENUMBER
</cfhtmltopdfitem>

why are underscore variables being introduced here?  That’s not normal.  It looks like shortcuts are being made, instead of evaluating these variables in the same manner that cfdocumentitem does.

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3846442

External Customer Info:
External Company:  
External Customer Name:  
External Customer Email:

Attachments:

Comments:

+1 - Thanks Nimit! ......................
Vote by External U.
10313 | November 03, 2014 08:08:05 AM GMT
For consistency with cfdocument, hopefully the new variables will be CFHTMLTOPDF.currentPageNumber and CFHTMLTOPDF.totalPageCount Example: <cfhtmltopdfitem type="header"> #CFHTMLTOPDF.currentPageNumber# and #CFHTMLTOPDF.totalPageCount# </cfhtmltopdfitem> Thanks!, -Aaron
Comment by External U.
10308 | November 03, 2014 08:19:07 AM GMT
Hi Nimit, For consistency w/ cfdocument, will cfhtmltopdf allow #CFHTMLTOPDF.currentPageNumber# and #CFHTMLTOPDF.totalPageCount#? Thanks!, -Aaron
Comment by External U.
10309 | January 31, 2015 06:43:14 AM GMT
The required changes are done. Now #CFHTMLTOPDF.currentPageNumber# and #CFHTMLTOPDF.totalPageCount# are valid inside cfhtmltopdfitem tag.
Comment by Chinoy G.
10310 | September 23, 2015 03:44:56 AM GMT
Hi Chinoy, THANK YOU! Long live consistency in CF! -Aaron
Comment by External U.
10311 | September 23, 2015 01:23:42 PM GMT
This issue is fixed. this fix will be available as part of next major release of ColdFusion.
Comment by Nimit S.
10312 | September 24, 2015 01:02:53 AM GMT
Hi Adobe, I've verified this is fixed in CF2016 Update 1 (build 2016.0.01.298513). Thanks!, -Aaron
Comment by Aaron N.
27860 | May 18, 2018 02:25:12 AM GMT