mirror of
https://github.com/jzillmann/pdf-to-markdown.git
synced 2025-06-21 10:08:03 +02:00
transform before filtering
This commit is contained in:
parent
b5177a9ed3
commit
a72cdc14a1
@ -57,7 +57,7 @@ export default class DebugView extends React.Component {
|
|||||||
|
|
||||||
const currentTransformationName = transformations[currentTransformation].name;
|
const currentTransformationName = transformations[currentTransformation].name;
|
||||||
|
|
||||||
var transformedPages = pdfPages.filter((elem, i) => pageNr == -1 || i == pageNr);
|
var transformedPages = pdfPages;
|
||||||
var contentView;
|
var contentView;
|
||||||
var lastTransformation;
|
var lastTransformation;
|
||||||
for (var i = 0; i <= currentTransformation; i++) {
|
for (var i = 0; i <= currentTransformation; i++) {
|
||||||
@ -69,6 +69,7 @@ export default class DebugView extends React.Component {
|
|||||||
lastTransformation = transformations[i];
|
lastTransformation = transformations[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
transformedPages = transformedPages.filter((elem, i) => pageNr == -1 || i == pageNr);
|
||||||
var pageComponents;
|
var pageComponents;
|
||||||
switch (contentView) {
|
switch (contentView) {
|
||||||
case ContentView.PDF:
|
case ContentView.PDF:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user