Skip to content

Commit

Permalink
remove merge error for outline w/o destination
Browse files Browse the repository at this point in the history
  • Loading branch information
mtd91429 committed Jul 10, 2022
1 parent 452aae2 commit e42059c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions PyPDF2/_merger.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

import warnings

from io import BytesIO, FileIO, IOBase
from typing import Any, Dict, Iterable, List, Optional, Tuple, Union, cast
Expand All @@ -38,7 +37,6 @@
from .constants import GoToActionArguments
from .constants import PagesAttributes as PA
from .constants import TypArguments, TypFitArguments
from .errors import PdfReadWarning
from .generic import (
ArrayObject,
Bookmark,
Expand Down Expand Up @@ -543,8 +541,6 @@ def _associate_bookmarks_to_pages(

if pageno is not None:
b[NameObject("/Page")] = NumberObject(pageno)
else:
warnings.warn(f"Bookmark without destination: '{b['/Title']}'", PdfReadWarning)

def find_bookmark(
self,
Expand Down

0 comments on commit e42059c

Please sign in to comment.