Skip to content

Commit 90e26b5

Browse files
committed
fix: added lopdf as an integral module
- this is significantly useful because this library is meant to be used with lopdf, therefore the dev using this lib does not need to add lopdf as a dependency apart from hipdf
1 parent 686dd5e commit 90e26b5

15 files changed

Lines changed: 7 additions & 4 deletions

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2025 Jorge Soares
3+
Copyright (c) 2025 Ducflair
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
pub mod embed_pdf;
3838
pub mod hatching;
3939
pub mod ocg;
40+
pub use lopdf;
4041

4142
// Common type aliases and utilities
4243
pub type Result<T> = std::result::Result<T, Box<dyn std::error::Error>>;

tests/embed_pdf_integration_test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@
22
//!
33
//! These tests validate and showcase all PDF embedding features
44
5+
use hipdf::lopdf::{content::Content, dictionary, Dictionary, Document, Object, Stream};
56
use hipdf::embed_pdf::{
67
CustomLayoutStrategy, EmbedOptions, GridFillOrder, MultiPageLayout, PageRange, PdfEmbedder,
78
};
8-
use lopdf::{content::Content, dictionary, Dictionary, Document, Object, Stream};
9+
910
use std::collections::HashMap;
1011
use std::fs;
1112
use std::path::Path;

tests/hatching_integration_test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
use lopdf::{content::Content, dictionary, Dictionary, Document, Object, Stream};
21
use std::collections::HashMap;
32
use std::io::Result;
43
use std::sync::Arc;
54

5+
use hipdf::lopdf::{content::Content, dictionary, Dictionary, Document, Object, Stream};
66
use hipdf::hatching::{
77
CustomPattern, HatchConfig, HatchStyle, HatchingManager, PatternedShapeBuilder,
88
ProceduralPattern, Transform,

tests/ocg_integration_test.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
//! - Performance and edge cases
1212
1313
use hipdf::ocg::{Layer, LayerContentBuilder, LayerOperations as Ops, OCGConfig, OCGManager};
14-
use lopdf::{content::Content, dictionary, Document, Object, Stream};
14+
use hipdf::lopdf::{content::Content, dictionary, Document, Object, Stream};
15+
1516
use std::fs;
1617
use std::path::Path;
1718

Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)