@@ -151,7 +151,7 @@ Here's how you can modify partition strategy for a PDF file, and select an alter
151151 // If successfully processed, write the processed data to
152152 // the destination directory.
153153 if (res .statusCode == 200 ) {
154- const jsonElements = JSON .stringify (res . elements , null , 2 )
154+ const jsonElements = JSON .stringify (res , null , 2 )
155155 fs .writeFileSync (outputPath + " .json" , jsonElements )
156156 }
157157 }).catch ((e ) => {
@@ -321,7 +321,7 @@ For better OCR results, you can specify what languages your document is in using
321321 // If successfully processed, write the processed data to
322322 // the destination directory.
323323 if (res .statusCode == 200 ) {
324- const jsonElements = JSON .stringify (res . elements , null , 2 )
324+ const jsonElements = JSON .stringify (res , null , 2 )
325325 fs .writeFileSync (outputPath + " .json" , jsonElements )
326326 }
327327 }).catch ((e ) => {
@@ -488,7 +488,7 @@ Set the `coordinates` parameter to `true` to add this field to the elements in t
488488 // If successfully processed, write the processed data to
489489 // the destination directory.
490490 if (res .statusCode == 200 ) {
491- const jsonElements = JSON .stringify (res . elements , null , 2 )
491+ const jsonElements = JSON .stringify (res , null , 2 )
492492 fs .writeFileSync (outputPath + " .json" , jsonElements )
493493 }
494494 }).catch ((e ) => {
@@ -663,7 +663,7 @@ This can be helpful if you'd like to use the IDs as a primary key in a database,
663663 // If successfully processed, write the processed data to
664664 // the destination directory.
665665 if (res .statusCode == 200 ) {
666- const jsonElements = JSON .stringify (res . elements , null , 2 )
666+ const jsonElements = JSON .stringify (res , null , 2 )
667667 fs .writeFileSync (outputPath + " .json" , jsonElements )
668668 }
669669 }).catch ((e ) => {
@@ -839,7 +839,7 @@ By default, the `chunking_strategy` is set to `None`, and no chunking is perform
839839 // If successfully processed, write the processed data to
840840 // the destination directory.
841841 if (res .statusCode == 200 ) {
842- const jsonElements = JSON .stringify (res . elements , null , 2 )
842+ const jsonElements = JSON .stringify (res , null , 2 )
843843 fs .writeFileSync (outputPath + " .json" , jsonElements )
844844 }
845845 }).catch ((e ) => {
0 commit comments