ABCpdf Sizing issue

Discussion in 'ASP.NET / ASP.NET Core' started by Jacqui1811, Aug 5, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi folks.
    I am using an older version of ABCpdf v4.0.25 and am very impressed /emoticons/tongue.gif . Except that I am trying to add a web page but do not know what size it is going to be, as it depends on the amount of information stored on it.
    I am running it localy on my machine very successfully using the following code to check to see if truncated and if is then resize.

    theID = m_doc.AddImageUrl(uri, true, 0, false);

    int height = 790;
    bool truncated = m_doc.GetInfo(theID, 'Truncated') == '1';

    while(truncated)
    {
    height = height + 10;
    m_doc = new Doc();
    m_doc.MediaBox.String = '0 0 620 ' + height;
    m_doc.Rect.String = '620,' + height;

    theID = m_doc.AddImageUrl(uri, true, 0, false);
    truncated = m_doc.GetInfo(theID, 'Truncated') == '1';
    }

    Perfect I get one full page each time.
    I have transfered the code over to the server I am using and it does not re-size the page./emoticons/rolleyes.gif

    The version of ABCpdf on the server is I think 4.0.3.
    Would that be what is making the difference ?
    Has anyone got a way around this please.
    Thanks.
    Jacqui.
     
  2. Unfortunately you won't be able to use the code you have posted on your discountasp.net site, since AddImageURL() is not supported by discountasp.net. I have this problem too, and there isn't any kind of workaround as far as I know.

    I'll let you know if I come up with anything. :)

    Matt
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page