Move the XML-parser to the src/core/
-folder
With the previous patch this functionality is now *only* accessed on the worker-thread, hence it's no longer necessary to include it in the *built* `pdf.js` file.
This commit is contained in:
parent
cc3a6563ee
commit
b66f294f64
@ -13,7 +13,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { SimpleXMLParser } from "../shared/xml_parser.js";
|
import { SimpleXMLParser } from "./xml_parser.js";
|
||||||
|
|
||||||
class MetadataParser {
|
class MetadataParser {
|
||||||
constructor(data) {
|
constructor(data) {
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
import { bytesToString, escapeString, warn } from "../shared/util.js";
|
import { bytesToString, escapeString, warn } from "../shared/util.js";
|
||||||
import { Dict, isDict, isName, isRef, isStream, Name } from "./primitives.js";
|
import { Dict, isDict, isName, isRef, isStream, Name } from "./primitives.js";
|
||||||
import { escapePDFName, parseXFAPath } from "./core_utils.js";
|
import { escapePDFName, parseXFAPath } from "./core_utils.js";
|
||||||
import { SimpleDOMNode, SimpleXMLParser } from "../shared/xml_parser.js";
|
import { SimpleDOMNode, SimpleXMLParser } from "./xml_parser.js";
|
||||||
import { calculateMD5 } from "./crypto.js";
|
import { calculateMD5 } from "./crypto.js";
|
||||||
|
|
||||||
function writeDict(dict, buffer, transform) {
|
function writeDict(dict, buffer, transform) {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { $clean, $finalize, $onChild, $onText } from "./xfa_object.js";
|
import { $clean, $finalize, $onChild, $onText } from "./xfa_object.js";
|
||||||
import { XMLParserBase, XMLParserErrorCode } from "../../shared/xml_parser.js";
|
import { XMLParserBase, XMLParserErrorCode } from "../xml_parser.js";
|
||||||
import { Builder } from "./builder.js";
|
import { Builder } from "./builder.js";
|
||||||
import { warn } from "../../shared/util.js";
|
import { warn } from "../../shared/util.js";
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { parseXFAPath } from "../../src/core/core_utils.js";
|
import { parseXFAPath } from "../../src/core/core_utils.js";
|
||||||
import { SimpleXMLParser } from "../../src/shared/xml_parser.js";
|
import { SimpleXMLParser } from "../../src/core/xml_parser.js";
|
||||||
|
|
||||||
describe("XML", function () {
|
describe("XML", function () {
|
||||||
describe("searchNode", function () {
|
describe("searchNode", function () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user