@@ -1760,6 +1760,34 @@ sources, for full support with Dvips.`)
1760
1760
await loadingTask . destroy ( ) ;
1761
1761
} ) ;
1762
1762
1763
+ it ( "gets text content, with negative spaces (bug 931481)" , async function ( ) {
1764
+ if ( isNodeJS ) {
1765
+ pending ( "Linked test-cases are not supported in Node.js." ) ;
1766
+ }
1767
+
1768
+ const loadingTask = getDocument ( buildGetDocumentParams ( "bug931481.pdf" ) ) ;
1769
+ const pdfDoc = await loadingTask . promise ;
1770
+ const pdfPage = await pdfDoc . getPage ( 1 ) ;
1771
+ const { items } = await pdfPage . getTextContent ( ) ;
1772
+ const text = mergeText ( items ) ;
1773
+
1774
+ expect (
1775
+ text . includes ( `Kathrin Nachbaur
1776
+ Die promovierte Juristin ist 1979 in Graz geboren und aufgewachsen. Nach
1777
+ erfolgreichem Studienabschluss mit Fokus auf Europarecht absolvierte sie ein
1778
+ Praktikum bei Magna International in Kanada in der Human Resources Abteilung.
1779
+ Anschliessend wurde sie geschult in Human Resources, Arbeitsrecht und
1780
+ Kommunikation, währenddessen sie auch an ihrem Doktorat im Wirtschaftsrecht
1781
+ arbeitete. Seither arbeitete sie bei Magna International als Projekt Manager in der
1782
+ Innovationsabteilung. Seit 2009 ist sie Frank Stronachs Büroleiterin in Österreich und
1783
+ Kanada. Zusätzlich ist sie seit 2012 Vice President, Business Development der
1784
+ Stronach Group und Vizepräsidentin und Institutsleiterin des Stronach Institut für
1785
+ sozialökonomische Gerechtigkeit.` )
1786
+ ) . toEqual ( true ) ;
1787
+
1788
+ await loadingTask . destroy ( ) ;
1789
+ } ) ;
1790
+
1763
1791
it ( "gets text content, with beginbfrange operator handled correctly (bug 1627427)" , async function ( ) {
1764
1792
const loadingTask = getDocument (
1765
1793
buildGetDocumentParams ( "bug1627427_reduced.pdf" )
0 commit comments