fortplot_test_pdf_utils Module

PDF stream extraction utilities for testing

Single Responsibility: Extract and parse text from PDF file streams Tokenizer functionality is in fortplot_test_pdf_tokenizer.



Subroutines

public subroutine extract_pdf_stream_text(filename, stream_text, status)

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename
character(len=:), intent(out), allocatable :: stream_text
integer, intent(out) :: status

public subroutine append_string(target, chunk)

Arguments

Type IntentOptional Attributes Name
character(len=:), intent(inout), allocatable :: target
character(len=*), intent(in) :: chunk

public subroutine bytes_to_string(bytes, text)

Arguments

Type IntentOptional Attributes Name
integer(kind=int8), intent(in) :: bytes(:)
character(len=*), intent(out) :: text