Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(455)

Issue 1442753005: Fix wrong page count returned in FPDF_GetPageCount() during loading dynamic XFA files (Closed)

Created:
5 years, 1 month ago by jun_fang
Modified:
5 years ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@xfa
Target Ref:
refs/heads/xfa
Visibility:
Public.

Description

Fix wrong page count returned in FPDF_GetPageCount() for dynamic XFA files In FPDF_GetPageCount(), 'document' is converted to a non-XFA document pointer (CPDF_Document*). So it only returns non-XFA or static XFA page count. If XFA files include dynamic XFA fields on some pages, the returned value doesn't reflect these pages. BUG=pdfium:278 R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/a2167107bbcef6a3e3687d49a5b1e62503391316

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M fpdfsdk/src/fpdfview.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
jun_fang
On 2015/11/13 16:34:03, jun_fang wrote: > Description was changed from > > ========== > Fix ...
5 years, 1 month ago (2015-11-13 16:39:13 UTC) #4
Tom Sepez
Looks good, let me know when you've added the test to the CL.
5 years, 1 month ago (2015-11-13 16:46:52 UTC) #5
Tom Sepez
Lets land this and deal with the tests later. LGTM.
5 years ago (2015-11-24 17:14:19 UTC) #6
Tom Sepez
Committed patchset #1 (id:1) manually as a2167107bbcef6a3e3687d49a5b1e62503391316 (presubmit successful).
5 years ago (2015-11-24 17:22:06 UTC) #7
Tom Sepez
5 years ago (2015-11-24 17:22:54 UTC) #8
Message was sent while issue was closed.
On 2015/11/24 17:22:06, Tom Sepez wrote:
> Committed patchset #1 (id:1) manually as
> a2167107bbcef6a3e3687d49a5b1e62503391316 (presubmit successful).

(I landed this on your behalf since it is going to conflict with some work I'm
doing to reduce xfa/master textual diffs.)

Powered by Google App Engine
This is Rietveld 408576698