Skip to content

Commit 690769d

Browse files
committed
Remove podofo dependency
1 parent c22998f commit 690769d

File tree

13 files changed

+1
-222
lines changed

13 files changed

+1
-222
lines changed

lib/interop/pdf_extractor.dart

Lines changed: 0 additions & 31 deletions
This file was deleted.

macos/Runner.xcodeproj/project.pbxproj

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
/* End PBXAggregateTarget section */
2222

2323
/* Begin PBXBuildFile section */
24-
0C004E202CF751B9003B9A15 /* libpodofo.2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C004E1F2CF751B9003B9A15 /* libpodofo.2.dylib */; };
2524
0C42C75B2CE386520079F72B /* libopenvino_tensorflow_frontend.2460.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C42C7582CE386520079F72B /* libopenvino_tensorflow_frontend.2460.dylib */; };
2625
0C42C75C2CE386520079F72B /* libopenvino_tensorflow_lite_frontend.2460.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C42C7592CE386520079F72B /* libopenvino_tensorflow_lite_frontend.2460.dylib */; };
2726
0C42C75D2CE386520079F72B /* libopenvino_paddle_frontend.2460.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 0C42C7562CE386520079F72B /* libopenvino_paddle_frontend.2460.dylib */; };
@@ -93,7 +92,6 @@
9392
0C5D47B12C6F5C0A00307B37 /* libopenvino_auto_batch_plugin.so in Bundle Framework */ = {isa = PBXBuildFile; fileRef = 0C5D47A82C6F59A200307B37 /* libopenvino_auto_batch_plugin.so */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
9493
0C5D47B22C6F5C0E00307B37 /* libopenvino_auto_plugin.so in Bundle Framework */ = {isa = PBXBuildFile; fileRef = 0C5D47AB2C6F59A200307B37 /* libopenvino_auto_plugin.so */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
9594
0C5D47B32C6F5C1300307B37 /* libopenvino_hetero_plugin.so in Bundle Framework */ = {isa = PBXBuildFile; fileRef = 0C5D47AA2C6F59A200307B37 /* libopenvino_hetero_plugin.so */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
96-
0C6396902D362F63006338EC /* libpodofo.2.dylib in Bundle Framework */ = {isa = PBXBuildFile; fileRef = 0C004E1F2CF751B9003B9A15 /* libpodofo.2.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };
9795
213B56C50EEAAE6190A0A25B /* Pods_RunnerTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CB5E7865DB70376BADAAEAE6 /* Pods_RunnerTests.framework */; };
9896
331C80D8294CF71000263BE5 /* RunnerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 331C80D7294CF71000263BE5 /* RunnerTests.swift */; };
9997
335BBD1B22A9A15E00E9071D /* GeneratedPluginRegistrant.swift in Sources */ = {isa = PBXBuildFile; fileRef = 335BBD1A22A9A15E00E9071D /* GeneratedPluginRegistrant.swift */; };
@@ -128,7 +126,6 @@
128126
dstPath = "";
129127
dstSubfolderSpec = 10;
130128
files = (
131-
0C6396902D362F63006338EC /* libpodofo.2.dylib in Bundle Framework */,
132129
0C42C7672CE386680079F72B /* libopenvino_paddle_frontend.2460.dylib in Bundle Framework */,
133130
0C4E1F712CECC24900124339 /* libswresample.4.dylib in Bundle Framework */,
134131
0C5D47B32C6F5C1300307B37 /* libopenvino_hetero_plugin.so in Bundle Framework */,
@@ -170,7 +167,6 @@
170167
/* End PBXCopyFilesBuildPhase section */
171168

172169
/* Begin PBXFileReference section */
173-
0C004E1F2CF751B9003B9A15 /* libpodofo.2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libpodofo.2.dylib; path = ../bindings/libpodofo.2.dylib; sourceTree = SOURCE_ROOT; };
174170
0C42C7522CE386520079F72B /* libopenvino_c.2460.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libopenvino_c.2460.dylib; path = ../bindings/libopenvino_c.2460.dylib; sourceTree = SOURCE_ROOT; };
175171
0C42C7532CE386520079F72B /* libopenvino_genai.2460.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libopenvino_genai.2460.dylib; path = ../bindings/libopenvino_genai.2460.dylib; sourceTree = SOURCE_ROOT; };
176172
0C42C7542CE386520079F72B /* libopenvino_ir_frontend.2460.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libopenvino_ir_frontend.2460.dylib; path = ../bindings/libopenvino_ir_frontend.2460.dylib; sourceTree = SOURCE_ROOT; };
@@ -254,7 +250,6 @@
254250
0C5D47702C6F397A00307B37 /* libopencv_imgproc.410.dylib in Frameworks */,
255251
0C5D47612C6F382800307B37 /* libopencv_calib3d.410.dylib in Frameworks */,
256252
0C5D473C2C6F357C00307B37 /* libblend2d.dylib in Frameworks */,
257-
0C004E202CF751B9003B9A15 /* libpodofo.2.dylib in Frameworks */,
258253
0C5D476F2C6F397A00307B37 /* libopencv_features2d.410.dylib in Frameworks */,
259254
0C5D47732C6F397A00307B37 /* libopencv_flann.410.dylib in Frameworks */,
260255
0C5D47962C6F3A9B00307B37 /* libcore_tokenizers.dylib in Frameworks */,
@@ -362,7 +357,6 @@
362357
D73912EC22F37F3D000D13A0 /* Frameworks */ = {
363358
isa = PBXGroup;
364359
children = (
365-
0C004E1F2CF751B9003B9A15 /* libpodofo.2.dylib */,
366360
0C5D47A92C6F59A200307B37 /* libopenvino_arm_cpu_plugin.so */,
367361
0C5D47A82C6F59A200307B37 /* libopenvino_auto_batch_plugin.so */,
368362
0C5D47AB2C6F59A200307B37 /* libopenvino_auto_plugin.so */,

openvino_bindings/WORKSPACE

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,6 @@ new_local_repository(
124124
path = "./third_party/vcpkg_installed/x64-windows",
125125
)
126126

127-
git_repository(
128-
name = "podofo",
129-
build_file = "//third_party/podofo:podofo.BUILD",
130-
tag = "0.10.4",
131-
remote = "https://github.com/podofo/podofo",
132-
)
133-
134-
new_local_repository(
135-
name = "podofo_windows",
136-
build_file = "//third_party/podofo:podofo.BUILD",
137-
path = "./third_party/vcpkg_installed/x64-windows",
138-
)
139-
140-
141127
http_archive(
142128
name = "rules_pkg",
143129
sha256 = "8f9ee2dc10c1ae514ee599a8b42ed99fa262b757058f65ad3c384289ff70c4b8",

openvino_bindings/src/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ cc_library(
1010
"//src/image:image_inference",
1111
"//src/sentence_transformer:sentence_transformer_pipeline",
1212
"//src/llm:llm_inference",
13-
"//src/pdf:sentence_extractor",
1413
"//src/audio:speech_to_text",
1514
"//src/mediapipe:graph_runner",
1615
"//src/tti:tti_inference",

openvino_bindings/src/bindings.cc

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#include <nlohmann/json.hpp>
1212
#include <openvino/openvino.hpp>
1313

14-
#include "src/pdf/sentence_extractor.h"
1514
#include "src/audio/speech_to_text.h"
1615
#include "src/image/image_inference.h"
1716
#include "src/mediapipe/graph_runner.h"
@@ -542,16 +541,6 @@ StatusOrDevices* getAvailableDevices() {
542541
return new StatusOrDevices{OkStatus, "", devices, (int)device_ids.size() + 1};
543542
}
544543

545-
StatusOrString* pdfExtractText(const char* pdf_path) {
546-
try {
547-
auto output = sentence_extractor::extract_text_from_pdf(pdf_path);
548-
return new StatusOrString{OkStatus, "", strdup(output.c_str())};
549-
} catch (...) {
550-
auto except = handle_exceptions();
551-
return new StatusOrString{except->status, except->message};
552-
}
553-
}
554-
555544
Status* handle_exceptions() {
556545
try {
557546
throw;

openvino_bindings/src/bindings.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,6 @@ EXPORT StatusOrSentenceTransformer* sentenceTransformerOpen(const char* model_pa
209209
EXPORT StatusOrEmbeddings* sentenceTransformerGenerate(CSentenceTransformer instance, const char* prompt);
210210
EXPORT Status* sentenceTransformerClose(CSentenceTransformer instance);
211211

212-
EXPORT StatusOrString* pdfExtractText(const char* pdf_path);
213-
214212
EXPORT StatusOrSpeechToText* speechToTextOpen(const char* model_path, const char* device);
215213
EXPORT Status* speechToTextLoadVideo(CSpeechToText instance, const char* video_path);
216214
EXPORT StatusOrInt* speechToTextVideoDuration(CSpeechToText instance);

openvino_bindings/src/pdf/BUILD

Lines changed: 0 additions & 13 deletions
This file was deleted.

openvino_bindings/src/pdf/sentence_extractor.cc

Lines changed: 0 additions & 34 deletions
This file was deleted.

openvino_bindings/src/pdf/sentence_extractor.h

Lines changed: 0 additions & 17 deletions
This file was deleted.

openvino_bindings/third_party/BUILD

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,6 @@ alias(
1010
visibility = ["//visibility:public"],
1111
)
1212

13-
alias(
14-
name = "podofo",
15-
actual = select({
16-
"@bazel_tools//src/conditions:windows": "@podofo_windows//:podofo_windows",
17-
"@bazel_tools//src/conditions:darwin_arm64": "@podofo//:podofo_mac",
18-
"//conditions:default": "@podofo//:podofo_linux",
19-
}),
20-
visibility = ["//visibility:public"],
21-
)
22-
23-
2413
alias(
2514
name = "model_api_cmake",
2615
actual = select({

0 commit comments

Comments
 (0)